diff options
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_program.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_program.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_program.c b/src/gallium/drivers/freedreno/freedreno_program.c index 22573df9fe1..3857a1cfe17 100644 --- a/src/gallium/drivers/freedreno/freedreno_program.c +++ b/src/gallium/drivers/freedreno/freedreno_program.c @@ -298,7 +298,7 @@ fd_program_emit(struct fd_ringbuffer *ring, vs_gprs = (vsi->max_reg < 0) ? 0x80 : vsi->max_reg; fs_gprs = (fsi->max_reg < 0) ? 0x80 : fsi->max_reg; - vs_export = max(1, prog->num_exports) - 1; + vs_export = MAX2(1, prog->num_exports) - 1; OUT_PKT3(ring, CP_SET_CONSTANT, 2); OUT_RING(ring, CP_REG(REG_A2XX_SQ_PROGRAM_CNTL)); |