aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2014-09-13 00:29:56 +0200
committerRoland Scheidegger <[email protected]>2014-09-16 03:50:31 +0200
commit3a9eb40ee16eedb6caff90a8c0c24b7d801063f3 (patch)
treeaf2d75c4c3c887017e8204aef33ed558b8fc93c6 /src/gallium/auxiliary/tgsi
parent84ca6bc113e72c6e6bdac84f32befdc113cb69e1 (diff)
tgsi: don't print texture target for sample opcodes
sample opcodes don't encode a texture target, it would thus always print UNKNOWN, which is not helpful (and wouldn't parse when giving back the shader text to tgsi). Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_dump.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_dump.c b/src/gallium/auxiliary/tgsi/tgsi_dump.c
index 884d8cf9354..08d3fde614c 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_dump.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_dump.c
@@ -573,8 +573,11 @@ iter_instruction(
}
if (inst->Instruction.Texture) {
- TXT( ", " );
- ENM( inst->Texture.Texture, tgsi_texture_names );
+ if (!(inst->Instruction.Opcode >= TGSI_OPCODE_SAMPLE &&
+ inst->Instruction.Opcode <= TGSI_OPCODE_GATHER4)) {
+ TXT( ", " );
+ ENM( inst->Texture.Texture, tgsi_texture_names );
+ }
for (i = 0; i < inst->Texture.NumOffsets; i++) {
TXT( ", " );
TXT(tgsi_file_name(inst->TexOffsets[i].File));