diff options
author | Christopher James Halse Rogers <[email protected]> | 2013-11-21 15:11:40 +1100 |
---|---|---|
committer | Maarten Lankhorst <[email protected]> | 2013-12-10 09:46:09 +0100 |
commit | 6b5e15360a1cf56de7a223a89da0bf0d4693ec22 (patch) | |
tree | 0458bc2ce7021f53172c781819c75929c558000a /src/gallium/state_trackers/dri | |
parent | d5a3a2d2fbc42da04ff7ea09356ada134a42d6dd (diff) |
gallium/dri2: Set winsys_handle type to KMS for stride query.
Otherwise the default is TYPE_SHARED, which will flink the bo. This seems
rather unnecessary for a simple stride query.
Signed-off-by: Christopher James Halse Rogers <[email protected]>
Reviewed-by: Thomas Hellstrom <[email protected]>
Signed-off-by: Maarten Lankhorst <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/dri')
-rw-r--r-- | src/gallium/state_trackers/dri/drm/dri2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index 2a2f8ac7498..59c072235cb 100644 --- a/src/gallium/state_trackers/dri/drm/dri2.c +++ b/src/gallium/state_trackers/dri/drm/dri2.c @@ -691,6 +691,7 @@ dri2_query_image(__DRIimage *image, int attrib, int *value) switch (attrib) { case __DRI_IMAGE_ATTRIB_STRIDE: + whandle.type = DRM_API_HANDLE_TYPE_KMS; image->texture->screen->resource_get_handle(image->texture->screen, image->texture, &whandle); *value = whandle.stride; |