diff options
author | Rob Clark <Rob Clark [email protected]> | 2013-04-22 13:55:14 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2013-04-24 21:09:46 -0400 |
commit | eec37f1cdc1651588a4fcd5e87b57d85a57e431f (patch) | |
tree | 7bddf5398cb89a8c7d508cefe6d036bb7b183445 /src/gallium/drivers/freedreno/freedreno_program.c | |
parent | 38d8b02eba9aea5b1ce61e8fc949163debda5cd7 (diff) |
freedreno: use u_math macros/helpers more
Get rid of a few self-defined macros:
ALIGN() -> align()
min() -> MIN2()
max() -> MAX2()
Signed-off-by: Rob Clark <[email protected]>
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)); |