nvk: Invalidate the texture cache in PipelineBarrier

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25135>
This commit is contained in:
Faith Ekstrand
2023-09-08 18:18:52 -05:00
committed by Marge Bot
parent dff769e2bd
commit bb91e0306c

View File

@@ -363,8 +363,12 @@ nvk_CmdPipelineBarrier2(VkCommandBuffer commandBuffer,
VK_FROM_HANDLE(nvk_cmd_buffer, cmd, commandBuffer);
/* TODO: We don't need to WFI all the time, do we? */
struct nv_push *p = nvk_cmd_buffer_push(cmd, 2);
struct nv_push *p = nvk_cmd_buffer_push(cmd, 4);
P_IMMD(p, NV9097, WAIT_FOR_IDLE, 0);
P_IMMD(p, NV9097, INVALIDATE_TEXTURE_DATA_CACHE, {
.lines = LINES_ALL,
});
}
VKAPI_ATTR void VKAPI_CALL