From: Eric Anholt Date: Wed, 15 Jan 2020 21:07:43 +0000 (-0800) Subject: softpipe: Enable PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS; X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ba22f014f9db1852e6336485de4b9936edc6106c;p=mesa.git 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 Part-of: --- 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;