diff options
author | Francisco Jerez <[email protected]> | 2016-11-01 11:56:13 -0700 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2016-11-03 11:46:44 -0700 |
commit | f3d387867f74ae758b41168f23992671f7dce254 (patch) | |
tree | d42cef516cad25f7d263ae35e94dd29ad4370ae3 /src/gallium/drivers/virgl | |
parent | faab6a0f18825bd1bd3a6f0cfc4e4e68e041b6e2 (diff) |
nir: Flip gl_SamplePosition in nir_lower_wpos_ytransform().
Assuming the hardware is set up to use a screen coordinate system
flipped vertically with respect to the GL's window coordinate system,
the SYSTEM_VALUE_SAMPLE_POS vector will also be flipped vertically
with respect to the value expected by the GL, so we need to give it
the same treatment as gl_FragCoord. Fixes the following CTS tests on
i965:
ES31-CTS.functional.shaders.multisample_interpolation.interpolate_at_offset.at_sample_position.default_framebuffer
ES31-CTS.functional.shaders.sample_variables.sample_pos.correctness.default_framebuffer
when run with any multisample configuration, e.g. rgba8888d24s8ms4.
Cc: <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl')
0 files changed, 0 insertions, 0 deletions