[Mesa-dev] [PATCH v2 3/7] swrast: Don't emit saturate for vertex shaders

Abdiel Janulgue abdiel.janulgue at linux.intel.com
Mon Dec 1 05:47:43 PST 2014


Signed-off-by: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
---
 src/mesa/drivers/dri/swrast/swrast.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/drivers/dri/swrast/swrast.c b/src/mesa/drivers/dri/swrast/swrast.c
index e8a2c12..5bd8a9b 100644
--- a/src/mesa/drivers/dri/swrast/swrast.c
+++ b/src/mesa/drivers/dri/swrast/swrast.c
@@ -793,6 +793,8 @@ dri_create_context(gl_api api,
     _mesa_initialize_dispatch_tables(mesaCtx);
     _mesa_initialize_vbo_vtxfmt(mesaCtx);
 
+    mesaCtx->Const.ShaderCompilerOptions[MESA_SHADER_VERTEX].EmitNoSat = true;
+
     *error = __DRI_CTX_ERROR_SUCCESS;
     return GL_TRUE;
 
-- 
1.9.1



More information about the mesa-dev mailing list