Mesa (master): tgsi: fix ureg emit after version token change

Keith Whitwell keithw at kemper.freedesktop.org
Tue Dec 1 07:01:08 PST 2009


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

Author: Keith Whitwell <keithw at vmware.com>
Date:   Tue Dec  1 15:01:00 2009 +0000

tgsi: fix ureg emit after version token change

---

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

diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
index 080bdb5..fb4b5fa 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_ureg.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
@@ -1053,7 +1053,7 @@ static void copy_instructions( struct ureg_program *ureg )
 static void
 fixup_header_size(struct ureg_program *ureg)
 {
-   union tgsi_any_token *out = retrieve_token( ureg, DOMAIN_DECL, 1 );
+   union tgsi_any_token *out = retrieve_token( ureg, DOMAIN_DECL, 0 );
 
    out->header.BodySize = ureg->domain[DOMAIN_DECL].count - 3;
 }



More information about the mesa-commit mailing list