ac,radeonsi: fix load_first_vertex

GL doesn't use it, so this change is not necessary, but it's better
this way.

There is also a small cleanup using si_unpack_param.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7721>
This commit is contained in:
Marek Olšák
2020-11-25 02:13:27 -05:00
parent 80a0f8aba3
commit d7ee265a95
4 changed files with 10 additions and 8 deletions

View File

@@ -863,7 +863,7 @@ load_patch_vertices_in(struct ac_shader_abi *abi)
}
static LLVMValueRef radv_load_base_vertex(struct ac_shader_abi *abi)
static LLVMValueRef radv_load_base_vertex(struct ac_shader_abi *abi, bool non_indexed_is_zero)
{
struct radv_shader_context *ctx = radv_shader_context_from_abi(abi);
return ac_get_arg(&ctx->ac, ctx->args->ac.base_vertex);