diff options
author | Corbin Simpson <[email protected]> | 2009-11-20 14:10:45 -0800 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2009-11-20 14:10:45 -0800 |
commit | 6a3eb1f91b4ccd4ee7ac6b91505e0dfa476922d4 (patch) | |
tree | e408c3b4720a6005bfc82acc8050352e1a0248f3 /src/gallium/drivers/r300/r300_state_derived.c | |
parent | 37ba97421c5cf351e2e3c7c1e41ffd72fb73f7e9 (diff) |
r300g: Use MAX3 and MIN3.
Diffstat (limited to 'src/gallium/drivers/r300/r300_state_derived.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_state_derived.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_state_derived.c b/src/gallium/drivers/r300/r300_state_derived.c index 7166694edf4..b4d0eeaf8c5 100644 --- a/src/gallium/drivers/r300/r300_state_derived.c +++ b/src/gallium/drivers/r300/r300_state_derived.c @@ -458,7 +458,7 @@ static void r300_update_rs_block(struct r300_context* r300, rs->count = (rs_tex_comp) | (col_count << R300_IC_COUNT_SHIFT) | R300_HIRES_EN; - rs->inst_count = MAX2(MAX2(col_count - 1, tex_count - 1), 0); + rs->inst_count = MAX3(col_count - 1, tex_count - 1, 0); } /* Update the vertex format. */ |