diff options
author | Kenneth Graunke <[email protected]> | 2016-04-04 00:31:45 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-04-04 14:29:21 -0700 |
commit | 5509d43a11d42f15c91572aaf69a0f8e1ec31c71 (patch) | |
tree | baa106a4bd02068f458346b824afe388b2fe367f /src/loader | |
parent | 88ef2476dcdd61000cbae7ded9c8fa52927429d8 (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