Mesa (main): iris: 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: fa118be9aeaab714d70c0a84805446c672333bfc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fa118be9aeaab714d70c0a84805446c672333bfc

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

iris: 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/iris/iris_screen.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c
index 65acffa8e3b..741f9ecd6db 100644
--- a/src/gallium/drivers/iris/iris_screen.c
+++ b/src/gallium/drivers/iris/iris_screen.c
@@ -292,6 +292,7 @@ iris_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_MIXED_COLOR_DEPTH_BITS:
    case PIPE_CAP_FENCE_SIGNAL:
    case PIPE_CAP_IMAGE_STORE_FORMATTED:
+   case PIPE_CAP_LEGACY_MATH_RULES:
       return true;
    case PIPE_CAP_PREFER_BACK_BUFFER_REUSE:
       return false;



More information about the mesa-commit mailing list