aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_screen.h
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-11-08 10:50:03 -0500
committerRob Clark <[email protected]>2016-11-30 12:35:49 -0500
commit946cf4eb6846767306a221eec7d0f82d20dfb6b5 (patch)
treebb35f2837a125ed66736c7ff96be954685891b09 /src/gallium/drivers/freedreno/freedreno_screen.h
parentfcba3046e1b90ecec6f5f4ad5397cd36e0c740ac (diff)
freedreno/a5xx: initial support
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_screen.h')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_screen.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_screen.h b/src/gallium/drivers/freedreno/freedreno_screen.h
index 3fc66fb9607..6a7b2a80f50 100644
--- a/src/gallium/drivers/freedreno/freedreno_screen.h
+++ b/src/gallium/drivers/freedreno/freedreno_screen.h
@@ -114,6 +114,12 @@ is_a4xx(struct fd_screen *screen)
return (screen->gpu_id >= 400) && (screen->gpu_id < 500);
}
+static inline boolean
+is_a5xx(struct fd_screen *screen)
+{
+ return (screen->gpu_id >= 500) && (screen->gpu_id < 600);
+}
+
/* is it using the ir3 compiler (shader isa introduced with a3xx)? */
static inline boolean
is_ir3(struct fd_screen *screen)