/* Bounds check */
if ((mem->stack_bottom + aligned_sz) >= mem->bo->size) {
- printf("Out of memory, tried to upload %zd but only %zd available\n",
+ printf("Out of memory, tried to upload %zu but only %zu available\n",
sz, mem->bo->size - mem->stack_bottom);
assert(0);
}
COPY(varying_count);
COPY(texture_count);
COPY(sampler_count);
- COPY(sampler_count);
COPY(midgard1.uniform_count);
COPY(midgard1.uniform_buffer_count);
COPY(midgard1.work_count);
/* The rest are honest-to-goodness UBOs */
for (unsigned ubo = 1; ubo < ubo_count; ++ubo) {
- size_t sz = buf->cb[ubo].buffer_size;
+ size_t usz = buf->cb[ubo].buffer_size;
bool enabled = buf->enabled_mask & (1 << ubo);
- bool empty = sz == 0;
+ bool empty = usz == 0;
if (!enabled || empty) {
/* Stub out disabled UBOs to catch accesses */
mali_ptr gpu = panfrost_map_constant_buffer_gpu(ctx, buf, ubo);
unsigned bytes_per_field = 16;
- unsigned aligned = ALIGN_POT(sz, bytes_per_field);
+ unsigned aligned = ALIGN_POT(usz, bytes_per_field);
unsigned fields = aligned / bytes_per_field;
ubos[ubo].size = MALI_POSITIVE(fields);
uint32_t prims = u_prims_for_vertices(info->mode, info->count);
ctx->prims_generated += prims;
- if (ctx->streamout.num_targets <= 0)
+ if (!ctx->streamout.num_targets)
return;
ctx->tf_prims_generated += prims;
break;
default:
- fprintf(stderr, "Skipping query %d\n", query->type);
+ fprintf(stderr, "Skipping query %u\n", query->type);
break;
}
break;
default:
- DBG("Skipped query get %d\n", query->type);
+ DBG("Skipped query get %u\n", query->type);
break;
}
panfrost_resource_context_init(struct pipe_context *pctx)
{
pctx->transfer_map = u_transfer_helper_transfer_map;
- pctx->transfer_flush_region = u_transfer_helper_transfer_flush_region;
pctx->transfer_unmap = u_transfer_helper_transfer_unmap;
- pctx->buffer_subdata = u_default_buffer_subdata;
pctx->create_surface = panfrost_create_surface;
pctx->surface_destroy = panfrost_surface_destroy;
pctx->resource_copy_region = util_resource_copy_region;