nvk: Invalidate the texture cache before MSAA resolves

Fixes: 4bd2ba31fc ("nvk: Use meta for MSAA resolves")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27710>
(cherry picked from commit 3b658028dd)
This commit is contained in:
Faith Ekstrand 2024-02-20 19:37:56 -06:00 committed by Eric Engestrom
parent 6add041513
commit 0f8d77fc04
2 changed files with 4 additions and 2 deletions

View file

@ -2084,7 +2084,7 @@
"description": "nvk: Invalidate the texture cache before MSAA resolves",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "4bd2ba31fc952a5ef2e5e238752b9a3d0f750f9c",
"notes": null

View file

@ -917,7 +917,9 @@ nvk_CmdEndRendering(VkCommandBuffer commandBuffer)
if (need_resolve) {
struct nv_push *p = nvk_cmd_buffer_push(cmd, 2);
P_IMMD(p, NV9097, WAIT_FOR_IDLE, 0);
P_IMMD(p, NVA097, INVALIDATE_TEXTURE_DATA_CACHE, {
.lines = LINES_ALL,
});
nvk_meta_resolve_rendering(cmd, &vk_render);
}