summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorZhenyu Wang <[email protected]>2010-09-17 13:03:32 +0800
committerZhenyu Wang <[email protected]>2010-09-28 15:58:20 +0800
commit03218a00932e83f0ffd0c3077bbbe65a7765c572 (patch)
tree1cfd5947aab7ad16448b25f413e641e802e4a85c /src
parent41c31c2ebd5ed2ca021ff9d89f79270562e6c368 (diff)
i965: force zero in clipper to ignore RTAIndex on sandybridge
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_defines.h1
-rw-r--r--src/mesa/drivers/dri/i965/gen6_clip_state.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_defines.h b/src/mesa/drivers/dri/i965/brw_defines.h
index 6b8e9e05d08..f9c12e15558 100644
--- a/src/mesa/drivers/dri/i965/brw_defines.h
+++ b/src/mesa/drivers/dri/i965/brw_defines.h
@@ -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 */
diff --git a/src/mesa/drivers/dri/i965/gen6_clip_state.c b/src/mesa/drivers/dri/i965/gen6_clip_state.c
index acc4b7f1019..045d9c6f76e 100644
--- a/src/mesa/drivers/dri/i965/gen6_clip_state.c
+++ b/src/mesa/drivers/dri/i965/gen6_clip_state.c
@@ -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();