summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-11-14 13:41:19 -0700
committerBrian Paul <[email protected]>2013-11-15 10:23:49 -0700
commit1a36dfb21e07a1b7ce76de347421bfd0c454ee13 (patch)
tree1b8a4795d75603cbff8c2ea16ee3c26d4f0ef7e6 /src/gallium/drivers
parent3969330b47c5b7f7843f356db0a10962553339a6 (diff)
svga: print warning for unsupported indirect dest reg indexing
For DX9-level shaders, there's only limited support for indirect indexing of registers (with the loop counter register, not the general address register.) Reviewed-by: José Fonseca <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/svga/svga_tgsi_insn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_tgsi_insn.c b/src/gallium/drivers/svga/svga_tgsi_insn.c
index b96efbc650b..0fc385a8df6 100644
--- a/src/gallium/drivers/svga/svga_tgsi_insn.c
+++ b/src/gallium/drivers/svga/svga_tgsi_insn.c
@@ -107,6 +107,10 @@ translate_dst_register( struct svga_shader_emitter *emit,
break;
}
+ if (reg->Register.Indirect) {
+ debug_warning("Indirect indexing of dest registers is not supported!\n");
+ }
+
dest.mask = reg->Register.WriteMask;
assert(dest.mask);