mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
st: Translate address register declaration.
This commit is contained in:
parent
81dbc31f8b
commit
3eeaa943e2
1 changed files with 28 additions and 0 deletions
|
|
@ -610,6 +610,19 @@ make_temp_decl(
|
|||
return decl;
|
||||
}
|
||||
|
||||
static struct tgsi_full_declaration
|
||||
make_addr_decl(
|
||||
GLuint start_index,
|
||||
GLuint end_index )
|
||||
{
|
||||
struct tgsi_full_declaration decl;
|
||||
|
||||
decl = tgsi_default_full_declaration();
|
||||
decl.Declaration.File = TGSI_FILE_ADDRESS;
|
||||
decl.DeclarationRange.First = start_index;
|
||||
decl.DeclarationRange.Last = end_index;
|
||||
return decl;
|
||||
}
|
||||
|
||||
static struct tgsi_full_declaration
|
||||
make_sampler_decl(GLuint index)
|
||||
|
|
@ -828,6 +841,21 @@ tgsi_translate_mesa_program(
|
|||
}
|
||||
}
|
||||
|
||||
/* Address register.
|
||||
*/
|
||||
if (program->NumAddressRegs > 0) {
|
||||
struct tgsi_full_declaration fulldecl;
|
||||
|
||||
assert( program->NumAddressRegs == 1 );
|
||||
|
||||
fulldecl = make_addr_decl( 0, 0 );
|
||||
ti += tgsi_build_full_declaration(
|
||||
&fulldecl,
|
||||
&tokens[ti],
|
||||
header,
|
||||
maxTokens - ti );
|
||||
}
|
||||
|
||||
/* immediates/literals */
|
||||
memset(immediates, ~0, sizeof(immediates));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue