mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 18:24:13 +08:00
nvk: Disable conditional rendering around CopyQueryPoolResults
Fixes:57c38a5669
("nvk: Implement CopyQueryPoolResults with a compute shader") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30826> (cherry picked from commitcdef36c422
)
This commit is contained in:
parent
2eb470cdc5
commit
7f1f092b23
@ -1394,7 +1394,7 @@
|
||||
"description": "nvk: Disable conditional rendering around CopyQueryPoolResults",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "57c38a56696cd8a49786a884a9720e63c7ae0161",
|
||||
"notes": null
|
||||
|
@ -984,8 +984,14 @@ nvk_meta_copy_query_pool_results(struct nvk_cmd_buffer *cmd,
|
||||
vk_common_CmdPushConstants(nvk_cmd_buffer_to_handle(cmd), layout,
|
||||
VK_SHADER_STAGE_COMPUTE_BIT, 0, sizeof(push), &push);
|
||||
|
||||
struct nv_push *p = nvk_cmd_buffer_push(cmd, 2);
|
||||
P_IMMD(p, NVA0C0, SET_RENDER_ENABLE_OVERRIDE, MODE_ALWAYS_RENDER);
|
||||
|
||||
nvk_CmdDispatchBase(nvk_cmd_buffer_to_handle(cmd), 0, 0, 0, 1, 1, 1);
|
||||
|
||||
p = nvk_cmd_buffer_push(cmd, 2);
|
||||
P_IMMD(p, NVA0C0, SET_RENDER_ENABLE_OVERRIDE, MODE_USE_RENDER_ENABLE);
|
||||
|
||||
/* Restore pipeline and push constants */
|
||||
if (shader_save)
|
||||
nvk_cmd_bind_compute_shader(cmd, shader_save);
|
||||
|
Loading…
Reference in New Issue
Block a user