diff options
author | Rob Clark <[email protected]> | 2014-02-10 10:44:02 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2014-02-16 08:36:23 -0500 |
commit | 24fa96163afccb7ffaff56599e9e91c23c407922 (patch) | |
tree | 36da26794f541e73d4464ed05fd5b31d2827268e /src | |
parent | 42158926c6d7d3ddbe61b9a04d60544ff1b50a96 (diff) |
st/xa: missing handle type
DRM_API_HANDLE_TYPE_SHARED is zero, so doesn't actually fix anything.
But we shouldn't rely on SHARED handle type being zero.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/xa/xa_tracker.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/xa/xa_tracker.c b/src/gallium/state_trackers/xa/xa_tracker.c index d3601c6bfd3..9add5843c73 100644 --- a/src/gallium/state_trackers/xa/xa_tracker.c +++ b/src/gallium/state_trackers/xa/xa_tracker.c @@ -368,6 +368,7 @@ xa_surface_from_handle(struct xa_tracker *xa, { struct winsys_handle whandle; memset(&whandle, 0, sizeof(whandle)); + whandle.type = DRM_API_HANDLE_TYPE_SHARED; whandle.handle = handle; whandle.stride = stride; return surface_create(xa, width, height, depth, stype, xa_format, flags, &whandle); |