r600g: fix eg OQ properly.
authorDave Airlie <airlied@redhat.com>
Mon, 31 Jan 2011 10:44:47 +0000 (20:44 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 31 Jan 2011 10:44:47 +0000 (20:44 +1000)
the context init is separate for these gpus.

src/gallium/winsys/r600/drm/evergreen_hw_context.c
src/gallium/winsys/r600/drm/r600_hw_context.c

index 3fdafc3..aa4035a 100644 (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 */
index f4e2aaa..a939ec6 100644 (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: