summaryrefslogtreecommitdiffstats
path: root/src/loader
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-04-04 00:31:45 -0700
committerKenneth Graunke <[email protected]>2016-04-04 14:29:21 -0700
commit5509d43a11d42f15c91572aaf69a0f8e1ec31c71 (patch)
treebaa106a4bd02068f458346b824afe388b2fe367f /src/loader
parent88ef2476dcdd61000cbae7ded9c8fa52927429d8 (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]>
Diffstat (limited to 'src/loader')
0 files changed, 0 insertions, 0 deletions