mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-14 02:30:29 +01:00
xlib: more SP_NO_RAST support
For some resaon normal (non-display-buffer) buffers are being allocated through Xshm... Bypass at least for SP_NO_RAST
This commit is contained in:
parent
9002cdb48e
commit
fec1d215f6
2 changed files with 12 additions and 0 deletions
|
|
@ -1689,6 +1689,15 @@ static void
|
|||
Fake_glXSwapBuffers( Display *dpy, GLXDrawable drawable )
|
||||
{
|
||||
XMesaBuffer buffer = XMesaFindBuffer( dpy, drawable );
|
||||
static boolean firsttime = 1, no_rast = 0;
|
||||
|
||||
if (firsttime) {
|
||||
no_rast = getenv("SP_NO_RAST") != NULL;
|
||||
firsttime = 0;
|
||||
}
|
||||
|
||||
if (no_rast)
|
||||
return;
|
||||
|
||||
if (buffer) {
|
||||
XMesaSwapBuffers(buffer);
|
||||
|
|
|
|||
|
|
@ -110,6 +110,9 @@ int xmesa_check_for_xshm( XMesaDisplay *display )
|
|||
int major, minor, ignore;
|
||||
Bool pixmaps;
|
||||
|
||||
if (getenv("SP_NO_RAST"))
|
||||
return 0;
|
||||
|
||||
if (getenv("MESA_NOSHM")) {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue