Mesa (master): tgsi: Lift the requirement of indirection being done by ADDR register.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Fri Nov 9 13:56:32 UTC 2012


Module: Mesa
Branch: master
Commit: e5f0ae0bd8cbaf1bb5c87929681ea6bd83e8d834
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e5f0ae0bd8cbaf1bb5c87929681ea6bd83e8d834

Author: José Fonseca <jfonseca at vmware.com>
Date:   Tue Nov  6 11:38:12 2012 +0000

tgsi: Lift the requirement of indirection being done by ADDR register.

For drivers with native integer / SM4 support this is just an hindrance.

Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>

---

 src/gallium/auxiliary/tgsi/tgsi_exec.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c
index 428227d..1b7150b 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_exec.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c
@@ -1213,7 +1213,6 @@ fetch_source(const struct tgsi_exec_machine *mach,
       index2.i[1] =
       index2.i[2] =
       index2.i[3] = reg->Indirect.Index;
-      assert(reg->Indirect.File == TGSI_FILE_ADDRESS);
       /* get current value of address register[swizzle] */
       swizzle = tgsi_util_get_src_register_swizzle( &reg->Indirect, TGSI_CHAN_X );
       fetch_src_file_channel(mach,




More information about the mesa-commit mailing list