radv: Fix dumping vertex descriptors with RADV_DEBUG=hang.
Adding 3 words should be done before the uint32_t ** cast. This is in line with other places which uses pointer arithmetic on trace_id_ptr. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25081>
This commit is contained in:
committed by
Marge Bot
parent
6d2d74fa1c
commit
383842fab8
@@ -409,9 +409,9 @@ static void
|
||||
radv_dump_vertex_descriptors(const struct radv_device *device, const struct radv_graphics_pipeline *pipeline, FILE *f)
|
||||
{
|
||||
struct radv_shader *vs = radv_get_shader(pipeline->base.shaders, MESA_SHADER_VERTEX);
|
||||
void *ptr = (uint64_t *)device->trace_id_ptr;
|
||||
uint64_t *ptr = (uint64_t *)device->trace_id_ptr;
|
||||
uint32_t count = util_bitcount(vs->info.vs.vb_desc_usage_mask);
|
||||
uint32_t *vb_ptr = &((uint32_t *)ptr)[3];
|
||||
uint32_t *vb_ptr = *(uint32_t **)(ptr + 3);
|
||||
|
||||
if (!count)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user