OSDN Git Service

Don't program VGT_OUT_DEALLOC_CNTL/VGT_VERTEX_REUSE_BLOCK_CNTL
authorAlex Deucher <alexdeucher@gmail.com>
Thu, 4 Jun 2009 20:57:20 +0000 (16:57 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Thu, 4 Jun 2009 20:57:20 +0000 (16:57 -0400)
These are chip specific and are programmed by the drm.
This should fix hangs on some chips.

src/mesa/drivers/dri/r600/r700_chip.c
src/mesa/drivers/dri/r600/r700_chip.h
src/mesa/drivers/dri/r600/r700_state.c

index daf14be..5737847 100644 (file)
@@ -305,9 +305,6 @@ GLboolean r700InitChipObject(context_t *context)
 
     LINK_STATES(PA_SC_AA_MASK);  
 
-    LINK_STATES(VGT_VERTEX_REUSE_BLOCK_CNTL); 
-    LINK_STATES(VGT_OUT_DEALLOC_CNTL);  
-
     LINK_STATES(DB_RENDER_CONTROL); 
     LINK_STATES(DB_RENDER_OVERRIDE);
 
index c3a3301..4ceada7 100644 (file)
@@ -426,10 +426,7 @@ typedef struct _R700_CHIP_CONTEXT
        union UINT_FLOAT                CB_CLRCMP_MSK             ;  /* 0xA30F */
        
        union UINT_FLOAT                PA_SC_AA_MASK             ;  /* 0xA312 */
-       
-       union UINT_FLOAT   VGT_VERTEX_REUSE_BLOCK_CNTL;  /* 0xA316 */
-       union UINT_FLOAT        VGT_OUT_DEALLOC_CNTL      ;  /* 0xA317 */
-       
+
        union UINT_FLOAT                DB_RENDER_CONTROL         ;  /* 0xA343 */
        union UINT_FLOAT                DB_RENDER_OVERRIDE        ;  /* 0xA344 */
 
index fb8388f..3556d68 100644 (file)
@@ -922,9 +922,6 @@ void r700InitState(GLcontext * ctx) //-------------------
     /* Turn off AA */
     r700->PA_SC_AA_CONFIG.u32All = 0;
 
-    SETfield(r700->VGT_OUT_DEALLOC_CNTL.u32All, 16, DEALLOC_DIST_shift, DEALLOC_DIST_mask);
-    SETfield(r700->VGT_VERTEX_REUSE_BLOCK_CNTL.u32All, 14, VTX_REUSE_DEPTH_shift, VTX_REUSE_DEPTH_mask);
-
     r700->SX_MISC.u32All = 0;
 
     /* depth buf */