gallium glsl: Fix crash with piglit fs-deref-literal-array-of-structs.shader_test
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Thu, 17 Apr 2014 08:34:10 +0000 (10:34 +0200)
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>
Thu, 17 Apr 2014 08:34:10 +0000 (10:34 +0200)
commit74f19445cc5b75302ce40be48787db877680ae5e
tree91c1ac60fea004ca0784aad57ffedf372aaeceea
parent49d26a277d8653f63b50f07371bf02b3453e8839
gallium glsl: Fix crash with piglit fs-deref-literal-array-of-structs.shader_test

This allows the following shader code to work without a weird crash:

struct Foo {
  int value[1];
};

int actual_value = Foo[2](Foo(int[1](100)), Foo(int[1](200)))[i].value[0];

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp