On Thu, Jan 21, 2016 at 3:27 AM, Iago Toral <ito...@igalia.com> wrote:
>>     *offset = new(mem_ctx) ir_constant(0u);
>>     *row_major = is_dereferenced_thing_row_major(deref);
>>     *matrix_columns = 1;
>> +   if (struct_field)
>> +      *struct_field = NULL;
>
> Not sure how I feel about this... I think I'd rather initialize
> struct_field to NULL in lower_ubo_reference and let this function assign
> a value only if there is one to assign.

I think it's a nice guarantee to make that this function will have set
the pointer 100% of the time (if provided). However I'm also happy to
move the assignment into the only call site that passes the
struct_field in.

  -ilia
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to