mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
nvk: Depth buffers don't allow Z-tiling
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
parent
90b94828dd
commit
99248274b4
1 changed files with 2 additions and 1 deletions
|
|
@ -501,10 +501,11 @@ nvk_CmdBeginRendering(VkCommandBuffer commandBuffer,
|
|||
const uint8_t zs_format = nil_format_to_depth_stencil(p_format);
|
||||
P_NV9097_SET_ZT_FORMAT(p, zs_format);
|
||||
assert(image->nil.dim != NIL_IMAGE_DIM_3D);
|
||||
assert(level->tiling.z_log2 == 0);
|
||||
P_NV9097_SET_ZT_BLOCK_SIZE(p, {
|
||||
.width = WIDTH_ONE_GOB,
|
||||
.height = level->tiling.y_log2,
|
||||
.depth = level->tiling.z_log2,
|
||||
.depth = DEPTH_ONE_GOB,
|
||||
});
|
||||
P_NV9097_SET_ZT_ARRAY_PITCH(p, image->nil.array_stride_B >> 2);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue