From: Rob Clark Date: Sat, 7 Dec 2013 13:47:10 +0000 (-0500) Subject: freedreno/a3xx: add adreno 330 support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a1d808638de026d07d16161b432df25afefdd959;p=mesa.git freedreno/a3xx: add adreno 330 support Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_emit.c b/src/gallium/drivers/freedreno/a3xx/fd3_emit.c index b1c0e74a2ee..a8b2df758e3 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_emit.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_emit.c @@ -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); diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c index 4031f556a32..d07cc0b323e 100644 --- a/src/gallium/drivers/freedreno/freedreno_screen.c +++ b/src/gallium/drivers/freedreno/freedreno_screen.c @@ -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: