mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 17:20:21 +01:00
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>
(cherry picked from commit 3c24fc64c7)
This commit is contained in:
parent
f04d57ff1f
commit
08834a3721
1 changed files with 1 additions and 1 deletions
|
|
@ -2072,7 +2072,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…
Add table
Reference in a new issue