From 27609a826734594c092390c2538b74f8358c1aba Mon Sep 17 00:00:00 2001 From: Zhenyu Wang Date: Tue, 7 Dec 2010 17:02:02 +0800 Subject: [PATCH] i965: upload WM state for _NEW_POLYGON on sandybridge Be sure polygon stipple mode is updated. This fixes 'gamma' demo. --- src/mesa/drivers/dri/i965/gen6_wm_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/gen6_wm_state.c b/src/mesa/drivers/dri/i965/gen6_wm_state.c index a039d7df29d..333c2a78424 100644 --- a/src/mesa/drivers/dri/i965/gen6_wm_state.c +++ b/src/mesa/drivers/dri/i965/gen6_wm_state.c @@ -178,7 +178,7 @@ upload_wm_state(struct brw_context *brw) const struct brw_tracked_state gen6_wm_state = { .dirty = { .mesa = (_NEW_LINE | _NEW_POLYGONSTIPPLE | _NEW_COLOR | _NEW_BUFFERS | - _NEW_PROGRAM_CONSTANTS), + _NEW_PROGRAM_CONSTANTS | _NEW_POLYGON), .brw = (BRW_NEW_CURBE_OFFSETS | BRW_NEW_FRAGMENT_PROGRAM | BRW_NEW_NR_WM_SURFACES | -- 2.30.2