Rework:
* Disallow linear 1D stencil buffers (Nanley)
* Force Y for gen12 stencil rather than ~W (Nanley)
Co-authored-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
*flags &= ISL_TILING_ANY_Y_MASK;
}
- /* Separate stencil requires W tiling, and W tiling requires separate
- * stencil.
- */
if (isl_surf_usage_is_stencil(info->usage)) {
- *flags &= ISL_TILING_W_BIT;
+ if (ISL_DEV_GEN(dev) >= 12) {
+ /* Stencil requires Y. */
+ *flags &= ISL_TILING_ANY_Y_MASK;
+ } else {
+ /* Stencil requires W. */
+ *flags &= ISL_TILING_W_BIT;
+ }
} else {
*flags &= ~ISL_TILING_W_BIT;
}