etnaviv: only try to construct scanout resource when on KMS winsys
authorLucas Stach <l.stach@pengutronix.de>
Wed, 27 Mar 2019 11:25:18 +0000 (12:25 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Wed, 3 Apr 2019 10:54:09 +0000 (12:54 +0200)
commit43db0632e7dea4339bbfc05caf9f5165ee8329a2
tree58a7e245bbb3a1a175c27b2fc91b4e32177fac43
parent3d8da347ac491f159ed0f5602301a841c103d7b0
etnaviv: only try to construct scanout resource when on KMS winsys

Trying to construct a scanout capable buffer will only ever work when
when we are on top of a KMS winsys, as the render node isn't capable
of allocating contiguous buffers.

Tested-by: Marius Vlad <marius.vlad@collabora.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_resource.c