diff options
author | Kenneth Graunke <[email protected]> | 2017-01-05 02:51:38 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-01-13 11:57:06 -0800 |
commit | 99c019e1d41eb72c5ca9e0ae4b263acd6e6c214f (patch) | |
tree | bb7a3c820e23f2eae89233a8143d53e6da54d6f8 /src/gbm/Makefile.am | |
parent | 6d2fb04f0922047232d10b2a5d292d68c9506f45 (diff) |
i965: Fix textureGather with RG32I/UI on Gen7.
According to the "Gather4 R32G32_FLOAT Bug" internal documentation
page, the R32G32_UINT and R32G32_SINT formats are affected by the
same bug as R32G32_FLOAT. Applying the same workarounds should be
viable - apparently the R32G32_FLOAT_LD format shouldn't corrupt
integer data which is NaN or other sketchy floating point values.
One irritating caveat is that, because it's a FLOAT format, the
alpha channel or any set to SCS_ONE return 0x3f8 (1.0) rather than
integer 1. So we need shader code to whack those channels to 1.
Fixes GL45-CTS.texture_gather.plain-gather-int-cube-rg on Haswell.
v2: Fix swizzle component zeroing (caught by Jordan Justen).
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/gbm/Makefile.am')
0 files changed, 0 insertions, 0 deletions