diff options
author | Emil Velikov <[email protected]> | 2013-08-29 05:25:00 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-10-03 14:05:29 -0600 |
commit | 13895abd86fcf2f5c059873c48a3d304f7f5b0d5 (patch) | |
tree | 2ca3aec312e42d3e88a84390cca912a8a602d8e5 /src/gallium | |
parent | 379deaf5c65c03b78714f225954bce5a16c22905 (diff) |
gallium-egl: use standard variable types over EGLBoolean/EGLint
The inferface/prototype in native_wayland_bufmgr.h uses boolean/int, as
well as the rest of the file. Convert to improve consistency and to
prevent gcc compiler warnings due to type miss-match.
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/egl/common/native_wayland_drm_bufmgr.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gallium/state_trackers/egl/common/native_wayland_drm_bufmgr.c b/src/gallium/state_trackers/egl/common/native_wayland_drm_bufmgr.c index 9b69cb9b9d2..3fd5fa2dbda 100644 --- a/src/gallium/state_trackers/egl/common/native_wayland_drm_bufmgr.c +++ b/src/gallium/state_trackers/egl/common/native_wayland_drm_bufmgr.c @@ -147,16 +147,16 @@ wayland_drm_bufmgr_wl_buffer_get_resource(struct native_display *ndpy, return wayland_drm_buffer_get_buffer(buffer); } -static EGLBoolean +static boolean wayland_drm_bufmgr_query_buffer(struct native_display *ndpy, struct wl_resource *buffer_resource, - EGLint attribute, EGLint *value) + int attribute, int *value) { struct wl_drm_buffer *buffer = wayland_drm_buffer_get(buffer_resource); struct pipe_resource *resource; if (!buffer) - return EGL_FALSE; + return FALSE; resource = buffer->driver_buffer; @@ -165,21 +165,21 @@ wayland_drm_bufmgr_query_buffer(struct native_display *ndpy, switch (resource->format) { case PIPE_FORMAT_B8G8R8A8_UNORM: *value = EGL_TEXTURE_RGBA; - return EGL_TRUE; + return TRUE; case PIPE_FORMAT_B8G8R8X8_UNORM: *value = EGL_TEXTURE_RGB; - return EGL_TRUE; + return TRUE; default: - return EGL_FALSE; + return FALSE; } case EGL_WIDTH: *value = buffer->width; - return EGL_TRUE; + return TRUE; case EGL_HEIGHT: *value = buffer->height; - return EGL_TRUE; + return TRUE; default: - return EGL_FALSE; + return FALSE; } } |