Signed-off-by: Luigi Santivetti <luigi.santivetti@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22061>
struct pvr_descriptor_set *set;
VkResult result;
size_t size;
- void *map;
size = sizeof(*set) + sizeof(set->descriptors[0]) * layout->descriptor_count;
set->layout = layout;
set->pool = pool;
- map = set->pvr_bo->bo->map;
for (uint32_t i = 0; i < layout->binding_count; i++) {
const struct pvr_descriptor_set_layout_binding *binding =
&layout->bindings[i];
binding,
stage,
j);
+ void *map = set->pvr_bo->bo->map;
if (binding->type == VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER)
offset_in_dwords += 4;