projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
008fd37
)
i965: Don't upload line smooth params unless we're line smoothing.
author
Eric Anholt
<eric@anholt.net>
Fri, 19 Nov 2010 15:04:35 +0000
(23:04 +0800)
committer
Eric Anholt
<eric@anholt.net>
Tue, 23 Nov 2010 17:23:30 +0000
(09:23 -0800)
src/mesa/drivers/dri/i965/brw_misc_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_misc_state.c
b/src/mesa/drivers/dri/i965/brw_misc_state.c
index c5fcdde3258e6ea26a3f2beafef59958dd57952f..a91b0528fac61394f51b5727ce26fd39a55f2fab 100644
(file)
--- 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
},