summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i965simple/brw_wm_decl.c
diff options
context:
space:
mode:
authorBrian <brian@i915.localnet.net>2008-02-27 16:05:16 -0700
committerBrian <brian@i915.localnet.net>2008-02-27 16:05:16 -0700
commitea7e86dd4d1e7dbef2642da73bb1980723ae49ef (patch)
treed5fb0f559f20b339349f28151426a90608732a53 /src/gallium/drivers/i965simple/brw_wm_decl.c
parent6b9a7eb460fe0a9c958b837f2ed49c2d4e303ebc (diff)
gallium/i965: remove dependencies on pipe_shader_state's semantic info
The brw_shader_info struct is rendundant and could be removed...
Diffstat (limited to 'src/gallium/drivers/i965simple/brw_wm_decl.c')
-rw-r--r--src/gallium/drivers/i965simple/brw_wm_decl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/i965simple/brw_wm_decl.c b/src/gallium/drivers/i965simple/brw_wm_decl.c
index 97418a52e7..afea042bf0 100644
--- a/src/gallium/drivers/i965simple/brw_wm_decl.c
+++ b/src/gallium/drivers/i965simple/brw_wm_decl.c
@@ -259,7 +259,7 @@ static void prealloc_reg(struct brw_wm_compile *c)
/* Then a copy of our part of the CURBE entry:
*/
{
- int nr_constants = c->fp->info.nr_regs[TGSI_FILE_CONSTANT];
+ int nr_constants = c->fp->info2.nr_regs[TGSI_FILE_CONSTANT];
int index = 0;
c->prog_data.max_const = 4*nr_constants;
@@ -282,7 +282,7 @@ static void prealloc_reg(struct brw_wm_compile *c)
/* Next we receive the plane coefficients for parameter
* interpolation:
*/
- for (i = 0; i < c->fp->info.nr_regs[TGSI_FILE_INPUT]; i++) {
+ for (i = 0; i < c->fp->info2.nr_regs[TGSI_FILE_INPUT]; i++) {
c->payload_coef[i] = brw_vec8_grf(c->reg_index, 0);
c->reg_index += 2;
}
@@ -302,11 +302,11 @@ static void prealloc_reg(struct brw_wm_compile *c)
/* Now allocate room for the interpolated inputs and staging
* registers for the outputs:
*/
- for (i = 0; i < c->fp->info.nr_regs[TGSI_FILE_INPUT]; i++)
+ for (i = 0; i < c->fp->info2.nr_regs[TGSI_FILE_INPUT]; i++)
for (j = 0; j < 4; j++)
c->wm_regs[TGSI_FILE_INPUT][i][j] = brw_vec8_grf( c->reg_index++, 0 );
- for (i = 0; i < c->fp->info.nr_regs[TGSI_FILE_OUTPUT]; i++)
+ for (i = 0; i < c->fp->info2.nr_regs[TGSI_FILE_OUTPUT]; i++)
for (j = 0; j < 4; j++)
c->wm_regs[TGSI_FILE_OUTPUT][i][j] = brw_vec8_grf( c->reg_index++, 0 );