Mesa (intel-2008-q4): i965: Remove worrisome comment about _NEW_PROGRAM signaling fp change.

Haihao Xiang haihao at kemper.freedesktop.org
Thu Jan 8 00:52:18 PST 2009


Module: Mesa
Branch: intel-2008-q4
Commit: 5b3bb7aaf7646ab5fb1ab632529ea0ae4511079d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5b3bb7aaf7646ab5fb1ab632529ea0ae4511079d

Author: Eric Anholt <eric at anholt.net>
Date:   Wed Jan  7 14:26:11 2009 -0800

i965: Remove worrisome comment about _NEW_PROGRAM signaling fp change.

Everything now depends on either BRW_NEW_FRAGMENT_PROGRAM or
BRW_NEW_VERTEX_PROGRAM.
(cherry picked from commit 6d2cf395f401b53da1c2fc4485a297fd975637c6)

---

 src/mesa/drivers/dri/i965/brw_state_upload.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_state_upload.c b/src/mesa/drivers/dri/i965/brw_state_upload.c
index 5124535..4845859 100644
--- a/src/mesa/drivers/dri/i965/brw_state_upload.c
+++ b/src/mesa/drivers/dri/i965/brw_state_upload.c
@@ -314,12 +314,8 @@ void brw_validate_state( struct brw_context *brw )
       state->brw |= ~0;
    }
 
-   /* texenv program needs to notify us somehow when this happens: 
-    * Some confusion about which state flag should represent this change.
-    */
    if (brw->fragment_program != brw->attribs.FragmentProgram->_Current) {
       brw->fragment_program = brw->attribs.FragmentProgram->_Current;
-      brw->state.dirty.mesa |= _NEW_PROGRAM;
       brw->state.dirty.brw |= BRW_NEW_FRAGMENT_PROGRAM;
    }
 



More information about the mesa-commit mailing list