pan/mdg: Add disassembly for shadow gathers

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>
This commit is contained in:
Alyssa Rosenzweig 2020-08-28 08:53:44 -04:00
parent f6e19dd3f4
commit 661123bb19
2 changed files with 2 additions and 0 deletions

View file

@ -1385,6 +1385,7 @@ texture_mode(enum mali_texture_mode mode)
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";

View file

@ -651,6 +651,7 @@ enum mali_sampler_type {
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,