vc4: Don't return a vc4 BO handle on a renderonly screen.
authorEric Anholt <eric@anholt.net>
Thu, 25 Oct 2018 16:17:17 +0000 (09:17 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 16 Nov 2018 05:11:44 +0000 (21:11 -0800)
commitcc71bf529c7184c59fbc66a978188473d925b7ea
treed6e099c0b27d6640c2c9660fba9ef9ca169b2bfd
parentcc0bc76a382f908b4412ee8ab7a8409766ecf16a
vc4: Don't return a vc4 BO handle on a renderonly screen.

The handles exported need to be on the KMS device's fd, anything else is
failure.  Also, this code is assuming that the scanout resource has been
created already, so assert it.
src/gallium/drivers/vc4/vc4_resource.c