i965: force zero in clipper to ignore RTAIndex on sandybridge

This commit is contained in:
Zhenyu Wang 2010-09-17 13:03:32 +08:00
parent 41c31c2ebd
commit 03218a0093
2 changed files with 2 additions and 0 deletions

View file

@ -930,6 +930,7 @@
/* 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 */

View 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();