mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
r600g: remove now-unused SURFACE_BASE_UPDATE logic
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
e3ecfecada
commit
b71701d43e
3 changed files with 3 additions and 9 deletions
|
|
@ -245,7 +245,7 @@ static int evergreen_loop_const_init(struct r600_context *ctx, uint32_t offset)
|
|||
for (i = 0; i < nreg; i++) {
|
||||
r600_loop_consts[i].offset = EVERGREEN_LOOP_CONST_OFFSET + ((offset + i) * 4);
|
||||
r600_loop_consts[i].flags = REG_FLAG_DIRTY_ALWAYS;
|
||||
r600_loop_consts[i].sbu_flags = 0;
|
||||
r600_loop_consts[i].reserved = 0;
|
||||
}
|
||||
return r600_context_add_block(ctx, r600_loop_consts, nreg, PKT3_SET_LOOP_CONST, EVERGREEN_LOOP_CONST_OFFSET);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -158,11 +158,6 @@ static void r600_init_block(struct r600_context *ctx,
|
|||
block->pm4[block->pm4_ndwords++] = 0x00000000;
|
||||
block->reloc[block->nbo].bo_pm4_index = block->pm4_ndwords - 1;
|
||||
}
|
||||
if ((ctx->family > CHIP_R600) &&
|
||||
(ctx->family < CHIP_RV770) && reg[i+j].flags & REG_FLAG_RV6XX_SBU) {
|
||||
block->pm4[block->pm4_ndwords++] = PKT3(PKT3_SURFACE_BASE_UPDATE, 0, 0);
|
||||
block->pm4[block->pm4_ndwords++] = reg[i+j].sbu_flags;
|
||||
}
|
||||
}
|
||||
/* check that we stay in limit */
|
||||
assert(block->pm4_ndwords < R600_BLOCK_MAX_REG);
|
||||
|
|
@ -364,7 +359,7 @@ static int r600_loop_const_init(struct r600_context *ctx, uint32_t offset)
|
|||
for (i = 0; i < nreg; i++) {
|
||||
r600_loop_consts[i].offset = R600_LOOP_CONST_OFFSET + ((offset + i) * 4);
|
||||
r600_loop_consts[i].flags = REG_FLAG_DIRTY_ALWAYS;
|
||||
r600_loop_consts[i].sbu_flags = 0;
|
||||
r600_loop_consts[i].reserved = 0;
|
||||
}
|
||||
return r600_context_add_block(ctx, r600_loop_consts, nreg, PKT3_SET_LOOP_CONST, R600_LOOP_CONST_OFFSET);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@
|
|||
/* these flags are used in register flags and added into block flags */
|
||||
#define REG_FLAG_NEED_BO 1
|
||||
#define REG_FLAG_DIRTY_ALWAYS 2
|
||||
#define REG_FLAG_RV6XX_SBU 4
|
||||
#define REG_FLAG_NOT_R600 8
|
||||
#define REG_FLAG_ENABLE_ALWAYS 16
|
||||
#define REG_FLAG_FLUSH_CHANGE 64
|
||||
|
|
@ -45,7 +44,7 @@
|
|||
struct r600_reg {
|
||||
unsigned offset;
|
||||
unsigned flags;
|
||||
unsigned sbu_flags;
|
||||
unsigned reserved;
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue