etnaviv: check for softpin availability on Halti5 devices
authorLucas Stach <l.stach@pengutronix.de>
Fri, 2 Aug 2019 12:53:08 +0000 (14:53 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 18 Oct 2019 17:05:25 +0000 (19:05 +0200)
commit5bc3fcf620d428f9413623eee4e14ae753e35b2c
tree9a9db1f9aece84582c8ab7c2f15f6d63e4bbbbae
parent0bdf5420f1ef7174fc81f57c307cd446bb673fc8
etnaviv: check for softpin availability on Halti5 devices

Halti5 uses texture descriptors to control the samplers, and thus needs to
know the GPU virtual address for the texture buffers to fill into the
descriptor buffer. Without softpin userspace has no control over the GPU
VM and also no way to fix up the texture descriptor buffer, so there is
no point in creating a screen on a Halti5 device without softpin being
available.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
src/gallium/drivers/etnaviv/etnaviv_screen.c