mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
intel/isl: Simplify Z-buffer tiling config during emit
For SNB and prior, assert that the surface is Y-tiled and use constants when configuring the tiling parameters. This makes a follow-on commit clearer. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14825>
This commit is contained in:
parent
06aaa2cead
commit
146213d0ee
1 changed files with 3 additions and 3 deletions
|
|
@ -129,9 +129,9 @@ isl_genX(emit_depth_stencil_hiz_s)(const struct isl_device *dev, void *batch,
|
|||
db.RenderCompressionFormat =
|
||||
isl_get_render_compression_format(info->depth_surf->format);
|
||||
#elif GFX_VER <= 6
|
||||
db.TiledSurface = info->depth_surf->tiling != ISL_TILING_LINEAR;
|
||||
db.TileWalk = info->depth_surf->tiling == ISL_TILING_Y0 ? TILEWALK_YMAJOR :
|
||||
TILEWALK_XMAJOR;
|
||||
assert(info->depth_surf->tiling == ISL_TILING_Y0);
|
||||
db.TiledSurface = true;
|
||||
db.TileWalk = TILEWALK_YMAJOR;
|
||||
db.MIPMapLayoutMode = MIPLAYOUT_BELOW;
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue