[Mesa-dev] [PATCH v3 2/10] glsl: keep track of ssbo variable being accessed, add access params
Ilia Mirkin
imirkin at alum.mit.edu
Sun Jan 24 08:46:17 PST 2016
On Thu, Jan 21, 2016 at 3:27 AM, Iago Toral <itoral at 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
More information about the mesa-dev
mailing list