i965: set minimum/maximum Point Width on Sandybridge
authorXiang, Haihao <haihao.xiang@intel.com>
Tue, 7 Dec 2010 08:30:00 +0000 (16:30 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 7 Dec 2010 08:43:24 +0000 (16:43 +0800)
It is used for point width on vertex. This fixes mesa demo spriteblast and pointblast.

src/mesa/drivers/dri/i965/gen6_clip_state.c

index c65b41e2b6bf9c71c30d707bdc67fddd54657e2b..c7c4eb1f27d6272323f683f012a5b941865e54f1 100644 (file)
@@ -64,7 +64,9 @@ upload_clip_state(struct brw_context *brw)
             userclip << GEN6_USER_CLIP_CLIP_DISTANCES_SHIFT |
             depth_clamp |
             provoking);
-   OUT_BATCH(GEN6_CLIP_FORCE_ZERO_RTAINDEX);
+   OUT_BATCH(U_FIXED(0.125, 3) << GEN6_CLIP_MIN_POINT_WIDTH_SHIFT |
+             U_FIXED(225.875, 3) << GEN6_CLIP_MAX_POINT_WIDTH_SHIFT |
+             GEN6_CLIP_FORCE_ZERO_RTAINDEX);
    ADVANCE_BATCH();
 }