diff options
author | Oliver McFadden <z3ro.geek@gmail.com> | 2007-05-08 19:38:44 +0000 |
---|---|---|
committer | Oliver McFadden <z3ro.geek@gmail.com> | 2007-05-08 19:38:44 +0000 |
commit | 73bc8b63ac2206a1c1dfd02891493db6e747a36f (patch) | |
tree | 864392502a4dde06934306d081c78436e0639479 /src/mesa/drivers/dri/r300 | |
parent | 377ce9e074632d99d7b12f17a6e535971f755ba3 (diff) |
r300: Last few r300_render.c clean up.
Diffstat (limited to 'src/mesa/drivers/dri/r300')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_render.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_render.c b/src/mesa/drivers/dri/r300/r300_render.c index 628a9fb42d..0e585855e9 100644 --- a/src/mesa/drivers/dri/r300/r300_render.c +++ b/src/mesa/drivers/dri/r300/r300_render.c @@ -196,8 +196,7 @@ static void inline r300FireEB(r300ContextPtr rmesa, unsigned long addr, drm_radeon_cmd_header_t *cmd = NULL; unsigned long t_addr; unsigned long magic_1, magic_2; - GLcontext *ctx; - ctx = rmesa->radeon.glCtx; + GLcontext *ctx = rmesa->radeon.glCtx; assert(elt_size == 2 || elt_size == 4); @@ -207,7 +206,7 @@ static void inline r300FireEB(r300ContextPtr rmesa, unsigned long addr, } magic_1 = (addr % 32) / 4; - t_addr = addr & (~0x1d); + t_addr = addr & ~0x1d; magic_2 = (vertex_count + 1 + (t_addr & 0x2)) / 2 + magic_1; check_space(6); |