diff options
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/shader/registry.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/video_core/shader/registry.cpp b/src/video_core/shader/registry.cpp index de9a3df90..3cf922002 100644 --- a/src/video_core/shader/registry.cpp +++ b/src/video_core/shader/registry.cpp | |||
| @@ -55,12 +55,11 @@ ComputeInfo MakeComputeInfo(ShaderType shader_stage, ConstBufferEngineInterface& | |||
| 55 | 55 | ||
| 56 | } // Anonymous namespace | 56 | } // Anonymous namespace |
| 57 | 57 | ||
| 58 | Registry::Registry(Tegra::Engines::ShaderType shader_stage, const SerializedRegistryInfo& info) | 58 | Registry::Registry(ShaderType shader_stage, const SerializedRegistryInfo& info) |
| 59 | : stage{shader_stage}, stored_guest_driver_profile{info.guest_driver_profile}, | 59 | : stage{shader_stage}, stored_guest_driver_profile{info.guest_driver_profile}, |
| 60 | bound_buffer{info.bound_buffer}, graphics_info{info.graphics}, compute_info{info.compute} {} | 60 | bound_buffer{info.bound_buffer}, graphics_info{info.graphics}, compute_info{info.compute} {} |
| 61 | 61 | ||
| 62 | Registry::Registry(Tegra::Engines::ShaderType shader_stage, | 62 | Registry::Registry(ShaderType shader_stage, ConstBufferEngineInterface& engine) |
| 63 | Tegra::Engines::ConstBufferEngineInterface& engine) | ||
| 64 | : stage{shader_stage}, engine{&engine}, bound_buffer{engine.GetBoundBuffer()}, | 63 | : stage{shader_stage}, engine{&engine}, bound_buffer{engine.GetBoundBuffer()}, |
| 65 | graphics_info{MakeGraphicsInfo(shader_stage, engine)}, compute_info{MakeComputeInfo( | 64 | graphics_info{MakeGraphicsInfo(shader_stage, engine)}, compute_info{MakeComputeInfo( |
| 66 | shader_stage, engine)} {} | 65 | shader_stage, engine)} {} |
| @@ -115,8 +114,7 @@ std::optional<Tegra::Engines::SamplerDescriptor> Registry::ObtainSeparateSampler | |||
| 115 | return value; | 114 | return value; |
| 116 | } | 115 | } |
| 117 | 116 | ||
| 118 | std::optional<Tegra::Engines::SamplerDescriptor> Registry::ObtainBindlessSampler(u32 buffer, | 117 | std::optional<SamplerDescriptor> Registry::ObtainBindlessSampler(u32 buffer, u32 offset) { |
| 119 | u32 offset) { | ||
| 120 | const std::pair key = {buffer, offset}; | 118 | const std::pair key = {buffer, offset}; |
| 121 | const auto iter = bindless_samplers.find(key); | 119 | const auto iter = bindless_samplers.find(key); |
| 122 | if (iter != bindless_samplers.end()) { | 120 | if (iter != bindless_samplers.end()) { |