tgsi: fix ureg emit after version token change
authorKeith Whitwell <keithw@vmware.com>
Tue, 1 Dec 2009 15:01:00 +0000 (15:01 +0000)
committerKeith Whitwell <keithw@vmware.com>
Tue, 1 Dec 2009 15:01:00 +0000 (15:01 +0000)
src/gallium/auxiliary/tgsi/tgsi_ureg.c

index 080bdb5145a6681208df547711c4b9453b5e5b05..fb4b5fa868fbdf19c7e31a09845fdadd53d1472c 100644 (file)
@@ -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;
 }