etnaviv: Only use renderonly_get_handle for GEM handles.
authorEric Anholt <eric@anholt.net>
Wed, 10 May 2017 23:06:11 +0000 (16:06 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 15 Jun 2017 18:41:22 +0000 (11:41 -0700)
commit7a171913052bacfee4c68f6fbd2b5d67e001dbae
tree07276f5f6322b02a330c22fb65b13c27f528955f
parentd5a9608076504c1279506d014313cbc2cffa0415
etnaviv: Only use renderonly_get_handle for GEM handles.

Note that for requests for Prime FDs or flink names, we return handles to
the etanviv BO, not the scanout BO.  This is at least better than previous
behavior of returning GEM handles for a request for an FD or flink name.

And add an assert that renderonly_get_handle is only used for getting the
GEM handle.

Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/auxiliary/renderonly/renderonly.h
src/gallium/drivers/etnaviv/etnaviv_resource.c