broadcom/vc4: Don't advertise tiled dmabuf modifiers if we can't use them
authorDerek Foreman <derekf@osg.samsung.com>
Thu, 5 Oct 2017 17:41:08 +0000 (12:41 -0500)
committerEric Anholt <eric@anholt.net>
Thu, 5 Oct 2017 18:26:14 +0000 (11:26 -0700)
commit17d78ece36a08d79b95182e36ed99cb65de905ce
tree59e299095ec891cd3c5c59b113d869a3f4df391f
parentb174a1ae720cb404738cd57c431f5769d677957d
broadcom/vc4: Don't advertise tiled dmabuf modifiers if we can't use them

If the DRM_VC4_GET_TILING ioctl isn't present then we can't tell
if a dmabuf bo is tiled or linear, so will always assume it's
linear.

By not advertising tiled formats in this situation we ensure the
assumption is correct.

This fixes a bug where most attempts to render a gl wayland client
under weston will result in a client side abort.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Acked-by: Daniel Stone <daniels@collabora.com> (on irc)
src/gallium/drivers/vc4/vc4_screen.c