diff options
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index fabecb17869..b01012833fe 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -1613,9 +1613,9 @@ static LLVMValueRef emit_ddxy(struct ac_nir_context *ctx, int idx; LLVMValueRef result; - if (op == nir_op_fddx_fine || op == nir_op_fddx) + if (op == nir_op_fddx_fine) mask = AC_TID_MASK_LEFT; - else if (op == nir_op_fddy_fine || op == nir_op_fddy) + else if (op == nir_op_fddy_fine) mask = AC_TID_MASK_TOP; else mask = AC_TID_MASK_TOP_LEFT; |