By applying `textureGather` to a `sampler2DShadow`, the blob produces
(under the old disassembly):
tex_22.vtx.2d.shadow.cont.last r29, texture0, fsampler0.zwyx, r29,
The op 0x22 is 10|0010 in binary, the old shadow parameter is 1, and old
gather parameter is 0, so we get 0110|0010 in binary, or an op of
textureLod with a mod of 0110 = 6.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6516>
switch (mode) {
case TEXTURE_NORMAL: return "";
case TEXTURE_SHADOW: return ".shadow";
+ case TEXTURE_GATHER_SHADOW: return ".gather.shadow";
case TEXTURE_GATHER_X: return ".gatherX";
case TEXTURE_GATHER_Y: return ".gatherY";
case TEXTURE_GATHER_Z: return ".gatherZ";
enum mali_texture_mode {
TEXTURE_NORMAL = 1,
TEXTURE_SHADOW = 5,
+ TEXTURE_GATHER_SHADOW = 6,
TEXTURE_GATHER_X = 8,
TEXTURE_GATHER_Y = 9,
TEXTURE_GATHER_Z = 10,