mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-04 15:00:36 +01:00
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>
This commit is contained in:
parent
8e61fd92d4
commit
ba22f014f9
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue