Commit f4c48eae authored by Timur Kristóf's avatar Timur Kristóf
Browse files

radv/llvm: Fix load_patch_vertices_in for tess eval shaders.


Signed-off-by: Timur Kristóf's avatarTimur Kristóf <timur.kristof@gmail.com>
parent 06b2ba73
Pipeline #273438 waiting for manual action with stages
in 10 seconds
......@@ -857,7 +857,12 @@ static LLVMValueRef
load_patch_vertices_in(struct ac_shader_abi *abi)
{
struct radv_shader_context *ctx = radv_shader_context_from_abi(abi);
return LLVMConstInt(ctx->ac.i32, ctx->args->options->key.tcs.input_vertices, false);
if (ctx->stage == MESA_SHADER_TESS_CTRL)
return LLVMConstInt(ctx->ac.i32, ctx->args->options->key.tcs.input_vertices, false);
else if (ctx->stage == MESA_SHADER_TESS_EVAL)
return LLVMConstInt(ctx->ac.i32, ctx->shader->info.tess.tcs_vertices_out, false);
else
unreachable("load_patch_vertices_in is only supported in tessellation shaders.");
}
......
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