panfrost: Check GPU version before loading
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 8 Jul 2019 16:14:59 +0000 (09:14 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 10 Jul 2019 13:47:11 +0000 (06:47 -0700)
commit2f7145a6dee82779f5cd2183ed42f086c25aaf18
tree092db7e6f2db698a2bccbee2c7a219810f3b4567
parentb5de423ac1c653741c78030598ae9561e4966c30
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 <alyssa.rosenzweig@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_screen.c
src/gallium/drivers/panfrost/pan_screen.h