mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 19:20:08 +01:00
radv: make sure to allocate enough space when emitting SQTT userdata
If we emit a lot of markers, we might reach the limit easily. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9097>
This commit is contained in:
parent
80709d11d2
commit
de542784f8
1 changed files with 2 additions and 0 deletions
|
|
@ -327,6 +327,8 @@ radv_emit_thread_trace_userdata(const struct radv_device *device,
|
|||
while (num_dwords > 0) {
|
||||
uint32_t count = MIN2(num_dwords, 2);
|
||||
|
||||
radeon_check_space(device->ws, cs, 2 + count);
|
||||
|
||||
/* Without the perfctr bit the CP might not always pass the
|
||||
* write on correctly. */
|
||||
if (device->physical_device->rad_info.chip_class >= GFX10)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue