Add state tracker create/destroy calls to i915 driver.
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 20 Jun 2007 22:04:56 +0000 (23:04 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 20 Jun 2007 22:17:12 +0000 (23:17 +0100)
src/mesa/drivers/dri/Makefile.template
src/mesa/drivers/dri/i915tex/intel_context.c

index 6f2314ee8cb7ee6ed10727bc2d505d5e3b25093a..43c0e912bf25540f98cf79f094b1c0e81ebe1de2 100644 (file)
@@ -85,7 +85,7 @@ $(TOP)/$(LIB_DIR)/$(LIBNAME): $(LIBNAME)
 depend: $(C_SOURCES) $(ASM_SOURCES) $(SYMLINKS)
        touch depend
        $(MKDEP) $(MKDEP_OPTIONS) $(DRIVER_DEFINES) $(INCLUDES) $(C_SOURCES) \
-               $(ASM_SOURCES) 2>&1 /dev/null
+               $(ASM_SOURCES) 2> /dev/null
 
 
 # Emacs tags
index 20b2b41ef24cc7118499a805a134c5aee0870932..c37092337c6520acb59b3ec765ffe00324827a0c 100644 (file)
 #include "intel_buffer_objects.h"
 #include "intel_fbo.h"
 
+#include "pipe/softpipe/sp_context.h"
+#include "state_tracker/st_public.h"
+
+
 #include "drirenderbuffer.h"
 #include "vblank.h"
 #include "utils.h"
@@ -244,6 +248,9 @@ intelInvalidateState(GLcontext * ctx, GLuint new_state)
    _vbo_InvalidateState(ctx, new_state);
    _tnl_InvalidateState(ctx, new_state);
    _tnl_invalidate_vertex_state(ctx, new_state);
+
+   st_invalidate_state( ctx, new_state );
+
    intel_context(ctx)->NewGLState |= new_state;
 }
 
@@ -493,6 +500,11 @@ intelInitContext(struct intel_context *intel,
       FALLBACK(intel, INTEL_FALLBACK_USER, 1);
    }
 
+
+   st_create_context( &intel->ctx,
+                     softpipe_create() );
+   
+
    return GL_TRUE;
 }