From: Keith Whitwell Date: Tue, 1 Dec 2009 15:01:00 +0000 (+0000) Subject: tgsi: fix ureg emit after version token change X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=574715d8368f99c0a5720a9676385d58d6cfdf30;p=mesa.git tgsi: fix ureg emit after version token change --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c b/src/gallium/auxiliary/tgsi/tgsi_ureg.c index 080bdb5145a..fb4b5fa868f 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; }