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 3b658028ddf2f1775a8698aae5082c2a222282e4)
This commit is contained in:
parent
6add041513
commit
0f8d77fc04
2 changed files with 4 additions and 2 deletions
|
|
@ -2084,7 +2084,7 @@
|
||||||
"description": "nvk: Invalidate the texture cache before MSAA resolves",
|
"description": "nvk: Invalidate the texture cache before MSAA resolves",
|
||||||
"nominated": true,
|
"nominated": true,
|
||||||
"nomination_type": 1,
|
"nomination_type": 1,
|
||||||
"resolution": 0,
|
"resolution": 1,
|
||||||
"main_sha": null,
|
"main_sha": null,
|
||||||
"because_sha": "4bd2ba31fc952a5ef2e5e238752b9a3d0f750f9c",
|
"because_sha": "4bd2ba31fc952a5ef2e5e238752b9a3d0f750f9c",
|
||||||
"notes": null
|
"notes": null
|
||||||
|
|
|
||||||
|
|
@ -917,7 +917,9 @@ nvk_CmdEndRendering(VkCommandBuffer commandBuffer)
|
||||||
|
|
||||||
if (need_resolve) {
|
if (need_resolve) {
|
||||||
struct nv_push *p = nvk_cmd_buffer_push(cmd, 2);
|
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);
|
nvk_meta_resolve_rendering(cmd, &vk_render);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue