panfrost: Be more honest about PIPE_CAPs
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 8 Jul 2019 15:44:49 +0000 (08:44 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 10 Jul 2019 13:47:01 +0000 (06:47 -0700)
commitb5de423ac1c653741c78030598ae9561e4966c30
tree6976da4b227b2b23d2c548f59c948f60b2967760
parentb69d5d6e19568c2098638af014abb8c541402822
panfrost: Be more honest about PIPE_CAPs

A lot of the pan_screen.c code was cargoculted from other drivers. The
upshot is that we return true for a lot of PIPE_CAPs that we don't
actually support, resulting in us exposing way too many extensions that
we don't actually support. Be more careful.

Some CAPs we do need to fake to access higher dEQP versions (i.e. in
order to debug the features we're hiding behind the CAP). For these, we
hide the CAP behind a special PAN_MESA_DEBUG=deqp option to avoid
apps randomly using these in-development features.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
src/gallium/drivers/panfrost/pan_screen.c
src/gallium/drivers/panfrost/pan_util.h