nvk: Disable sparse Z on Maxwell+

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
Faith Ekstrand 2023-01-30 20:11:54 -06:00 committed by Marge Bot
parent 99248274b4
commit 3ef84bc1e0

View file

@ -522,6 +522,12 @@ nvk_CmdBeginRendering(VkCommandBuffer commandBuffer,
});
P_IMMD(p, NV9097, SET_ZT_LAYER, iview->vk.base_array_layer);
if (nvk_cmd_buffer_3d_cls(cmd) >= MAXWELL_B) {
P_IMMD(p, NVC597, SET_ZT_SPARSE, {
.enable = ENABLE_FALSE,
});
}
} else {
P_IMMD(p, NV9097, SET_ZT_SELECT, 0 /* target_count */);
}