Mesa (master): softpipe: add check for DO_PSTIPPLE_IN_HELPER_MODULE

Brian Paul brianp at kemper.freedesktop.org
Tue Oct 4 21:06:49 UTC 2011


Module: Mesa
Branch: master
Commit: 334a9dd3e60e9c7b8ba7bcceb2c88c2645e6220b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=334a9dd3e60e9c7b8ba7bcceb2c88c2645e6220b

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Oct  4 14:45:13 2011 -0600

softpipe: add check for DO_PSTIPPLE_IN_HELPER_MODULE

We only want to generate the fragment shader variant that does
stippling if DO_PSTIPPLE_IN_HELPER_MODULE is being used.

---

 src/gallium/drivers/softpipe/sp_state_shader.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/softpipe/sp_state_shader.c b/src/gallium/drivers/softpipe/sp_state_shader.c
index d7d0599..3dd1f9e 100644
--- a/src/gallium/drivers/softpipe/sp_state_shader.c
+++ b/src/gallium/drivers/softpipe/sp_state_shader.c
@@ -55,12 +55,14 @@ create_fs_variant(struct softpipe_context *softpipe,
    struct pipe_shader_state *stipple_fs = NULL, *curfs = &fs->shader;
    unsigned unit = 0;
 
+#if DO_PSTIPPLE_IN_HELPER_MODULE
    if (key->polygon_stipple) {
       /* get new shader that implements polygon stippling */
       stipple_fs = util_pstipple_create_fragment_shader(&softpipe->pipe,
                                                         curfs, &unit);
       curfs = stipple_fs;
    }
+#endif
 
    /* codegen, create variant object */
    var = softpipe_create_fs_variant_sse(softpipe, curfs);




More information about the mesa-commit mailing list