diff options
author | Eric Anholt <eric@anholt.net> | 2017-05-10 16:06:11 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2017-06-15 11:41:22 -0700 |
commit | 7a171913052bacfee4c68f6fbd2b5d67e001dbae (patch) | |
tree | 07276f5f6322b02a330c22fb65b13c27f528955f /src/gallium/auxiliary/renderonly | |
parent | d5a9608076504c1279506d014313cbc2cffa0415 (diff) |
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>
Diffstat (limited to 'src/gallium/auxiliary/renderonly')
-rw-r--r-- | src/gallium/auxiliary/renderonly/renderonly.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/renderonly/renderonly.h b/src/gallium/auxiliary/renderonly/renderonly.h index d5430732982..70641c45878 100644 --- a/src/gallium/auxiliary/renderonly/renderonly.h +++ b/src/gallium/auxiliary/renderonly/renderonly.h @@ -87,6 +87,7 @@ renderonly_get_handle(struct renderonly_scanout *scanout, if (!scanout) return FALSE; + assert(handle->type == DRM_API_HANDLE_TYPE_KMS); handle->handle = scanout->handle; handle->stride = scanout->stride; |