amd/common: Use correct writemask for shared memory stores.
The check was for 1 bit being set, which is clearly not what we want. CC: <mesa-stable@lists.freedesktop.org> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
00253ab2c4
commit
3c24fc64c7
|
@ -2107,7 +2107,7 @@ visit_store_var(struct ac_nir_context *ctx,
|
|||
int writemask = instr->const_index[0];
|
||||
LLVMValueRef address = get_src(ctx, instr->src[0]);
|
||||
LLVMValueRef val = get_src(ctx, instr->src[1]);
|
||||
if (util_is_power_of_two_nonzero(writemask)) {
|
||||
if (writemask == (1u << ac_get_llvm_num_components(val)) - 1) {
|
||||
val = LLVMBuildBitCast(
|
||||
ctx->ac.builder, val,
|
||||
LLVMGetElementType(LLVMTypeOf(address)), "");
|
||||
|
|
Loading…
Reference in New Issue