diff options
| author | 2021-04-17 11:56:45 +0200 | |
|---|---|---|
| committer | 2021-07-22 21:51:28 -0400 | |
| commit | 04c459fc8d99b41fa8a03c49523599e9bf797f9d (patch) | |
| tree | 199934b3ef85a5affbe9ef115e9b0a1085851b36 /src/shader_recompiler/backend/spirv/emit_spirv.cpp | |
| parent | shader: Implement SR_Y_DIRECTION (diff) | |
| download | yuzu-04c459fc8d99b41fa8a03c49523599e9bf797f9d.tar.gz yuzu-04c459fc8d99b41fa8a03c49523599e9bf797f9d.tar.xz yuzu-04c459fc8d99b41fa8a03c49523599e9bf797f9d.zip | |
shader: Implement fine derivates constant propagation
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_spirv.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.cpp b/src/shader_recompiler/backend/spirv/emit_spirv.cpp index 9ec970706..c4d5874ca 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv.cpp | |||
| @@ -341,6 +341,9 @@ void SetupCapabilities(const Profile& profile, const Info& info, EmitContext& ct | |||
| 341 | if (!ctx.profile.xfb_varyings.empty()) { | 341 | if (!ctx.profile.xfb_varyings.empty()) { |
| 342 | ctx.AddCapability(spv::Capability::TransformFeedback); | 342 | ctx.AddCapability(spv::Capability::TransformFeedback); |
| 343 | } | 343 | } |
| 344 | if (info.uses_derivates) { | ||
| 345 | ctx.AddCapability(spv::Capability::DerivativeControl); | ||
| 346 | } | ||
| 344 | // TODO: Track this usage | 347 | // TODO: Track this usage |
| 345 | ctx.AddCapability(spv::Capability::ImageGatherExtended); | 348 | ctx.AddCapability(spv::Capability::ImageGatherExtended); |
| 346 | ctx.AddCapability(spv::Capability::ImageQuery); | 349 | ctx.AddCapability(spv::Capability::ImageQuery); |