aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/sw/xlib
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2019-07-04 14:41:00 -0400
committerIlia Mirkin <[email protected]>2019-07-22 22:13:51 -0400
commitaffb2da0f862e0a604a9a075f2b45d57038797d5 (patch)
treec4c731eefe87d800f79ab05e3907daa90aab1fd6 /src/gallium/winsys/sw/xlib
parent0e30c6b8a7e84211bb417362ec73f24ef134ae34 (diff)
gallium: remove boolean from state tracker APIs
Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/gallium/winsys/sw/xlib')
-rw-r--r--src/gallium/winsys/sw/xlib/xlib_sw_winsys.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c b/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c
index a4c1d50453b..c14c9de4350 100644
--- a/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c
+++ b/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c
@@ -49,7 +49,7 @@
#include <sys/shm.h>
#include <X11/extensions/XShm.h>
-DEBUG_GET_ONCE_BOOL_OPTION(xlib_no_shm, "XLIB_NO_SHM", FALSE)
+DEBUG_GET_ONCE_BOOL_OPTION(xlib_no_shm, "XLIB_NO_SHM", false)
/**
* Display target for Xlib winsys.
@@ -219,13 +219,13 @@ alloc_ximage(struct xlib_displaytarget *xlib_dt,
8, 0);
}
-static boolean
+static bool
xlib_is_displaytarget_format_supported(struct sw_winsys *ws,
unsigned tex_usage,
enum pipe_format format)
{
/* TODO: check visuals or other sensible thing here */
- return TRUE;
+ return true;
}
@@ -296,8 +296,8 @@ static void
xlib_sw_display(struct xlib_drawable *xlib_drawable,
struct sw_displaytarget *dt)
{
- static boolean no_swap = 0;
- static boolean firsttime = 1;
+ static bool no_swap = false;
+ static bool firsttime = true;
struct xlib_displaytarget *xlib_dt = xlib_displaytarget(dt);
Display *display = xlib_dt->display;
XImage *ximage;
@@ -446,13 +446,13 @@ xlib_displaytarget_from_handle(struct sw_winsys *winsys,
}
-static boolean
+static bool
xlib_displaytarget_get_handle(struct sw_winsys *winsys,
struct sw_displaytarget *dt,
struct winsys_handle *whandle)
{
assert(0);
- return FALSE;
+ return false;
}