svga: print warning for unsupported indirect dest reg indexing
authorBrian Paul <brianp@vmware.com>
Thu, 14 Nov 2013 20:41:19 +0000 (13:41 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 15 Nov 2013 17:23:49 +0000 (10:23 -0700)
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 <jfonseca@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/svga/svga_tgsi_insn.c

index b96efbc650b6f790e9559d596e419d2f5d772cff..0fc385a8df6e556f908549552fdf7ece1328e9da 100644 (file)
@@ -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);