summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvfx/nvfx_state_emit.c
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-08-21 14:29:50 -0700
committerVinson Lee <[email protected]>2010-08-21 14:29:50 -0700
commit489c787b80064b590016eecf2b8157760b0bc8a2 (patch)
treeda4110dfcb3c4149563cba8c5d8e6f8f94f2e122 /src/gallium/drivers/nvfx/nvfx_state_emit.c
parent11d27871a79fb7ffcf0e139a8c04d90991969023 (diff)
nvfx: Fix SCons build.
Move declarations before code. Fix void pointer arithmetic.
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_state_emit.c')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_state_emit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_state_emit.c b/src/gallium/drivers/nvfx/nvfx_state_emit.c
index 19512194be6..8e3c342179d 100644
--- a/src/gallium/drivers/nvfx/nvfx_state_emit.c
+++ b/src/gallium/drivers/nvfx/nvfx_state_emit.c
@@ -11,6 +11,7 @@ nvfx_state_validate_common(struct nvfx_context *nvfx)
unsigned still_dirty = 0;
int all_swizzled = -1;
boolean flush_tex_cache = FALSE;
+ unsigned render_temps;
if(nvfx != nvfx->screen->cur_ctx)
{
@@ -141,7 +142,7 @@ nvfx_state_validate_common(struct nvfx_context *nvfx)
nvfx->dirty = dirty & still_dirty;
- unsigned render_temps = nvfx->state.render_temps;
+ render_temps = nvfx->state.render_temps;
if(render_temps)
{
for(int i = 0; i < nvfx->framebuffer.nr_cbufs; ++i)