softpipe: Enable PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS;
authorEric Anholt <eric@anholt.net>
Wed, 15 Jan 2020 21:07:43 +0000 (13:07 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Jul 2020 00:24:26 +0000 (00:24 +0000)
commitba22f014f9db1852e6336485de4b9936edc6106c
tree28620ff054d4cff145ef556590c35238d376aa13
parent8e61fd92d4ac415770a173fd1a51c77761f72775
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@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6018>
src/gallium/drivers/softpipe/sp_screen.c