diff options
author | Jonathan Marek <[email protected]> | 2018-06-21 17:06:27 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-06-22 08:23:10 -0400 |
commit | 17e16ba9db2aef353babd84bfe9d874bbbc59c6a (patch) | |
tree | cac4dcbe219ad59175e6fa1cb11ffb7cf74aa144 /src/gallium/drivers/freedreno/freedreno_screen.h | |
parent | d5ff36b97b1686504e666747e8a9bd9b318ba25b (diff) |
freedreno: add a20x
this patch adds support for a20x, which has some differences with a220:
-no VGT_MAX_VTX_INDX register
-no CLEAR_COLOR register
-set RB_BC_CONTROL in restore (hangs without)
-different CP_DRAW_INDX format
tested with kmscube and glmark2 scenes, on par with a220
Signed-off-by: Jonathan Marek <[email protected]>
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.h | 6 |
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 6be739ae287..013dba1a6d3 100644 --- a/src/gallium/drivers/freedreno/freedreno_screen.h +++ b/src/gallium/drivers/freedreno/freedreno_screen.h @@ -106,6 +106,12 @@ struct fd_bo * fd_screen_bo_from_handle(struct pipe_screen *pscreen, struct pipe_screen * fd_screen_create(struct fd_device *dev); +static inline boolean +is_a20x(struct fd_screen *screen) +{ + return (screen->gpu_id >= 200) && (screen->gpu_id < 210); +} + /* is a3xx patch revision 0? */ /* TODO a306.0 probably doesn't need this.. be more clever?? */ static inline boolean |