Documented the value written for R300_TX_CNTL cache flush.
authorOliver McFadden <z3ro.geek@gmail.com>
Tue, 13 Mar 2007 06:08:36 +0000 (06:08 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Tue, 13 Mar 2007 06:10:23 +0000 (06:10 +0000)
src/mesa/drivers/dri/r300/r300_cmdbuf.c
src/mesa/drivers/dri/r300/r300_reg.h

index 89725447f1dc1a72d592e9723c92605a2d30422b..e4511e0c21cb4d575db4f6d1a6a95e8a5771d6e1 100644 (file)
@@ -174,11 +174,12 @@ static __inline__ void r300DoEmitState(r300ContextPtr r300, GLboolean dirty)
        dest ++;
        r300->cmdbuf.count_used ++;
 
+       /* Emit cache flush */
        *dest = cmdpacket0(R300_TX_CNTL, 1);
        dest ++;
        r300->cmdbuf.count_used ++;
        
-       *dest = 0x0;
+       *dest = R300_TX_FLUSH;
        dest ++;
        r300->cmdbuf.count_used ++;
        
index be357ab5c73aeecffa64020739c99ed00ddbadc4..aa6d81a063a479ecddffb571ee27589ee3967674 100644 (file)
@@ -497,6 +497,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 /* Zero to flush caches. */
 #define R300_TX_CNTL                        0x4100
+#define R300_TX_FLUSH                       0x0
 
 /* The upper enable bits are guessed, based on fglrx reported limits. */
 #define R300_TX_ENABLE                      0x4104