Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mesa
mesa
Commits
5aeefe8d
Commit
5aeefe8d
authored
Jun 21, 2022
by
Danylo Piliaiev
🇺🇦
Committed by
Marge Bot
Jun 24, 2022
Browse files
tu: Don't count 3d blits in QUERY_TYPE_PRIMITIVES_GENERATED
Signed-off-by:
Danylo Piliaiev
<
dpiliaiev@igalia.com
>
Part-of: <
!17164
>
parent
97ef19e6
Pipeline
#621149
waiting for manual action with stages
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/freedreno/vulkan/tu_clear_blit.c
View file @
5aeefe8d
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment