Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6462>
static struct qreg
vc4_ubo_load(struct vc4_compile *c, nir_intrinsic_instr *intr)
{
- int buffer_index = nir_src_as_uint(intr->src[0]);
+ ASSERTED int buffer_index = nir_src_as_uint(intr->src[0]);
assert(buffer_index == 1);
assert(c->stage == QSTAGE_FRAG);
list_for_each_entry_safe(struct drm_vc4_bo, bo, &exec.unref_list,
unref_head) {
struct vc4_simulator_bo *sim_bo = (struct vc4_simulator_bo *)bo;
- struct drm_gem_cma_object *obj = &sim_bo->base.base;
+ ASSERTED struct drm_gem_cma_object *obj = &sim_bo->base.base;
list_del(&bo->unref_head);
assert(*(uint32_t *)(obj->vaddr + obj->base.size) ==
BO_SENTINEL);