Browse Source

radeonsi: skip ES output stores for undefined output components

Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
tags/18.2-branchpoint
Marek Olšák 7 years ago
parent
commit
3d64ed5785
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/gallium/drivers/radeonsi/si_shader.c

+ 3
- 0
src/gallium/drivers/radeonsi/si_shader.c View File

@@ -3598,6 +3598,9 @@ static void si_llvm_emit_es_epilogue(struct ac_shader_abi *abi,
info->output_semantic_index[i]);

for (chan = 0; chan < 4; chan++) {
if (!(info->output_usagemask[i] & (1 << chan)))
continue;

LLVMValueRef out_val = LLVMBuildLoad(ctx->ac.builder, addrs[4 * i + chan], "");
out_val = ac_to_integer(&ctx->ac, out_val);


Loading…
Cancel
Save