mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
i965: Don't strip negate/abs flags when assigning uniform locations.
Fixes glsl-algebraic-sub-zero-4.
This commit is contained in:
parent
f0aa2d6118
commit
d20c276618
1 changed files with 5 additions and 5 deletions
|
|
@ -1336,12 +1336,12 @@ fs_visitor::assign_curb_setup()
|
|||
for (unsigned int i = 0; i < 3; i++) {
|
||||
if (inst->src[i].file == UNIFORM) {
|
||||
int constant_nr = inst->src[i].hw_reg + inst->src[i].reg_offset;
|
||||
struct brw_reg brw_reg;
|
||||
struct brw_reg brw_reg = brw_vec1_grf(c->prog_data.first_curbe_grf +
|
||||
constant_nr / 8,
|
||||
constant_nr % 8);
|
||||
|
||||
brw_reg = brw_vec1_grf(c->prog_data.first_curbe_grf +
|
||||
constant_nr / 8,
|
||||
constant_nr % 8);
|
||||
inst->src[i] = fs_reg(brw_reg);
|
||||
inst->src[i].file = FIXED_HW_REG;
|
||||
inst->src[i].fixed_hw_reg = brw_reg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue