summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_screen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_screen.h')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_screen.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_screen.h b/src/gallium/drivers/freedreno/freedreno_screen.h
index 4bfa74466c9..e1c554c0538 100644
--- a/src/gallium/drivers/freedreno/freedreno_screen.h
+++ b/src/gallium/drivers/freedreno/freedreno_screen.h
@@ -76,4 +76,16 @@ is_a3xx_p0(struct fd_screen *screen)
return (screen->chip_id & 0xff0000ff) == 0x03000000;
}
+static inline boolean
+is_a3xx(struct fd_screen *screen)
+{
+ return (screen->gpu_id >= 300) && (screen->gpu_id < 400);
+}
+
+static inline boolean
+is_a4xx(struct fd_screen *screen)
+{
+ return (screen->gpu_id >= 400) && (screen->gpu_id < 500);
+}
+
#endif /* FREEDRENO_SCREEN_H_ */