diff options
author | Timothy Arceri <[email protected]> | 2018-05-08 14:57:55 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2018-05-13 09:58:33 +1000 |
commit | ce188813bfe63068119cbf3d0f76e1ea3d27b722 (patch) | |
tree | b9305dcd3b09ab8efa67d1cb1a89e7c7965b4667 /src/mesa | |
parent | 26ddc4f9e103be495bd1720c07ba255e30523983 (diff) |
radv: add initial support for VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT
When VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT is set we skip NIR
linking optimisations and only run over the NIR optimisation loop
once similar to the GLSLOptimizeConservatively constant used by
some GL drivers.
We need to run over the opts at least once to avoid errors in LLVM
(e.g. dead vars it can't handle) and also to reduce the time spent
compiling the IR in LLVM.
With this change the Blacksmith Unity demos compilation times
go from 329760 ms -> 299881 ms when using Wine and DXVK.
V2: add bit to radv_pipeline_key
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106246
Diffstat (limited to 'src/mesa')
0 files changed, 0 insertions, 0 deletions