freedreno/a3xx: add adreno 330 support
authorRob Clark <robclark@freedesktop.org>
Sat, 7 Dec 2013 13:47:10 +0000 (08:47 -0500)
committerRob Clark <robclark@freedesktop.org>
Sat, 7 Dec 2013 14:37:24 +0000 (09:37 -0500)
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a3xx/fd3_emit.c
src/gallium/drivers/freedreno/freedreno_screen.c

index b1c0e74a2ee20abeff4cd2339dde0f1c1b9054d6..a8b2df758e3a00d6b9b2a7cee0feabbf3687b4db 100644 (file)
@@ -491,10 +491,12 @@ fd3_emit_restore(struct fd_context *ctx)
        struct fd_ringbuffer *ring = ctx->ring;
        int i;
 
-       OUT_PKT3(ring, CP_REG_RMW, 3);
-       OUT_RING(ring, REG_A3XX_RBBM_CLOCK_CTL);
-       OUT_RING(ring, 0xfffcffff);
-       OUT_RING(ring, 0x00000000);
+       if (ctx->screen->gpu_id == 320) {
+               OUT_PKT3(ring, CP_REG_RMW, 3);
+               OUT_RING(ring, REG_A3XX_RBBM_CLOCK_CTL);
+               OUT_RING(ring, 0xfffcffff);
+               OUT_RING(ring, 0x00000000);
+       }
 
        OUT_PKT3(ring, CP_INVALIDATE_STATE, 1);
        OUT_RING(ring, 0x00007fff);
index 4031f556a32dfbf3e033af1ecaa9f724f46d8b95..d07cc0b323e09f92c9bc5b4c9103de9f00337e5a 100644 (file)
@@ -429,6 +429,7 @@ fd_screen_create(struct fd_device *dev)
                fd2_screen_init(pscreen);
                break;
        case 320:
+       case 330:
                fd3_screen_init(pscreen);
                break;
        default: