vc4: Make sure we make ro scanout resources for create_with_modifiers.
authorEric Anholt <eric@anholt.net>
Thu, 25 Oct 2018 16:12:50 +0000 (09:12 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 16 Nov 2018 05:11:44 +0000 (21:11 -0800)
commitcc0bc76a382f908b4412ee8ab7a8409766ecf16a
tree492cd8dcd93f5d04036885bcbed558877bd2cc53
parentf9fd0cf4790cb2a530e75d1a2206dbb9d8af7cb2
vc4: Make sure we make ro scanout resources for create_with_modifiers.

The DRI3 create_with_modifiers paths don't set tmpl.bind to SCANOUT or
SHARED, with the theory that given that you've got modifiers, that's all
you need.  However, we were looking at the tmpl.bind for setting up the
KMS handle in the renderonly case, so we'd end up trying to use vc4's
handle on the hx8357d fd.

Fixes: 84ed8b67c56b ("vc4: Set shareable BOs as T tiled if possible")
src/gallium/drivers/vc4/vc4_resource.c