i965: Don't bother telling swrast_setup about state updates until fallback.
authorEric Anholt <eric@anholt.net>
Wed, 22 Jun 2011 00:02:14 +0000 (17:02 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 24 Jun 2011 17:37:18 +0000 (10:37 -0700)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i915/i830_vtbl.c
src/mesa/drivers/dri/i915/i915_vtbl.c
src/mesa/drivers/dri/intel/intel_context.c

index 16c7acab3e788566a32f02addcac8c0b7d0e96cc..584df82b50c8c8c01335c2b4a7f7371a6e5becf2 100644 (file)
@@ -34,6 +34,7 @@
 #include "tnl/tnl.h"
 #include "tnl/t_context.h"
 #include "tnl/t_vertex.h"
+#include "swrast_setup/swrast_setup.h"
 
 #define FILE_DEBUG_FLAG DEBUG_STATE
 
@@ -718,6 +719,7 @@ i830_invalidate_state(struct intel_context *intel, GLuint new_state)
 {
    struct gl_context *ctx = &intel->ctx;
 
+   _swsetup_InvalidateState(ctx, new_state);
    _tnl_InvalidateState(ctx, new_state);
    _tnl_invalidate_vertex_state(ctx, new_state);
 
index 6383cda606983a9a5d23f0cb8e99fdac913b8b16..9721a1c0e4d2b6dc49f1e63af98434c1599b6ae4 100644 (file)
@@ -36,6 +36,7 @@
 #include "tnl/tnl.h"
 #include "tnl/t_context.h"
 #include "tnl/t_vertex.h"
+#include "swrast_setup/swrast_setup.h"
 
 #include "intel_batchbuffer.h"
 #include "intel_regions.h"
@@ -709,6 +710,7 @@ i915_invalidate_state(struct intel_context *intel, GLuint new_state)
 {
    struct gl_context *ctx = &intel->ctx;
 
+   _swsetup_InvalidateState(ctx, new_state);
    _tnl_InvalidateState(ctx, new_state);
    _tnl_invalidate_vertex_state(ctx, new_state);
 }
index 8b954446649172ba0b335b81a26936c188e62147..70aee52bd14db78dfb7b6b1857a4c0432592e51a 100644 (file)
@@ -504,7 +504,6 @@ intelInvalidateState(struct gl_context * ctx, GLuint new_state)
     struct intel_context *intel = intel_context(ctx);
 
    _swrast_InvalidateState(ctx, new_state);
-   _swsetup_InvalidateState(ctx, new_state);
    _vbo_InvalidateState(ctx, new_state);
 
    intel->NewGLState |= new_state;