mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
r300/compiler: allow 32 temporaries in vertex shaders
This commit is contained in:
parent
2f6b4187eb
commit
dd90c3040e
2 changed files with 4 additions and 4 deletions
|
|
@ -405,7 +405,7 @@ static void allocate_temporary_registers(struct r300_vertex_program_compiler * c
|
|||
{
|
||||
struct rc_instruction *inst;
|
||||
unsigned int num_orig_temps = 0;
|
||||
char hwtemps[VSF_MAX_FRAGMENT_TEMPS];
|
||||
char hwtemps[R300_VS_MAX_TEMPS];
|
||||
struct temporary_allocation * ta;
|
||||
unsigned int i, j;
|
||||
|
||||
|
|
@ -464,11 +464,11 @@ static void allocate_temporary_registers(struct r300_vertex_program_compiler * c
|
|||
unsigned int orig = inst->U.I.DstReg.Index;
|
||||
|
||||
if (!ta[orig].Allocated) {
|
||||
for(j = 0; j < VSF_MAX_FRAGMENT_TEMPS; ++j) {
|
||||
for(j = 0; j < R300_VS_MAX_TEMPS; ++j) {
|
||||
if (!hwtemps[j])
|
||||
break;
|
||||
}
|
||||
if (j >= VSF_MAX_FRAGMENT_TEMPS) {
|
||||
if (j >= R300_VS_MAX_TEMPS) {
|
||||
fprintf(stderr, "Out of hw temporaries\n");
|
||||
} else {
|
||||
ta[orig].Allocated = 1;
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ struct rX00_fragment_program_code {
|
|||
|
||||
|
||||
#define VSF_MAX_FRAGMENT_LENGTH (255*4)
|
||||
#define VSF_MAX_FRAGMENT_TEMPS (14)
|
||||
#define R300_VS_MAX_TEMPS 32
|
||||
|
||||
#define VSF_MAX_INPUTS 32
|
||||
#define VSF_MAX_OUTPUTS 32
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue