summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_surface.c
diff options
context:
space:
mode:
authorCharmaine Lee <[email protected]>2017-04-04 12:47:49 -0600
committerBrian Paul <[email protected]>2017-04-07 13:46:43 -0600
commitb4c4ee076244d0518af98e0beca1c12942c4bc36 (patch)
treea0327146039bbd592ab502ce6291be85e82a9f98 /src/gallium/drivers/svga/svga_surface.c
parentfed72ff6cb85fa6044335cfc41d8492458f53750 (diff)
svga: disable rasterization if rasterizer_discard is set or FS undefined
With this patch, rasterization will be disabled if the rasterizer_discard flag is set or the fragment shader is undefined due to missing position output from the vertex/geometry shader. Tested with piglit test glsl-1.50-geometry-primitive-id-restart. Also tested with full MTT glretrace and piglit. v2: As suggested by Roland, to properly disable rasterization, besides setting FS to NULL, we will also need to disable depth and stencil test. v3: As suggested by Brian, set SVGA_NEW_DEPTH_STENCIL_ALPHA dirty bit in svga_bind_rasterizer_state() if the rasterizer_discard flag is changed. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_surface.c')
0 files changed, 0 insertions, 0 deletions