From: Brian Paul Date: Thu, 14 Nov 2013 20:41:19 +0000 (-0700) Subject: svga: print warning for unsupported indirect dest reg indexing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1a36dfb21e07a1b7ce76de347421bfd0c454ee13;p=mesa.git 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 Reviewed-by: Roland Scheidegger --- 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);