From 1a36dfb21e07a1b7ce76de347421bfd0c454ee13 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 14 Nov 2013 13:41:19 -0700 Subject: [PATCH] svga: print warning for unsupported indirect dest reg indexing MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Roland Scheidegger --- src/gallium/drivers/svga/svga_tgsi_insn.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.30.2