i965: Move intel_context::NewGLState to brw_context.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 4 Jul 2013 17:29:50 +0000 (10:29 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 9 Jul 2013 21:09:19 +0000 (14:09 -0700)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Chris Forbes <chrisf@ijw.co.nz>
Acked-by: Paul Berry <stereotype441@gmail.com>
Acked-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_state_upload.c
src/mesa/drivers/dri/i965/intel_context.c
src/mesa/drivers/dri/i965/intel_context.h

index 63775c738d49a613aec444b9a26d243849e4a923..27554cb8b668735925eedfdf4daaa289fe9e808d 100644 (file)
@@ -891,6 +891,7 @@ struct brw_context
     */
    bool needs_unlit_centroid_workaround;
 
+   GLuint NewGLState;
    struct {
       struct brw_state_flags dirty;
    } state;
index bdb2862f55fe10432ebfa16175320f47bf0a3b20..39fe6d265640db075c2ca2a28d0785cab6c5e619 100644 (file)
@@ -448,8 +448,8 @@ void brw_upload_state(struct brw_context *brw)
    int i;
    static int dirty_count = 0;
 
-   state->mesa |= brw->intel.NewGLState;
-   brw->intel.NewGLState = 0;
+   state->mesa |= brw->NewGLState;
+   brw->NewGLState = 0;
 
    state->brw |= ctx->NewDriverState;
    ctx->NewDriverState = 0;
index 1d6aac8d6cc459405b15db32a81229f754f5a4fe..10daa58db097927aa1dcab5b4d7a8386733980bf 100644 (file)
@@ -328,13 +328,13 @@ static const struct dri_debug_control debug_control[] = {
 static void
 intelInvalidateState(struct gl_context * ctx, GLuint new_state)
 {
-    struct intel_context *intel = intel_context(ctx);
+   struct brw_context *brw = brw_context(ctx);
 
     if (ctx->swrast_context)
        _swrast_InvalidateState(ctx, new_state);
    _vbo_InvalidateState(ctx, new_state);
 
-   intel->NewGLState |= new_state;
+   brw->NewGLState |= new_state;
 }
 
 void
index 0ec15a73952ee319275922f18792d17c2d01b41e..2894eea881d713c3f1074ee6454f46e41019d3eb 100644 (file)
@@ -113,8 +113,6 @@ struct intel_context
 {
    struct gl_context ctx;  /**< base class, must be first field */
 
-   GLuint NewGLState;
    /**
     * Generation number of the hardware: 2 is 8xx, 3 is 9xx pre-965, 4 is 965.
     */