summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/r600
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2011-06-08 14:10:49 +1000
committerDave Airlie <[email protected]>2011-06-08 14:11:49 +1000
commite84981dede56a9aae154cb3266e371aad46e15bb (patch)
treec8356d179b3b0ae00c19b13796c93bc11da52770 /src/gallium/winsys/r600
parentc1f9884bbf580ea4390cc71d1696c87eba9f8f2e (diff)
r600g: fix warnings in winsys.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/winsys/r600')
-rw-r--r--src/gallium/winsys/r600/drm/r600_hw_context.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c
index 42492997df9..234834e4ee2 100644
--- a/src/gallium/winsys/r600/drm/r600_hw_context.c
+++ b/src/gallium/winsys/r600/drm/r600_hw_context.c
@@ -1067,7 +1067,6 @@ static void r600_context_dirty_resource_block(struct r600_context *ctx,
void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, struct r600_block *block)
{
- int i;
int dirty;
int num_regs = ctx->radeon->chip_class >= EVERGREEN ? 8 : 7;
boolean is_vertex;
@@ -1330,8 +1329,7 @@ out:
void r600_context_block_resource_emit_dirty(struct r600_context *ctx, struct r600_block *block)
{
int id;
- int cp_dwords = block->pm4_ndwords, start_dword = 0;
- int new_dwords = 0;
+ int cp_dwords = block->pm4_ndwords;
int nbo = block->nbo;
ctx->flags |= R600_CONTEXT_CHECK_EVENT_FLUSH;
@@ -1359,7 +1357,6 @@ void r600_context_block_resource_emit_dirty(struct r600_context *ctx, struct r60
memcpy(&ctx->pm4[ctx->pm4_cdwords], block->pm4, cp_dwords * 4);
ctx->pm4_cdwords += cp_dwords;
-out:
block->status ^= R600_BLOCK_STATUS_RESOURCE_DIRTY;
block->nreg_dirty = 0;
LIST_DELINIT(&block->list);
@@ -1489,7 +1486,7 @@ void r600_context_flush(struct r600_context *ctx)
uint64_t chunk_array[2];
unsigned fence;
int r;
- struct r600_block *enable_block = NULL, *next_block;
+ struct r600_block *enable_block = NULL;
if (!ctx->pm4_cdwords)
return;