From b7ac0779e0228969536a6738926b8b7a0d565cd4 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 29 May 2018 11:21:38 +1000 Subject: gallium/winsys: rename DRM_API_HANDLE_* to WINSYS_HANDLE_* MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This just renames this as we want to add an shm handle which isn't really drm related. Originally by: Marc-André Lureau (airlied: I used this sed script instead) This was generated with: git grep -l 'DRM_API_' | xargs sed -i 's/DRM_API_/WINSYS_/g' Reviewed-by: Marek Olšák --- src/mesa/state_tracker/st_cb_memoryobjects.c | 2 +- src/mesa/state_tracker/st_vdpau.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/state_tracker') diff --git a/src/mesa/state_tracker/st_cb_memoryobjects.c b/src/mesa/state_tracker/st_cb_memoryobjects.c index 63a8c2a0e00..39174bc9f75 100644 --- a/src/mesa/state_tracker/st_cb_memoryobjects.c +++ b/src/mesa/state_tracker/st_cb_memoryobjects.c @@ -65,7 +65,7 @@ st_import_memoryobj_fd(struct gl_context *ctx, struct pipe_screen *screen = pipe->screen; struct winsys_handle whandle; - whandle.type = DRM_API_HANDLE_TYPE_FD; + whandle.type = WINSYS_HANDLE_TYPE_FD; whandle.handle = fd; whandle.offset = 0; whandle.layer = 0; diff --git a/src/mesa/state_tracker/st_vdpau.c b/src/mesa/state_tracker/st_vdpau.c index eb61aef1116..d0b9cfbf4f8 100644 --- a/src/mesa/state_tracker/st_vdpau.c +++ b/src/mesa/state_tracker/st_vdpau.c @@ -127,7 +127,7 @@ st_vdpau_resource_from_description(struct gl_context *ctx, templ.usage = PIPE_USAGE_DEFAULT; memset(&whandle, 0, sizeof(whandle)); - whandle.type = DRM_API_HANDLE_TYPE_FD; + whandle.type = WINSYS_HANDLE_TYPE_FD; whandle.handle = desc->handle; whandle.offset = desc->offset; whandle.stride = desc->stride; -- cgit v1.2.3