i965: Fix Smooth Point Enables.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 26 Nov 2017 00:59:27 +0000 (16:59 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 28 Nov 2017 23:23:16 +0000 (15:23 -0800)
We want to program the 3DSTATE_RASTER field to the gl_context value,
not the other way around.

Fixes: 13ac46557ab1 (i965: Port Gen8+ 3DSTATE_RASTER state to genxml.)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/mesa/drivers/dri/i965/genX_state_upload.c

index 112f48181b0312e4205300ea2e24f280d540443d..2808363e3adb5d2556b83683a2485f8711073da8 100644 (file)
@@ -4322,7 +4322,7 @@ genX(upload_raster)(struct brw_context *brw)
          raster.CullMode = CULLMODE_NONE;
       }
 
-      point->SmoothFlag = raster.SmoothPointEnable;
+      raster.SmoothPointEnable = point->SmoothFlag;
 
       raster.DXMultisampleRasterizationEnable =
          _mesa_is_multisample_enabled(ctx);