From: Charmaine Lee Date: Fri, 5 Jun 2020 00:46:33 +0000 (-0700) Subject: llvmpipe: do not enable tessellation shader without llvm coroutines support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd81f4853c879c38987909f5e6e670b325f9f6af;p=mesa.git llvmpipe: do not enable tessellation shader without llvm coroutines support Tessellation shader in llvmpipe depends on llvm coroutines support. So do not advertise tessellation shader support in llvmpipe if GALLIVM_HAVE_CORO is FALSE. This fixes assertion in LLVMTokenTypeInContext() running tessellation shader tests with llvm version < 6. Fixes: eb522717 "llvmpipe: add support for tessellation shaders" Reviewed-by: Roland Scheidegger Reviewed-by: Dave Airlie Reviewed-by: Brian Paul Reviewed-by: Neha Bhende Part-of: --- diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index e3f1f70237c..61aac82d0d8 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -433,7 +433,8 @@ llvmpipe_get_shader_param(struct pipe_screen *screen, } case PIPE_SHADER_TESS_CTRL: case PIPE_SHADER_TESS_EVAL: - if (lscreen->use_tgsi) + /* Tessellation shader needs llvm coroutines support */ + if (!GALLIVM_HAVE_CORO || lscreen->use_tgsi) return 0; case PIPE_SHADER_VERTEX: case PIPE_SHADER_GEOMETRY: