r600g: fix eg OQ properly.

the context init is separate for these gpus.
This commit is contained in:
Dave Airlie 2011-01-31 20:44:47 +10:00
parent 26a4c1cb65
commit ea5ede2178
2 changed files with 3 additions and 5 deletions

View file

@ -621,6 +621,8 @@ int evergreen_context_init(struct r600_context *ctx, struct radeon *radeon)
/* save 16dwords space for fence mecanism */
ctx->pm4_ndwords -= 16;
ctx->max_db = 8;
LIST_INITHEAD(&ctx->fenced_bo);
/* init dirty list */

View file

@ -752,11 +752,7 @@ int r600_context_init(struct r600_context *ctx, struct radeon *radeon)
/* init dirty list */
LIST_INITHEAD(&ctx->dirty);
/* TODO update this value correctly */
if (radeon->family >= CHIP_CEDAR)
ctx->max_db = 8;
else
ctx->max_db = 4;
ctx->max_db = 4;
return 0;
out_err: