mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
radv: do not issue SQTT marker with DISPATCH_MESH_INDIRECT_MULTI
According to PAL, only DISPATCH_TASKMESH_GFX is supposed to emit a SQTT marker as part of the packet, probably because there is also a packet emitted on ACE for executing task shaders. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10401 Fixes:312103e0ff("radv: set THREAD_TRACE_MARKER_ENABLE for mesh/task draws") Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26936> (cherry picked from commit3f655bc47c)
This commit is contained in:
parent
ebfe425490
commit
62a8493ac1
2 changed files with 3 additions and 6 deletions
|
|
@ -1094,7 +1094,7 @@
|
|||
"description": "radv: do not issue SQTT marker with DISPATCH_MESH_INDIRECT_MULTI",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "312103e0ffb6129427feee2ece1db81fc57862a6",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -8086,18 +8086,15 @@ radv_cs_emit_indirect_mesh_draw_packet(struct radv_cmd_buffer *cmd_buffer, uint3
|
|||
|
||||
uint32_t draw_id_enable = !!cmd_buffer->state.uses_drawid;
|
||||
uint32_t mode1_enable = !cmd_buffer->device->mesh_fast_launch_2;
|
||||
const bool sqtt_en = !!cmd_buffer->device->sqtt.bo;
|
||||
|
||||
radeon_emit(cs, PKT3(PKT3_DISPATCH_MESH_INDIRECT_MULTI, 7, predicating) | PKT3_RESET_FILTER_CAM_S(1));
|
||||
radeon_emit(cs, 0); /* data_offset */
|
||||
radeon_emit(cs, S_4C1_XYZ_DIM_REG(xyz_dim_reg) | S_4C1_DRAW_INDEX_REG(draw_id_reg));
|
||||
if (cmd_buffer->device->physical_device->rad_info.gfx_level >= GFX11)
|
||||
radeon_emit(cs, S_4C2_DRAW_INDEX_ENABLE(draw_id_enable) | S_4C2_COUNT_INDIRECT_ENABLE(!!count_va) |
|
||||
S_4C2_XYZ_DIM_ENABLE(xyz_dim_enable) | S_4C2_MODE1_ENABLE(mode1_enable) |
|
||||
S_4C2_THREAD_TRACE_MARKER_ENABLE(sqtt_en));
|
||||
S_4C2_XYZ_DIM_ENABLE(xyz_dim_enable) | S_4C2_MODE1_ENABLE(mode1_enable));
|
||||
else
|
||||
radeon_emit(cs, S_4C2_DRAW_INDEX_ENABLE(draw_id_enable) | S_4C2_COUNT_INDIRECT_ENABLE(!!count_va) |
|
||||
S_4C2_THREAD_TRACE_MARKER_ENABLE(sqtt_en));
|
||||
radeon_emit(cs, S_4C2_DRAW_INDEX_ENABLE(draw_id_enable) | S_4C2_COUNT_INDIRECT_ENABLE(!!count_va));
|
||||
radeon_emit(cs, draw_count);
|
||||
radeon_emit(cs, count_va & 0xFFFFFFFF);
|
||||
radeon_emit(cs, count_va >> 32);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue