These variables are all used in an assert(), so release builds see no
usages.
static void
ntq_emit_color_read(struct vc4_compile *c, nir_intrinsic_instr *instr)
{
static void
ntq_emit_color_read(struct vc4_compile *c, nir_intrinsic_instr *instr)
{
- nir_const_value *const_offset = nir_src_as_const_value(instr->src[0]);
- assert(const_offset->u32[0] == 0);
+ assert(nir_src_as_const_value(instr->src[0])->u32[0] == 0);
/* Reads of the per-sample color need to be done in
* order.
/* Reads of the per-sample color need to be done in
* order.
static void
set_last_dst_pack(struct qblock *block, struct qinst *inst)
{
static void
set_last_dst_pack(struct qblock *block, struct qinst *inst)
{
- bool had_pm = *last_inst(block) & QPU_PM;
- bool had_ws = *last_inst(block) & QPU_WS;
- uint32_t unpack = QPU_GET_FIELD(*last_inst(block), QPU_UNPACK);
+ MAYBE_UNUSED bool had_pm = *last_inst(block) & QPU_PM;
+ MAYBE_UNUSED bool had_ws = *last_inst(block) & QPU_WS;
+ MAYBE_UNUSED uint32_t unpack = QPU_GET_FIELD(*last_inst(block), QPU_UNPACK);
if (!inst->dst.pack)
return;
if (!inst->dst.pack)
return;
- bool handled_qinst_cond = false;
+ MAYBE_UNUSED bool handled_qinst_cond = false;
switch (qinst->op) {
case QOP_RCP:
switch (qinst->op) {
case QOP_RCP: