[Mesa-dev] [PATCH 6/8] i965: Fill in Sample Mask in Haswell's 3DSTATE_PS.

Kenneth Graunke kenneth at whitecape.org
Mon Mar 19 14:10:43 PDT 2012


We only need one sample, since we don't support multisampling yet.
---
 src/mesa/drivers/dri/i965/gen7_wm_state.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/gen7_wm_state.c b/src/mesa/drivers/dri/i965/gen7_wm_state.c
index 773598f..a4c0e01 100644
--- a/src/mesa/drivers/dri/i965/gen7_wm_state.c
+++ b/src/mesa/drivers/dri/i965/gen7_wm_state.c
@@ -155,6 +155,9 @@ upload_ps_state(struct brw_context *brw)
    if (intel->ctx.Shader.CurrentFragmentProgram == NULL)
       dw2 |= GEN7_PS_FLOATING_POINT_MODE_ALT;
 
+   if (intel->is_haswell)
+      dw4 |= (1 << 12); /* Sample Mask: 1 sample for now */
+
    dw4 |= (brw->max_wm_threads - 1) << max_threads_shift;
 
    /* CACHE_NEW_WM_PROG */
-- 
1.7.7.6



More information about the mesa-dev mailing list