diff options
author | Jakob Bornecrantz <[email protected]> | 2010-04-22 18:20:31 +0100 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2010-04-23 21:57:49 +0100 |
commit | 1820d240cd0b517ca1d73f1e8e0a528ca8d5b092 (patch) | |
tree | 99e08d32b9d6ef583920a4d47145e42857f635ed /src/gallium/winsys/sw/xlib | |
parent | 89aaaab79f407dd691e0a98167f48a0860ec791a (diff) |
gallium: Convert some uses of get option to static
Diffstat (limited to 'src/gallium/winsys/sw/xlib')
-rw-r--r-- | src/gallium/winsys/sw/xlib/xlib_sw_winsys.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c b/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c index 278a191a0e5..679af611bfc 100644 --- a/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c +++ b/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c @@ -48,6 +48,8 @@ #include <sys/shm.h> #include <X11/extensions/XShm.h> +DEBUG_GET_ONCE_BOOL_OPTION(xlib_no_shm, "XLIB_NO_SHM", FALSE); + /** * Display target for Xlib winsys. * Low-level OS/window system memory buffer @@ -383,7 +385,7 @@ xm_displaytarget_create(struct sw_winsys *winsys, xm_dt->stride = align(util_format_get_stride(format, width), alignment); size = xm_dt->stride * nblocksy; - if (!debug_get_bool_option("XLIB_NO_SHM", FALSE)) + if (!debug_get_option_xlib_no_shm()) { xm_dt->data = alloc_shm(xm_dt, size); if(!xm_dt->data) { |