summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2023-11-02 04:53:47 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2023-11-02 04:53:47 +0000
commitb44518130b33cadb5c1d619e9e936ae0e0dbf7cb (patch)
tree6069eb03c39fbc79808a7d94f857118cce75cbe3 /lib/mesa/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c
parent32aeb3c41fedbbd7b11aacfec48e8f699d16bff0 (diff)
Merge Mesa 23.1.9
Diffstat (limited to 'lib/mesa/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c')
-rw-r--r--lib/mesa/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mesa/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c b/lib/mesa/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c
index 57e130840..4777ce8d9 100644
--- a/lib/mesa/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c
+++ b/lib/mesa/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c
@@ -32,7 +32,7 @@
* Brian Paul
*/
-#include "pipe/p_format.h"
+#include "util/format/u_formats.h"
#include "pipe/p_context.h"
#include "util/u_inlines.h"
#include "util/format/u_format.h"
@@ -138,6 +138,7 @@ alloc_shm(struct xlib_displaytarget *buf, unsigned size)
return NULL;
}
+ shmctl(shminfo->shmid, IPC_RMID, 0);
shminfo->readOnly = False;
return shminfo->shmaddr;
}