gallivm: special case TGSI_OPCODE_STORE
This instruction has the resource (buffer or image) as a destination to represent the writemask for SSBO writes. However, this is obviously not a "real" destination for the purpose of emitting LLVM IR. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
@@ -315,7 +315,7 @@ lp_build_tgsi_inst_llvm(
|
||||
}
|
||||
}
|
||||
|
||||
if (info->num_dst > 0) {
|
||||
if (info->num_dst > 0 && info->opcode != TGSI_OPCODE_STORE) {
|
||||
bld_base->emit_store(bld_base, inst, info, emit_data.output);
|
||||
}
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user