gallium/i965: remove more dependencies on pipe_shader_state semantic info
This commit is contained in:
parent
46da2f42a8
commit
627efcaa80
|
@ -50,8 +50,8 @@ static void do_vs_prog( struct brw_context *brw,
|
|||
brw_init_compile(&c.func);
|
||||
c.vp = vp;
|
||||
|
||||
c.prog_data.outputs_written = vp->program.num_outputs;
|
||||
c.prog_data.inputs_read = vp->program.num_inputs;
|
||||
c.prog_data.outputs_written = vp->info.num_outputs;
|
||||
c.prog_data.inputs_read = vp->info.num_inputs;
|
||||
|
||||
#if 0
|
||||
if (c.key.copy_edgeflag) {
|
||||
|
|
|
@ -86,7 +86,7 @@ static void brw_vs_alloc_regs( struct brw_vs_compile *c,
|
|||
|
||||
/* Allocate input regs:
|
||||
*/
|
||||
c->nr_inputs = c->vp->program.num_inputs;
|
||||
c->nr_inputs = c->vp->info.num_inputs;
|
||||
for (i = 0; i < c->nr_inputs; i++) {
|
||||
c->regs[TGSI_FILE_INPUT][i] = brw_vec8_grf(reg, 0);
|
||||
reg++;
|
||||
|
@ -99,7 +99,7 @@ static void brw_vs_alloc_regs( struct brw_vs_compile *c,
|
|||
c->nr_outputs = 0;
|
||||
c->first_output = reg;
|
||||
mrf = 4;
|
||||
for (i = 0; i < c->vp->program.num_outputs; i++) {
|
||||
for (i = 0; i < c->vp->info.num_outputs; i++) {
|
||||
c->nr_outputs++;
|
||||
#if 0
|
||||
if (i == VERT_RESULT_HPOS) {
|
||||
|
|
|
@ -292,7 +292,7 @@ static void prealloc_reg(struct brw_wm_compile *c)
|
|||
}
|
||||
|
||||
c->prog_data.first_curbe_grf = c->key.nr_depth_regs * 2;
|
||||
c->prog_data.urb_read_length = (c->fp->program.num_inputs + 1) * 2;
|
||||
c->prog_data.urb_read_length = (c->fp->info.num_inputs + 1) * 2;
|
||||
c->prog_data.curb_read_length = nr_curbe_regs;
|
||||
|
||||
/* That's the end of the payload, now we can start allocating registers.
|
||||
|
|
Loading…
Reference in New Issue