vc4: Fix unused var warnings in release builds from assertions.
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6462>
This commit is contained in:
@@ -115,7 +115,7 @@ indirect_uniform_load(struct vc4_compile *c, nir_intrinsic_instr *intr)
|
||||
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);
|
||||
|
||||
|
@@ -421,7 +421,7 @@ vc4_simulator_submit_cl_ioctl(int fd, struct drm_vc4_submit_cl *args)
|
||||
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);
|
||||
|
Reference in New Issue
Block a user