r600g: remove unused definitions

This commit is contained in:
Marek Olšák 2012-03-05 15:14:40 +01:00
parent 0d91ddf1d4
commit 8a56ed8d6d
3 changed files with 0 additions and 12 deletions

View file

@ -88,8 +88,6 @@ struct r600_resource {
unsigned domains;
};
/* R600/R700 STATES */
#define R600_GROUP_MAX 16
#define R600_BLOCK_MAX_BO 32
#define R600_BLOCK_MAX_REG 128
@ -199,7 +197,6 @@ struct r600_so_target {
#define R600_CONTEXT_DRAW_PENDING (1 << 0)
#define R600_CONTEXT_DST_CACHES_DIRTY (1 << 1)
#define R600_CONTEXT_CHECK_EVENT_FLUSH (1 << 2)
struct r600_context;
struct r600_screen;

View file

@ -1094,8 +1094,6 @@ void r600_context_block_emit_dirty(struct r600_context *ctx, struct r600_block *
}
if (nbo) {
ctx->flags |= R600_CONTEXT_CHECK_EVENT_FLUSH;
for (int j = 0; j < block->nreg; j++) {
if (block->pm4_bo_index[j]) {
/* find relocation */
@ -1112,7 +1110,6 @@ void r600_context_block_emit_dirty(struct r600_context *ctx, struct r600_block *
}
}
ctx->flags &= ~R600_CONTEXT_CHECK_EVENT_FLUSH;
}
optional &= (block->nreg_dirty != block->nreg);
@ -1144,8 +1141,6 @@ void r600_context_block_resource_emit_dirty(struct r600_context *ctx, struct r60
int cp_dwords = block->pm4_ndwords;
int nbo = block->nbo;
ctx->flags |= R600_CONTEXT_CHECK_EVENT_FLUSH;
if (block->status & R600_BLOCK_STATUS_RESOURCE_VERTEX) {
nbo = 1;
cp_dwords -= 2; /* don't copy the second NOP */
@ -1159,7 +1154,6 @@ void r600_context_block_resource_emit_dirty(struct r600_context *ctx, struct r60
r600_context_bo_reloc(ctx, reloc->bo, reloc->bo_usage);
}
}
ctx->flags &= ~R600_CONTEXT_CHECK_EVENT_FLUSH;
memcpy(&cs->buf[cs->cdw], block->pm4, cp_dwords * 4);
cs->cdw += cp_dwords;

View file

@ -32,9 +32,6 @@
#define R600_MAX_DRAW_CS_DWORDS 11
#define PKT_COUNT_C 0xC000FFFF
#define PKT_COUNT_S(x) (((x) & 0x3FFF) << 16)
/* these flags are used in register flags and added into block flags */
#define REG_FLAG_NEED_BO 1
#define REG_FLAG_DIRTY_ALWAYS 2