diff options
| author | 2020-04-16 22:27:19 -0400 | |
|---|---|---|
| committer | 2020-04-16 22:27:21 -0400 | |
| commit | 7e2d60de26748bfd74c3d8983f85f8c82882167e (patch) | |
| tree | 7a8c3f046b5946e5f3bb1bd8666c33686f78effc /src | |
| parent | time_zone_manager: Resolve sign conversion warnings (diff) | |
| download | yuzu-7e2d60de26748bfd74c3d8983f85f8c82882167e.tar.gz yuzu-7e2d60de26748bfd74c3d8983f85f8c82882167e.tar.xz yuzu-7e2d60de26748bfd74c3d8983f85f8c82882167e.zip | |
decode/texture: Eliminate trivial missing field initializer warnings
We can just specify the initializers.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/shader/decode/texture.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/shader/decode/texture.cpp b/src/video_core/shader/decode/texture.cpp index 6c4a1358b..cc6491323 100644 --- a/src/video_core/shader/decode/texture.cpp +++ b/src/video_core/shader/decode/texture.cpp | |||
| @@ -139,7 +139,7 @@ u32 ShaderIR::DecodeTexture(NodeBlock& bb, u32 pc) { | |||
| 139 | } | 139 | } |
| 140 | const Node component = Immediate(static_cast<u32>(instr.tld4s.component)); | 140 | const Node component = Immediate(static_cast<u32>(instr.tld4s.component)); |
| 141 | 141 | ||
| 142 | const SamplerInfo info{TextureType::Texture2D, false, is_depth_compare}; | 142 | const SamplerInfo info{TextureType::Texture2D, false, is_depth_compare, false}; |
| 143 | const Sampler& sampler = *GetSampler(instr.sampler, info); | 143 | const Sampler& sampler = *GetSampler(instr.sampler, info); |
| 144 | 144 | ||
| 145 | Node4 values; | 145 | Node4 values; |
| @@ -171,8 +171,9 @@ u32 ShaderIR::DecodeTexture(NodeBlock& bb, u32 pc) { | |||
| 171 | const auto coord_count = GetCoordCount(texture_type); | 171 | const auto coord_count = GetCoordCount(texture_type); |
| 172 | Node index_var{}; | 172 | Node index_var{}; |
| 173 | const Sampler* sampler = | 173 | const Sampler* sampler = |
| 174 | is_bindless ? GetBindlessSampler(base_reg, index_var, {{texture_type, is_array, false}}) | 174 | is_bindless |
| 175 | : GetSampler(instr.sampler, {{texture_type, is_array, false}}); | 175 | ? GetBindlessSampler(base_reg, index_var, {{texture_type, is_array, false, false}}) |
| 176 | : GetSampler(instr.sampler, {{texture_type, is_array, false, false}}); | ||
| 176 | Node4 values; | 177 | Node4 values; |
| 177 | if (sampler == nullptr) { | 178 | if (sampler == nullptr) { |
| 178 | for (u32 element = 0; element < values.size(); ++element) { | 179 | for (u32 element = 0; element < values.size(); ++element) { |