i965: force zero in clipper to ignore RTAIndex on sandybridge
authorZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 17 Sep 2010 05:03:32 +0000 (13:03 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 28 Sep 2010 07:58:20 +0000 (15:58 +0800)
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/gen6_clip_state.c

index 6b8e9e05d08bf41aec4d8759c2fdcf7e46c99df4..f9c12e1555848593bc1c968012cc42e03d22f638 100644 (file)
 /* DW3 */
 # define GEN6_CLIP_MIN_POINT_WIDTH_SHIFT               17
 # define GEN6_CLIP_MAX_POINT_WIDTH_SHIFT               6
+# define GEN6_CLIP_FORCE_ZERO_RTAINDEX                 (1 << 5)
 
 #define CMD_3D_SF_STATE                                0x7813 /* GEN6+ */
 /* DW1 */
index acc4b7f1019130814826b166c3ee5ac50d15822b..045d9c6f76e888d85e3e012dc6e2c35c957d31f9 100644 (file)
@@ -59,6 +59,7 @@ upload_clip_state(struct brw_context *brw)
             GEN6_CLIP_XY_TEST |
             depth_clamp |
             provoking);
+   OUT_BATCH(GEN6_CLIP_FORCE_ZERO_RTAINDEX);
    OUT_BATCH(0);
    ADVANCE_BATCH();