radeonsi: fix a regression in integer cube map handling
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 29 Sep 2017 09:21:01 +0000 (11:21 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 2 Oct 2017 10:17:15 +0000 (12:17 +0200)
commit6d23f7c65d6a3e6117b7b383bc811f01dd5b5c40
tree4b245b20ea1117a16401389d9fed21beabc5e0cf
parent052b974fed3586f3b2f61d2d2c050c1807ec43c5
radeonsi: fix a regression in integer cube map handling

A recent commit fixed the case of 8888 integer cube maps, which need the
workaround of replacing the data format with USCALED/SSCALED. However,
this broke the case of non-8888 integer cube maps; those still need the
fix of shifting the texture coordinates.

Fixes KHR-GL45.texture_gather.plain-gather-int-cube-array and similar.

Fixes: 6fb0c1013b35 ("radeonsi: workaround for gather4 on integer cube maps")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c