Mesa (master): i965: Don't upload line smooth params unless we' re line smoothing.
Eric Anholt
anholt at kemper.freedesktop.org
Tue Nov 23 17:25:31 UTC 2010
Module: Mesa
Branch: master
Commit: 8a7cf99457f5061c3c5aae48f14fb23b2ca07503
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8a7cf99457f5061c3c5aae48f14fb23b2ca07503
Author: Eric Anholt <eric at anholt.net>
Date: Fri Nov 19 23:04:35 2010 +0800
i965: Don't upload line smooth params unless we're line smoothing.
---
src/mesa/drivers/dri/i965/brw_misc_state.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c
index c5fcdde..a91b052 100644
--- a/src/mesa/drivers/dri/i965/brw_misc_state.c
+++ b/src/mesa/drivers/dri/i965/brw_misc_state.c
@@ -393,9 +393,10 @@ const struct brw_tracked_state brw_polygon_stipple_offset = {
*/
static void upload_aa_line_parameters(struct brw_context *brw)
{
+ struct gl_context *ctx = &brw->intel.ctx;
struct brw_aa_line_parameters balp;
- if (!brw->has_aa_line_parameters)
+ if (!ctx->Line.SmoothFlag || !brw->has_aa_line_parameters)
return;
/* use legacy aa line coverage computation */
@@ -408,7 +409,7 @@ static void upload_aa_line_parameters(struct brw_context *brw)
const struct brw_tracked_state brw_aa_line_parameters = {
.dirty = {
- .mesa = 0,
+ .mesa = _NEW_LINE,
.brw = BRW_NEW_CONTEXT,
.cache = 0
},
More information about the mesa-commit
mailing list