Mesa (main): crocus: Enable PIPE_CAP_LEGACY_MATH_RULES.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jun 10 03:54:57 UTC 2022


Module: Mesa
Branch: main
Commit: 070ce2307843a055f0d5863af751fcdd669e57d6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=070ce2307843a055f0d5863af751fcdd669e57d6

Author: Emma Anholt <emma at anholt.net>
Date:   Tue Apr 26 13:47:25 2022 -0700

crocus: Enable PIPE_CAP_LEGACY_MATH_RULES.

Now that TTN hooks this up to use_legacy_math_rules, we can flip the
switch and gallium nine can get the desired behavior from the hardware
instead of emitting math workarounds.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16176>

---

 src/gallium/drivers/crocus/crocus_screen.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/crocus/crocus_screen.c b/src/gallium/drivers/crocus/crocus_screen.c
index 64fad809de4..40673ebe17e 100644
--- a/src/gallium/drivers/crocus/crocus_screen.c
+++ b/src/gallium/drivers/crocus/crocus_screen.c
@@ -196,6 +196,7 @@ crocus_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_FENCE_SIGNAL:
    case PIPE_CAP_DEMOTE_TO_HELPER_INVOCATION:
    case PIPE_CAP_GL_CLAMP:
+   case PIPE_CAP_LEGACY_MATH_RULES:
       return true;
    case PIPE_CAP_INT64:
    case PIPE_CAP_INT64_DIVMOD:



More information about the mesa-commit mailing list