diff options
author | Jason Ekstrand <[email protected]> | 2019-05-28 17:33:58 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-05-29 21:09:16 +0000 |
commit | e459d6d6dff1317a43b3f98d41e4b8bde39d1858 (patch) | |
tree | 22cfd8023a8a90187cbf467ae504611fbba2b284 /src/gallium/drivers/iris/iris_screen.c | |
parent | 9dc57eebd578b976b94c54d083377ba0920d43a8 (diff) |
iris: Enable nir_opt_large_constants
Shader-db results on Kaby Lake:
total instructions in shared programs: 15306230 -> 15304726 (<.01%)
instructions in affected programs: 4570 -> 3066 (-32.91%)
helped: 16
HURT: 0
total cycles in shared programs: 361703436 -> 361680041 (<.01%)
cycles in affected programs: 129388 -> 105993 (-18.08%)
helped: 16
HURT: 0
LOST: 0
GAINED: 2
The helped programs were in XCom 2, Deus Ex: Mankind Divided, and Kerbal
Space Program
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/drivers/iris/iris_screen.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_screen.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c index 611718e90df..b3c4466805e 100644 --- a/src/gallium/drivers/iris/iris_screen.c +++ b/src/gallium/drivers/iris/iris_screen.c @@ -647,6 +647,7 @@ iris_screen_create(int fd, const struct pipe_screen_config *config) screen->compiler->shader_debug_log = iris_shader_debug_log; screen->compiler->shader_perf_log = iris_shader_perf_log; screen->compiler->supports_pull_constants = false; + screen->compiler->supports_shader_constants = true; iris_disk_cache_init(screen); |