Commit 5aeefe8d authored by Danylo Piliaiev's avatar Danylo Piliaiev 🇺🇦 Committed by Marge Bot
Browse files

tu: Don't count 3d blits in QUERY_TYPE_PRIMITIVES_GENERATED



Signed-off-by: Danylo Piliaiev's avatarDanylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <!17164>
parent 97ef19e6
Pipeline #621149 waiting for manual action with stages
......@@ -1116,6 +1116,10 @@ r3d_setup(struct tu_cmd_buffer *cmd,
/* Disable sample counting in order to not affect occlusion query. */
tu_cs_emit_regs(cs, A6XX_RB_SAMPLE_COUNT_CONTROL(.disable = true));
if (cmd->state.prim_generated_query_running_before_rp) {
tu6_emit_event_write(cmd, cs, STOP_PRIMITIVE_CTRS);
}
if (cmd->state.predication_active) {
tu_cs_emit_pkt7(cs, CP_DRAW_PRED_ENABLE_LOCAL, 1);
tu_cs_emit(cs, 0);
......@@ -1154,6 +1158,10 @@ r3d_teardown(struct tu_cmd_buffer *cmd, struct tu_cs *cs)
/* Re-enable sample counting. */
tu_cs_emit_regs(cs, A6XX_RB_SAMPLE_COUNT_CONTROL(.disable = false));
if (cmd->state.prim_generated_query_running_before_rp) {
tu6_emit_event_write(cmd, cs, START_PRIMITIVE_CTRS);
}
}
/* blit ops - common interface for 2d/shader paths */
......@@ -2360,6 +2368,10 @@ tu_clear_sysmem_attachments(struct tu_cmd_buffer *cmd,
/* Disable sample counting in order to not affect occlusion query. */
tu_cs_emit_regs(cs, A6XX_RB_SAMPLE_COUNT_CONTROL(.disable = true));
if (cmd->state.prim_generated_query_running_before_rp) {
tu6_emit_event_write(cmd, cs, STOP_PRIMITIVE_CTRS);
}
tu_cs_emit_regs(cs,
A6XX_SP_FS_RENDER_COMPONENTS(.dword = clear_components));
tu_cs_emit_regs(cs,
......@@ -2435,6 +2447,10 @@ tu_clear_sysmem_attachments(struct tu_cmd_buffer *cmd,
/* Re-enable sample counting. */
tu_cs_emit_regs(cs, A6XX_RB_SAMPLE_COUNT_CONTROL(.disable = false));
if (cmd->state.prim_generated_query_running_before_rp) {
tu6_emit_event_write(cmd, cs, START_PRIMITIVE_CTRS);
}
trace_end_sysmem_clear_all(&cmd->trace,
cs, mrt_count, rect_count);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment