Mesa (master): llvmpipe: Handle TGSI_TOKEN_TYPE_PROPERTY.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Thu Feb 11 03:08:44 PST 2010


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Thu Feb 11 11:08:30 2010 +0000

llvmpipe: Handle TGSI_TOKEN_TYPE_PROPERTY.

Avoids assertion failures with certain shaders.

---

 src/gallium/auxiliary/gallivm/lp_bld_interp.c   |    1 +
 src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_interp.c b/src/gallium/auxiliary/gallivm/lp_bld_interp.c
index a6acaea..2fc8940 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_interp.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_interp.c
@@ -376,6 +376,7 @@ lp_build_interp_soa_init(struct lp_build_interp_soa_context *bld,
 
       case TGSI_TOKEN_TYPE_INSTRUCTION:
       case TGSI_TOKEN_TYPE_IMMEDIATE:
+      case TGSI_TOKEN_TYPE_PROPERTY:
          break;
 
       default:
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index 2896c52..4cf28a9 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
@@ -1498,6 +1498,9 @@ lp_build_tgsi_soa(LLVMBuilderRef builder,
          }
          break;
 
+      case TGSI_TOKEN_TYPE_PROPERTY:
+         break;
+
       default:
          assert( 0 );
       }



More information about the mesa-commit mailing list