Add state tracker create/destroy calls to i915 driver.
This commit is contained in:
parent
78cc48f70a
commit
24a989c5d1
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue