summaryrefslogtreecommitdiffstats
path: root/src/compiler/Android.mk
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-04-04 00:31:45 -0700
committerEmil Velikov <[email protected]>2016-04-13 22:20:12 +0100
commit672652a5a291b4fbff286bb0a44d53bc34fdc899 (patch)
tree33d402a9cc317a1a79437a46478c58b08885e9fa /src/compiler/Android.mk
parentc5f8a417102b1dcc2fd5708fad8a5e31bf7ce779 (diff)
glsl: Lower variable indexing of system value arrays unconditionally.
lower_variable_index_to_cond_assign() did not handle system values. gl_SampleMaskIn[] is a system value, and also an array. Accessing it with a variable index would trigger an unreachable() assert. Rather than adding a new EmitNoIndirectSystemValues flag, we simply lower unconditionally. There is exactly one case where this occurs, and for all current drivers, lowering produces optimal code. Even for future drivers with 32x MSAA, it produces reasonable code. Fixes Piglit's new samplemaskin-indirect test. Also fixes many ES31-CTS tests when OES_sample_variables is enabled. Cc: [email protected] Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]> Reviewed-by: Ian Romanick <[email protected]> (cherry picked from commit 5509d43a11d42f15c91572aaf69a0f8e1ec31c71)
Diffstat (limited to 'src/compiler/Android.mk')
0 files changed, 0 insertions, 0 deletions