mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 23:00:11 +01:00
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:
parent
f6e19dd3f4
commit
661123bb19
2 changed files with 2 additions and 0 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue