mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 12:30:09 +01:00
radv: check if SQTT is enabled before calling radv_describe_draw()
This is faster. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37005>
This commit is contained in:
parent
a3f9d85270
commit
5aba130eab
2 changed files with 3 additions and 4 deletions
|
|
@ -344,8 +344,7 @@ radv_describe_draw(struct radv_cmd_buffer *cmd_buffer, const struct radv_draw_in
|
|||
const struct radv_device *device = radv_cmd_buffer_device(cmd_buffer);
|
||||
const struct radv_physical_device *pdev = radv_device_physical(device);
|
||||
|
||||
if (likely(!device->sqtt.bo))
|
||||
return;
|
||||
assert(device->sqtt.bo);
|
||||
|
||||
radv_write_event_marker(cmd_buffer, cmd_buffer->state.current_event_type, UINT_MAX, UINT_MAX, UINT_MAX);
|
||||
|
||||
|
|
|
|||
|
|
@ -11836,7 +11836,7 @@ radv_before_draw(struct radv_cmd_buffer *cmd_buffer, const struct radv_draw_info
|
|||
radv_gfx12_emit_buffered_regs(device, cs);
|
||||
}
|
||||
|
||||
if (!dgc)
|
||||
if (device->sqtt.bo && !dgc)
|
||||
radv_describe_draw(cmd_buffer, info);
|
||||
if (likely(!info->indirect_va)) {
|
||||
struct radv_cmd_state *state = &cmd_buffer->state;
|
||||
|
|
@ -11917,7 +11917,7 @@ radv_before_taskmesh_draw(struct radv_cmd_buffer *cmd_buffer, const struct radv_
|
|||
radv_gfx12_emit_buffered_regs(device, cmd_buffer->gang.cs);
|
||||
}
|
||||
|
||||
if (!dgc)
|
||||
if (device->sqtt.bo && !dgc)
|
||||
radv_describe_draw(cmd_buffer, info);
|
||||
if (likely(!info->indirect_va)) {
|
||||
struct radv_cmd_state *state = &cmd_buffer->state;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue