summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_pipe_pstipple.c
diff options
context:
space:
mode:
authorRhys Perry <pendingchaos02@gmail.com>2021-04-07 10:34:57 +0100
committerMarge Bot <eric+marge@anholt.net>2021-04-08 09:33:59 +0000
commit49cb1fac138c6c79079195ceba1d247afe2261bb (patch)
tree9bcc513965547e78d25bde8067a3c1d2a9ed0745 /src/gallium/auxiliary/draw/draw_pipe_pstipple.c
parent49be175a4bc0b34fdae0ef88f7fc4f73efafa4da (diff)
draw: fix pstipple, aaline and aapoint without LLVM
Because of nir_to_tgsi, LLVM is not required here. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Fixes: d0f8fe59091 ("softpipe: Switch to using NIR as the shader format from mesa/st.") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10072>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pipe_pstipple.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_pipe_pstipple.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_pstipple.c b/src/gallium/auxiliary/draw/draw_pipe_pstipple.c
index 65e8bc573d6..eb7ad8bf24f 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_pstipple.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_pstipple.c
@@ -144,11 +144,9 @@ generate_pstip_fs(struct pstip_stage *pstip)
if (pstip_fs.tokens == NULL)
return FALSE;
} else {
-#ifdef DRAW_LLVM_AVAILABLE
pstip_fs.ir.nir = nir_shader_clone(NULL, orig_fs->ir.nir);
nir_lower_pstipple_fs(pstip_fs.ir.nir,
&pstip->fs->sampler_unit, 0, wincoord_file == TGSI_FILE_SYSTEM_VALUE);
-#endif
}
assert(pstip->fs->sampler_unit < PIPE_MAX_SAMPLERS);