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")
cc0bc76a38 vc4: Make sure we make ro scanout resources for create_with_modifiers.
src/gallium/drivers/vc4/vc4_resource.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)