mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
radeonsi: NaN should pass kill_if
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=105333 Fixes: https://github.com/iXit/Mesa-3D/issues/314 For this application, NaN is passed to KILL_IF and is expected to pass. v2: Explain in the code why UGE is used. Signed-off-by: Axel Davy <davyaxel0@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> CC: <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
46814e771a
commit
0d495bec25
1 changed files with 2 additions and 1 deletions
|
|
@ -60,7 +60,8 @@ static void kil_emit(const struct lp_build_tgsi_action *action,
|
|||
|
||||
for (i = 0; i < TGSI_NUM_CHANNELS; i++) {
|
||||
LLVMValueRef value = lp_build_emit_fetch(bld_base, inst, 0, i);
|
||||
conds[i] = LLVMBuildFCmp(builder, LLVMRealOGE, value,
|
||||
/* UGE because NaN shouldn't get killed */
|
||||
conds[i] = LLVMBuildFCmp(builder, LLVMRealUGE, value,
|
||||
ctx->ac.f32_0, "");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue