summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-09-18 20:10:15 +0200
committerMarek Olšák <[email protected]>2012-09-22 00:31:59 +0200
commit669bfaaa1e97d0f66a0e449a83ed6379e4503539 (patch)
treee1a3ec3d38f46edd666c67182f0ebfa384cddcde /src/gallium/drivers/r600
parentb71701d43e22078cff2316e9b23fe1654d8b278c (diff)
r600g: remove initialization of unused loop register tables
Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r--src/gallium/drivers/r600/evergreen_hw_context.c19
-rw-r--r--src/gallium/drivers/r600/r600_hw_context.c19
2 files changed, 0 insertions, 38 deletions
diff --git a/src/gallium/drivers/r600/evergreen_hw_context.c b/src/gallium/drivers/r600/evergreen_hw_context.c
index 836b182f546..61131e23c84 100644
--- a/src/gallium/drivers/r600/evergreen_hw_context.c
+++ b/src/gallium/drivers/r600/evergreen_hw_context.c
@@ -236,20 +236,6 @@ static const struct r600_reg cayman_context_reg_list[] = {
{CM_R_028BE4_PA_SU_VTX_CNTL, 0, 0},
};
-static int evergreen_loop_const_init(struct r600_context *ctx, uint32_t offset)
-{
- unsigned nreg = 32;
- struct r600_reg r600_loop_consts[32];
- int i;
-
- 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].reserved = 0;
- }
- return r600_context_add_block(ctx, r600_loop_consts, nreg, PKT3_SET_LOOP_CONST, EVERGREEN_LOOP_CONST_OFFSET);
-}
-
int evergreen_context_init(struct r600_context *ctx)
{
int r = 0;
@@ -269,11 +255,6 @@ int evergreen_context_init(struct r600_context *ctx)
if (r)
goto out_err;
- /* PS loop const */
- evergreen_loop_const_init(ctx, 0);
- /* VS loop const */
- evergreen_loop_const_init(ctx, 32);
-
r = r600_setup_block_table(ctx);
if (r)
goto out_err;
diff --git a/src/gallium/drivers/r600/r600_hw_context.c b/src/gallium/drivers/r600/r600_hw_context.c
index 3d7e9d75e76..a4c88504758 100644
--- a/src/gallium/drivers/r600/r600_hw_context.c
+++ b/src/gallium/drivers/r600/r600_hw_context.c
@@ -350,20 +350,6 @@ static const struct r600_reg r600_context_reg_list[] = {
{R_028854_SQ_PGM_EXPORTS_PS, 0, 0},
};
-static int r600_loop_const_init(struct r600_context *ctx, uint32_t offset)
-{
- unsigned nreg = 32;
- struct r600_reg r600_loop_consts[32];
- int i;
-
- 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].reserved = 0;
- }
- return r600_context_add_block(ctx, r600_loop_consts, nreg, PKT3_SET_LOOP_CONST, R600_LOOP_CONST_OFFSET);
-}
-
/* initialize */
void r600_context_fini(struct r600_context *ctx)
{
@@ -438,11 +424,6 @@ int r600_context_init(struct r600_context *ctx)
if (r)
goto out_err;
- /* PS loop const */
- r600_loop_const_init(ctx, 0);
- /* VS loop const */
- r600_loop_const_init(ctx, 32);
-
r = r600_setup_block_table(ctx);
if (r)
goto out_err;