Commit dd81f485 authored by Charmaine Lee's avatar Charmaine Lee Committed by Marge Bot

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: default avatarRoland Scheidegger <sroland@vmware.com>
Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
Reviewed-by: Neha Bhende's avatarNeha Bhende <bhenden@vmware.com>
Part-of: <!5366>
parent 990b3782
Pipeline #157144 passed with stages
in 14 minutes and 55 seconds
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment