[Mesa-dev] [PATCH] glsl: Fix lower_named_interface_blocks to account for dereferences of consts.

Kenneth Graunke kenneth at whitecape.org
Sun Jul 14 09:43:58 PDT 2013


On 07/14/2013 09:27 AM, Paul Berry wrote:
> In certain rare cases (such as those involving dereference of a
> literal constant array of structs),
> flatten_named_interface_blocks_declarations's rvalue visitor may be
> invoked on an ir_dereference_record whose variable_referenced() method
> returns NULL.
>
> Check for this case to avoid a segfault.
>
> Prevents crashes in piglit tests
> {vs,fs}-deref-literal-array-of-structs.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>



More information about the mesa-dev mailing list