nvk: Enable ZPASS_PIXEL_COUNT in draw_state_init()

Fixes: 052bbd65c9 ("nvk: Implement pipeline statistics and occlusion queries")
Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39510>
This commit is contained in:
Faith Ekstrand 2024-02-27 18:52:59 -06:00 committed by Marge Bot
parent ea5d69eb52
commit c081ab864f
2 changed files with 4 additions and 3 deletions

View file

@ -385,6 +385,9 @@ nvk_push_draw_state_init(struct nvk_queue *queue, struct nv_push *p)
.output7 = OUTPUT7_FALSE,
});
/* The blob driver just always leaves this on. */
P_IMMD(p, NV9097, SET_ZPASS_PIXEL_COUNT, ENABLE_TRUE);
P_IMMD(p, NV9097, SET_POINT_SIZE, fui(1.0));
P_IMMD(p, NV9097, SET_ATTRIBUTE_POINT_SIZE, { .enable = ENABLE_TRUE });

View file

@ -469,9 +469,7 @@ nvk_cmd_begin_end_query(struct nvk_cmd_buffer *cmd,
struct nv_push *p;
switch (pool->vk.query_type) {
case VK_QUERY_TYPE_OCCLUSION:
p = nvk_cmd_buffer_push(cmd, 7 + end_size);
P_IMMD(p, NV9097, SET_ZPASS_PIXEL_COUNT, !end);
p = nvk_cmd_buffer_push(cmd, 5 + end_size);
P_MTHD(p, NV9097, SET_REPORT_SEMAPHORE_A);
P_NV9097_SET_REPORT_SEMAPHORE_A(p, report_addr >> 32);