diff options
author | Liam <byteslice@airmail.cc> | 2023-09-22 05:12:45 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-09-22 06:39:09 +0200 |
commit | 1e24d024342d94a54831623d59305eab8ff4e06f (patch) | |
tree | db8077f366b44238e341a205524056e3de46ec38 /src/shader_recompiler/backend/spirv/spirv_emit_context.cpp | |
parent | Merge pull request #11564 from t895/overlay-inset-fix (diff) | |
download | yuzu-1e24d024342d94a54831623d59305eab8ff4e06f.tar yuzu-1e24d024342d94a54831623d59305eab8ff4e06f.tar.gz yuzu-1e24d024342d94a54831623d59305eab8ff4e06f.tar.bz2 yuzu-1e24d024342d94a54831623d59305eab8ff4e06f.tar.lz yuzu-1e24d024342d94a54831623d59305eab8ff4e06f.tar.xz yuzu-1e24d024342d94a54831623d59305eab8ff4e06f.tar.zst yuzu-1e24d024342d94a54831623d59305eab8ff4e06f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/backend/spirv/spirv_emit_context.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp index 72f69b7aa..57df6fc34 100644 --- a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp +++ b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp @@ -74,11 +74,6 @@ spv::ImageFormat GetImageFormat(ImageFormat format) { throw InvalidArgument("Invalid image format {}", format); } -spv::ImageFormat GetImageFormatForBuffer(ImageFormat format) { - const auto spv_format = GetImageFormat(format); - return spv_format == spv::ImageFormat::Unknown ? spv::ImageFormat::R32ui : spv_format; -} - Id ImageType(EmitContext& ctx, const ImageDescriptor& desc) { const spv::ImageFormat format{GetImageFormat(desc.format)}; const Id type{ctx.U32[1]}; @@ -1275,7 +1270,7 @@ void EmitContext::DefineImageBuffers(const Info& info, u32& binding) { if (desc.count != 1) { throw NotImplementedException("Array of image buffers"); } - const spv::ImageFormat format{GetImageFormatForBuffer(desc.format)}; + const spv::ImageFormat format{GetImageFormat(desc.format)}; const Id image_type{TypeImage(U32[1], spv::Dim::Buffer, false, false, false, 2, format)}; const Id pointer_type{TypePointer(spv::StorageClass::UniformConstant, image_type)}; const Id id{AddGlobalVariable(pointer_type, spv::StorageClass::UniformConstant)}; |