mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
intel/isl: Allow non-2D CCS surfaces
The CCS calculations in ISL are already correct for 1-D and 3-D CCS surfaces since they have exactly the same layout as 2-D array surfaces (at least on Sky Lake). The only problem was that we weren't passing in the right dimensionality and we weren't passing in the depth. Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
parent
26c8bb7bc0
commit
d7bd8c15d6
1 changed files with 2 additions and 2 deletions
|
|
@ -1492,11 +1492,11 @@ isl_surf_get_ccs_surf(const struct isl_device *dev,
|
|||
}
|
||||
|
||||
isl_surf_init(dev, ccs_surf,
|
||||
.dim = ISL_SURF_DIM_2D,
|
||||
.dim = surf->dim,
|
||||
.format = ccs_format,
|
||||
.width = surf->logical_level0_px.width,
|
||||
.height = surf->logical_level0_px.height,
|
||||
.depth = 1,
|
||||
.depth = surf->logical_level0_px.depth,
|
||||
.levels = surf->levels,
|
||||
.array_len = surf->logical_level0_px.array_len,
|
||||
.samples = 1,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue