tgsi: fix ureg emit after version token change

This commit is contained in:
Keith Whitwell 2009-12-01 15:01:00 +00:00
parent b7f94c9002
commit 574715d836

View 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;
}