mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
mesa: added NaN checking code (disabled)
This commit is contained in:
parent
035de6a82b
commit
9200954370
1 changed files with 14 additions and 0 deletions
|
|
@ -225,6 +225,13 @@ fetch_vector4(const struct prog_src_register *source,
|
|||
result[2] = -result[2];
|
||||
result[3] = -result[3];
|
||||
}
|
||||
|
||||
#ifdef NAN_CHECK
|
||||
assert(!IS_INF_OR_NAN(result[0]));
|
||||
assert(!IS_INF_OR_NAN(result[0]));
|
||||
assert(!IS_INF_OR_NAN(result[0]));
|
||||
assert(!IS_INF_OR_NAN(result[0]));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -479,6 +486,13 @@ store_vector4(const struct prog_instruction *inst,
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef NAN_CHECK
|
||||
assert(!IS_INF_OR_NAN(value[0]));
|
||||
assert(!IS_INF_OR_NAN(value[0]));
|
||||
assert(!IS_INF_OR_NAN(value[0]));
|
||||
assert(!IS_INF_OR_NAN(value[0]));
|
||||
#endif
|
||||
|
||||
if (writeMask & WRITEMASK_X)
|
||||
dst[0] = value[0];
|
||||
if (writeMask & WRITEMASK_Y)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue