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:
committed by
Marge Bot
parent
80709d11d2
commit
de542784f8
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user