mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-14 11:28:19 +02:00
nvk: Ignore meta ops in occlusion queries
Fixes: 052bbd65c9 ("nvk: Implement pipeline statistics and occlusion queries")
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39510>
This commit is contained in:
parent
c081ab864f
commit
e32bfc5efe
1 changed files with 6 additions and 2 deletions
|
|
@ -78,7 +78,7 @@ nvk_meta_begin(struct nvk_cmd_buffer *cmd,
|
|||
{
|
||||
const struct nvk_descriptor_state *desc = &cmd->state.gfx.descriptors;
|
||||
|
||||
struct nv_push *p = nvk_cmd_buffer_push(cmd, 4);
|
||||
struct nv_push *p = nvk_cmd_buffer_push(cmd, 6);
|
||||
|
||||
P_IMMD(p, NV9097, SET_RENDER_ENABLE_OVERRIDE, MODE_ALWAYS_RENDER);
|
||||
|
||||
|
|
@ -100,6 +100,8 @@ nvk_meta_begin(struct nvk_cmd_buffer *cmd,
|
|||
.vtg_primitives_out_enable = false,
|
||||
});
|
||||
|
||||
P_IMMD(p, NV9097, SET_ZPASS_PIXEL_COUNT, false);
|
||||
|
||||
save->dynamic = cmd->vk.dynamic_graphics_state;
|
||||
save->_dynamic_vi = cmd->state.gfx._dynamic_vi;
|
||||
save->_dynamic_sl = cmd->state.gfx._dynamic_sl;
|
||||
|
|
@ -187,7 +189,9 @@ nvk_meta_end(struct nvk_cmd_buffer *cmd,
|
|||
nvk_descriptor_state_set_root_array(cmd, desc, push, 0, sizeof(save->push),
|
||||
save->push);
|
||||
|
||||
struct nv_push *p = nvk_cmd_buffer_push(cmd, 4);
|
||||
struct nv_push *p = nvk_cmd_buffer_push(cmd, 6);
|
||||
|
||||
P_IMMD(p, NV9097, SET_ZPASS_PIXEL_COUNT, true);
|
||||
|
||||
P_IMMD(p, NV9097, SET_STATISTICS_COUNTER, {
|
||||
.da_vertices_generated_enable = true,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue