blorp: use 2D dimension for 1D tiled images
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 31eeb72e45 ("blorp: Add support for blorp_copy via XY_BLOCK_COPY_BLT")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32608>
This commit is contained in:
committed by
Marge Bot
parent
cfb5687cb3
commit
e0b5179869
@@ -1874,7 +1874,11 @@ xy_bcb_surf_dim(const struct isl_surf *surf)
|
||||
{
|
||||
switch (surf->dim) {
|
||||
case ISL_SURF_DIM_1D:
|
||||
return XY_SURFTYPE_1D;
|
||||
/* An undocumented assertion in simulation is that 1D surfaces must use
|
||||
* LINEAR tiling. But that doesn't work, so instead consider 1D tiled
|
||||
* surfaces as 2D with a Height=1.
|
||||
*/
|
||||
return surf->tiling != ISL_TILING_LINEAR ? XY_SURFTYPE_2D: XY_SURFTYPE_1D;
|
||||
case ISL_SURF_DIM_2D:
|
||||
return XY_SURFTYPE_2D;
|
||||
case ISL_SURF_DIM_3D:
|
||||
|
||||
Reference in New Issue
Block a user