Mesa (master): softpipe: Enable PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS;

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jul 23 00:47:16 UTC 2020


Module: Mesa
Branch: master
Commit: ba22f014f9db1852e6336485de4b9936edc6106c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ba22f014f9db1852e6336485de4b9936edc6106c

Author: Eric Anholt <eric at anholt.net>
Date:   Wed Jan 15 13:07:43 2020 -0800

softpipe: Enable PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS;

tgsi_exec.c uses the generic src load path for indirects, so we don't
actually need addr regs.  Saves extra intructions.

shader-db results:
total instructions in shared programs: 3346685 -> 3249052 (-2.92%)
instructions in affected programs: 961832 -> 864199 (-10.15%)

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6018>

---

 src/gallium/drivers/softpipe/sp_screen.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c
index 9e974ae8893..66a204ba25e 100644
--- a/src/gallium/drivers/softpipe/sp_screen.c
+++ b/src/gallium/drivers/softpipe/sp_screen.c
@@ -254,6 +254,7 @@ softpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_COPY_BETWEEN_COMPRESSED_AND_PLAIN_FORMATS:
    case PIPE_CAP_TGSI_ARRAY_COMPONENTS:
    case PIPE_CAP_TGSI_TEXCOORD:
+   case PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS:
       return 1;
    case PIPE_CAP_CLEAR_TEXTURE:
       return 1;



More information about the mesa-commit mailing list