projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b380531
)
i965: Fix gen6 pointsize handling to match pre-gen6.
author
Eric Anholt
<eric@anholt.net>
Thu, 7 Oct 2010 00:29:29 +0000
(17:29 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 7 Oct 2010 00:29:29 +0000
(17:29 -0700)
Fixes point-line-no-cull.
Bug #30532
src/mesa/drivers/dri/i965/gen6_sf_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/gen6_sf_state.c
b/src/mesa/drivers/dri/i965/gen6_sf_state.c
index 6c88338195801c0cd0398e47e7f71a9e63877514..b2a6bd04e2f0d52ff2be1ff2a867eaa556e4ef12 100644
(file)
--- a/
src/mesa/drivers/dri/i965/gen6_sf_state.c
+++ b/
src/mesa/drivers/dri/i965/gen6_sf_state.c
@@
-125,7
+125,8
@@
upload_sf_state(struct brw_context *brw)
}
/* _NEW_POINT */
- if (ctx->Point._Attenuated)
+ if (!(ctx->VertexProgram.PointSizeEnabled ||
+ ctx->Point._Attenuated))
dw4 |= GEN6_SF_USE_STATE_POINT_WIDTH;
dw4 |= U_FIXED(CLAMP(ctx->Point.Size, 0.125, 225.875), 3) <<