summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/x11/xm_dd.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2007-05-24 10:44:53 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2007-05-24 10:44:53 +0100
commitb939adfa155f2b3ca5c5226e86da85629654d79b (patch)
tree43c11a5302d4981bb82d68b503af9ea40fc2b837 /src/mesa/drivers/x11/xm_dd.c
parent8e4a95a93d15a6707a29454cd47e10b08314cda2 (diff)
downloadexternal_mesa3d-b939adfa155f2b3ca5c5226e86da85629654d79b.zip
external_mesa3d-b939adfa155f2b3ca5c5226e86da85629654d79b.tar.gz
external_mesa3d-b939adfa155f2b3ca5c5226e86da85629654d79b.tar.bz2
Use the x11 driver as a test harness for the softpipe/state_tracker code.
This has some limitations as we currently require a mapped framebuffer, so it only really works with double-buffered ximage rgba8888 windows.
Diffstat (limited to 'src/mesa/drivers/x11/xm_dd.c')
-rw-r--r--src/mesa/drivers/x11/xm_dd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/x11/xm_dd.c b/src/mesa/drivers/x11/xm_dd.c
index c854623..63e7115 100644
--- a/src/mesa/drivers/x11/xm_dd.c
+++ b/src/mesa/drivers/x11/xm_dd.c
@@ -53,6 +53,8 @@
#include "tnl/tnl.h"
#include "tnl/t_context.h"
+#include "softpipe/generic/g_context.h"
+#include "softpipe/state_tracker/st_public.h"
/*
@@ -828,6 +830,9 @@ xmesa_update_state( GLcontext *ctx, GLbitfield new_state )
_vbo_InvalidateState( ctx, new_state );
_swsetup_InvalidateState( ctx, new_state );
+ st_invalidate_state( ctx, new_state );
+
+
if (ctx->DrawBuffer->Name != 0)
return;