diff options
author | Marek Olšák <[email protected]> | 2019-06-19 19:00:50 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-06-24 21:04:10 -0400 |
commit | ac4b1e2f0aa987b075be0bac3b4a9e69b5ec4d07 (patch) | |
tree | 400ddbac9146a155a86545ffae9dcc1bd91e431f /src/gallium/drivers/radeonsi/si_compute_prim_discard.c | |
parent | 610e1a81f768aced998bdedf8037a5f4a4e446ca (diff) |
radeonsi: set the calling convention for inlined function calls
otherwise the behavior is undefined
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Tested-by: Dieter Nützel <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_compute_prim_discard.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_compute_prim_discard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_compute_prim_discard.c b/src/gallium/drivers/radeonsi/si_compute_prim_discard.c index 0f2934243a1..28da7b92250 100644 --- a/src/gallium/drivers/radeonsi/si_compute_prim_discard.c +++ b/src/gallium/drivers/radeonsi/si_compute_prim_discard.c @@ -667,7 +667,7 @@ void si_build_prim_discard_compute_shader(struct si_shader_context *ctx) vs_params[param_vertex_id] = index[i]; vs_params[param_instance_id] = instance_id; - LLVMValueRef ret = LLVMBuildCall(builder, vs, vs_params, num_vs_params, ""); + LLVMValueRef ret = ac_build_call(&ctx->ac, vs, vs_params, num_vs_params); for (unsigned chan = 0; chan < 4; chan++) pos[i][chan] = LLVMBuildExtractValue(builder, ret, chan, ""); } |