radeonsi: si_llvm_emit_vs_epilogue is never used with gs copy shaders
Hence remove the misleading branch on is_gs_copy_shader. Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
c55b9499d5
commit
46c0ba60c6
|
@ -2152,6 +2152,8 @@ static void si_llvm_emit_vs_epilogue(struct lp_build_tgsi_context * bld_base)
|
||||||
struct si_shader_output_values *outputs = NULL;
|
struct si_shader_output_values *outputs = NULL;
|
||||||
int i,j;
|
int i,j;
|
||||||
|
|
||||||
|
assert(!si_shader_ctx->is_gs_copy_shader);
|
||||||
|
|
||||||
outputs = MALLOC((info->num_outputs + 1) * sizeof(outputs[0]));
|
outputs = MALLOC((info->num_outputs + 1) * sizeof(outputs[0]));
|
||||||
|
|
||||||
/* Vertex color clamping.
|
/* Vertex color clamping.
|
||||||
|
@ -2160,8 +2162,7 @@ static void si_llvm_emit_vs_epilogue(struct lp_build_tgsi_context * bld_base)
|
||||||
* an IF statement is added that clamps all colors if the constant
|
* an IF statement is added that clamps all colors if the constant
|
||||||
* is true.
|
* is true.
|
||||||
*/
|
*/
|
||||||
if (si_shader_ctx->type == TGSI_PROCESSOR_VERTEX &&
|
if (si_shader_ctx->type == TGSI_PROCESSOR_VERTEX) {
|
||||||
!si_shader_ctx->is_gs_copy_shader) {
|
|
||||||
struct lp_build_if_state if_ctx;
|
struct lp_build_if_state if_ctx;
|
||||||
LLVMValueRef cond = NULL;
|
LLVMValueRef cond = NULL;
|
||||||
LLVMValueRef addr, val;
|
LLVMValueRef addr, val;
|
||||||
|
|
Loading…
Reference in New Issue