}
if (i == const_state->immediate_idx) {
- struct ir3_compiler *compiler = instr->block->shader->compiler;
/* Add on a new immediate to be pushed, if we have space left in the
* constbuf.
*/
if (const_state->offsets.immediate + const_state->immediate_idx / 4 >=
- compiler->max_const)
+ ir3_max_const(ctx->so))
return false;
swiz = i % 4;