diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-07-08 09:14:59 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-07-10 06:47:11 -0700 |
commit | 2f7145a6dee82779f5cd2183ed42f086c25aaf18 (patch) | |
tree | 092db7e6f2db698a2bccbee2c7a219810f3b4567 /src/gallium/drivers/panfrost/pan_screen.h | |
parent | b5de423ac1c653741c78030598ae9561e4966c30 (diff) |
panfrost: Check GPU version before loading
Panfrost is known to only work on a select few CPU/GPU combinations at
the moment (tested system-on-chips: RK3288, RK3399, and S912). Whitelist
the combinations known to work and refuse to load on others where
nothing works yet to avoid user confusion.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Tomeu Vizoso <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_screen.h')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_screen.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_screen.h b/src/gallium/drivers/panfrost/pan_screen.h index 9bcea611428..ddb89efe396 100644 --- a/src/gallium/drivers/panfrost/pan_screen.h +++ b/src/gallium/drivers/panfrost/pan_screen.h @@ -49,6 +49,7 @@ struct panfrost_screen; struct panfrost_screen { struct pipe_screen base; int fd; + unsigned gpu_id; struct renderonly *ro; |