From: Xiang, Haihao Date: Tue, 7 Dec 2010 08:30:00 +0000 (+0800) Subject: i965: set minimum/maximum Point Width on Sandybridge X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5ff6ed2b975d56e0e9ab363e2dc756ce93c78803;p=mesa.git i965: set minimum/maximum Point Width on Sandybridge It is used for point width on vertex. This fixes mesa demo spriteblast and pointblast. --- diff --git a/src/mesa/drivers/dri/i965/gen6_clip_state.c b/src/mesa/drivers/dri/i965/gen6_clip_state.c index c65b41e2b6b..c7c4eb1f27d 100644 --- a/src/mesa/drivers/dri/i965/gen6_clip_state.c +++ b/src/mesa/drivers/dri/i965/gen6_clip_state.c @@ -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(); }