summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/r600
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2011-01-31 20:44:47 +1000
committerDave Airlie <airlied@redhat.com>2011-01-31 20:44:47 +1000
commitea5ede2178b75cc52df73d873946657fce9d4705 (patch)
tree7dbbcd27cbfe7c01b0560027f8c4eb561abbb141 /src/gallium/winsys/r600
parent26a4c1cb650eee1380f87f3d7e8cff43c3d6a3e6 (diff)
r600g: fix eg OQ properly.
the context init is separate for these gpus.
Diffstat (limited to 'src/gallium/winsys/r600')
-rw-r--r--src/gallium/winsys/r600/drm/evergreen_hw_context.c2
-rw-r--r--src/gallium/winsys/r600/drm/r600_hw_context.c6
2 files changed, 3 insertions, 5 deletions
diff --git a/src/gallium/winsys/r600/drm/evergreen_hw_context.c b/src/gallium/winsys/r600/drm/evergreen_hw_context.c
index 3fdafc3928..aa4035a302 100644
--- a/src/gallium/winsys/r600/drm/evergreen_hw_context.c
+++ b/src/gallium/winsys/r600/drm/evergreen_hw_context.c
@@ -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 */
diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c
index f4e2aaa772..a939ec61c1 100644
--- a/src/gallium/winsys/r600/drm/r600_hw_context.c
+++ b/src/gallium/winsys/r600/drm/r600_hw_context.c
@@ -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: