Add state tracker create/destroy calls to i915 driver.

This commit is contained in:
Keith Whitwell 2007-06-20 23:04:56 +01:00
parent 78cc48f70a
commit 24a989c5d1
2 changed files with 13 additions and 1 deletions

View 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

View File

@ -60,6 +60,10 @@
#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;
}