radeonsi: fix and clean up shader_type passing
[mesa.git] / src / gallium / drivers / radeonsi / si_shader_tgsi_setup.c
index a9946d99185368c47debf6e1fc23219b062607a5..1690c3cb8a86bcbf514e96ce9a3e832e85ac7fd3 100644 (file)
@@ -1105,7 +1105,7 @@ void si_llvm_create_func(struct si_shader_context *ctx,
        LLVMTypeRef main_fn_type, ret_type;
        LLVMBasicBlockRef main_fn_body;
        enum si_llvm_calling_convention call_conv;
-       unsigned real_shader_type;
+       enum pipe_shader_type real_shader_type;
 
        if (num_return_elems)
                ret_type = LLVMStructTypeInContext(ctx->ac.context,