mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
intel/fs: Assert that the gen4-6 plane restrictions are followed
The fall-back does not work correctly in SIMD16 mode and the register allocator should ensure that we never hit this case anyway. Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
ed834aefa2
commit
a1a850cd34
1 changed files with 8 additions and 2 deletions
|
|
@ -817,8 +817,14 @@ fs_generator::generate_linterp(fs_inst *inst,
|
|||
}
|
||||
|
||||
return true;
|
||||
} else if (devinfo->has_pln &&
|
||||
(devinfo->gen >= 7 || (delta_x.nr & 1) == 0)) {
|
||||
} else if (devinfo->has_pln) {
|
||||
/* From the Sandy Bridge PRM Vol. 4, Pt. 2, Section 8.3.53, "Plane":
|
||||
*
|
||||
* "[DevSNB]:<src1> must be even register aligned.
|
||||
*
|
||||
* This restriction is lifted on Ivy Bridge.
|
||||
*/
|
||||
assert(devinfo->gen >= 7 || (delta_x.nr & 1) == 0);
|
||||
brw_PLN(p, dst, interp, delta_x);
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue