summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_llvm_util.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-02-27 11:30:41 +1000
committerDave Airlie <[email protected]>2017-03-15 09:51:53 +1000
commit3ece76f03dc01bb654f47864b5da3a72c250c8b4 (patch)
tree3cf4d624d1311bf8122ace837cbffb197290b6d7 /src/amd/common/ac_llvm_util.c
parent407fa776698e768c9cf47612343502f271960548 (diff)
radv/ac: gather4 cube workaround integer
This fix is extracted from amdgpu-pro shader traces. It appears the gather4 workaround for integer types doesn't work for cubes, so instead if forces a float scaled sample, then converts to integer. It modifies the descriptor before calling the gather. This also produces some ugly asm code for reasons specified in the patch, llvm could probably do better than dumping sgprs to vgprs. This fixes: dEQP-VK.glsl.texture_gather.basic.cube.rgba8* Acked-by: Bas Nieuwenhuizen <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_util.c')
0 files changed, 0 insertions, 0 deletions