radv,aco: compact vertex buffer descriptors
It seems common for there to be holes. fossil-db (GFX10.3, robustBufferAccess enabled): Totals from 33791 (23.10% of 146267) affected shaders: (no statistics changed) Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7871>
This commit is contained in:
@@ -447,7 +447,7 @@ static void
|
||||
radv_dump_vertex_descriptors(struct radv_pipeline *pipeline, FILE *f)
|
||||
{
|
||||
void *ptr = (uint64_t *)pipeline->device->trace_id_ptr;
|
||||
uint32_t count = util_last_bit(pipeline->vb_desc_usage_mask);
|
||||
uint32_t count = util_bitcount(pipeline->vb_desc_usage_mask);
|
||||
uint32_t *vb_ptr = &((uint32_t *)ptr)[3];
|
||||
|
||||
if (!count)
|
||||
|
Reference in New Issue
Block a user