llvmpipe: do not enable tessellation shader without llvm coroutines support
authorCharmaine Lee <charmainel@vmware.com>
Fri, 5 Jun 2020 00:46:33 +0000 (17:46 -0700)
committerMarge Bot <eric+marge@anholt.net>
Sat, 6 Jun 2020 22:45:21 +0000 (22:45 +0000)
commitdd81f4853c879c38987909f5e6e670b325f9f6af
tree707cc0e8cb29cc8f5b3ec94fc57761c592f13ad0
parent990b3782bc5f2f127345b975a68ac56aaf3e4674
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 <sroland@vmware.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Neha Bhende <bhenden@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5366>
src/gallium/drivers/llvmpipe/lp_screen.c