r300: add switch to support IEEE and FF math opcodes

Also add support for the 0*NaN = NaN IEEE compliant multiply on R500.
All of this is disabled by default, but can be enabled with a
RADEON_DEBUG variable or alternativelly with a driconf tweak.

Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Reviewed-by: Filip Gawin <filip@gawin.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31745>
This commit is contained in:
Pavel Ondračka
2024-08-22 21:55:53 +02:00
committed by Marge Bot
parent 26fc1ea9e5
commit 584ac64670
10 changed files with 63 additions and 5 deletions

View File

@@ -1869,6 +1869,13 @@ r300 driver environment variables
Disable AA compression and fast AA clear
``notcl``
Disable hardware accelerated Transform/Clip/Lighting
``ieeemath``
Force IEEE versions of VS math opcodes where applicable
and also IEEE handling of multiply by zero (R5xx only)
``ffmath``
Force FF versions of VS math opcodes where applicable
and 0 * anything = 0 rules in FS
Asahi driver environment variables
----------------------------------