mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
nvk: Disable sparse Z on Maxwell+
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
parent
99248274b4
commit
3ef84bc1e0
1 changed files with 6 additions and 0 deletions
|
|
@ -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 */);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue