mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
i965/fs: Ensure delta_x/y are even-aligned registers on Gen6.
The BSpec says this applies to Gen6 as well. Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
This commit is contained in:
parent
958b4965a2
commit
3b4abdae04
2 changed files with 3 additions and 3 deletions
|
|
@ -428,7 +428,7 @@ fs_generator::generate_linterp(fs_inst *inst,
|
|||
|
||||
if (brw->has_pln &&
|
||||
delta_y.nr == delta_x.nr + 1 &&
|
||||
(brw->gen >= 6 || (delta_x.nr & 1) == 0)) {
|
||||
(brw->gen >= 7 || (delta_x.nr & 1) == 0)) {
|
||||
brw_PLN(p, dst, interp, delta_x);
|
||||
} else {
|
||||
brw_LINE(p, brw_null_reg(), interp, delta_x);
|
||||
|
|
|
|||
|
|
@ -245,9 +245,9 @@ brw_alloc_reg_set(struct intel_screen *screen, int reg_width)
|
|||
assert(reg == ra_reg_count);
|
||||
|
||||
/* Add a special class for aligned pairs, which we'll put delta_x/y
|
||||
* in on gen5 so that we can do PLN.
|
||||
* in on Gen <= 6 so that we can do PLN.
|
||||
*/
|
||||
if (devinfo->has_pln && reg_width == 1 && devinfo->gen < 6) {
|
||||
if (devinfo->has_pln && reg_width == 1 && devinfo->gen <= 6) {
|
||||
aligned_pairs_class = ra_alloc_reg_class(regs);
|
||||
|
||||
for (int i = 0; i < pairs_reg_count; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue