Mesa (gallium-0.1): ureg: allow all register files to be converted between src and dst regs
Keith Whitwell
keithw at kemper.freedesktop.org
Tue Sep 1 16:31:30 UTC 2009
Module: Mesa
Branch: gallium-0.1
Commit: 2e073da3447ee593dd46c8cc3c4c7f5b3023b7af
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2e073da3447ee593dd46c8cc3c4c7f5b3023b7af
Author: Keith Whitwell <keithw at vmware.com>
Date: Tue Sep 1 16:00:12 2009 +0100
ureg: allow all register files to be converted between src and dst regs
In shader translators, it's useful to have a single register
conversion function to handle the simple conversion of all incoming
register type, and then specialize according to src/dest nature
afterwards. Remove asserts that prevent this.
---
src/gallium/auxiliary/tgsi/tgsi_ureg.h | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.h b/src/gallium/auxiliary/tgsi/tgsi_ureg.h
index 8c32454..fd585ca 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_ureg.h
+++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.h
@@ -483,7 +483,6 @@ ureg_dst( struct ureg_src src )
{
struct ureg_dst dst;
- assert(src.File == TGSI_FILE_TEMPORARY);
dst.File = src.File;
dst.WriteMask = TGSI_WRITEMASK_XYZW;
dst.Indirect = src.Indirect;
@@ -500,7 +499,6 @@ ureg_src( struct ureg_dst dst )
{
struct ureg_src src;
- assert(dst.File == TGSI_FILE_TEMPORARY);
src.File = dst.File;
src.SwizzleX = TGSI_SWIZZLE_X;
src.SwizzleY = TGSI_SWIZZLE_Y;
More information about the mesa-commit
mailing list