summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm.cpp2
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv_instructions.h2
-rw-r--r--src/shader_recompiler/frontend/ir/ir_emitter.h4
-rw-r--r--src/shader_recompiler/frontend/ir/value.h4
-rw-r--r--src/shader_recompiler/frontend/maxwell/control_flow.cpp2
-rw-r--r--src/shader_recompiler/object_pool.h1
-rw-r--r--src/video_core/renderer_vulkan/vk_compute_pass.cpp2
-rw-r--r--src/yuzu/configuration/configure_graphics.cpp2
8 files changed, 11 insertions, 8 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm.cpp b/src/shader_recompiler/backend/glasm/emit_glasm.cpp
index a5e8c9b6e..4ce1c4f54 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm.cpp
@@ -350,7 +350,7 @@ std::string_view InputPrimitive(InputTopology topology) {
350 case InputTopology::Lines: 350 case InputTopology::Lines:
351 return "LINES"; 351 return "LINES";
352 case InputTopology::LinesAdjacency: 352 case InputTopology::LinesAdjacency:
353 return "LINESS_ADJACENCY"; 353 return "LINES_ADJACENCY";
354 case InputTopology::Triangles: 354 case InputTopology::Triangles:
355 return "TRIANGLES"; 355 return "TRIANGLES";
356 case InputTopology::TrianglesAdjacency: 356 case InputTopology::TrianglesAdjacency:
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_instructions.h b/src/shader_recompiler/backend/spirv/emit_spirv_instructions.h
index f99c02848..c9db1c164 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv_instructions.h
+++ b/src/shader_recompiler/backend/spirv/emit_spirv_instructions.h
@@ -2,6 +2,8 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#pragma once
6
5#include <sirit/sirit.h> 7#include <sirit/sirit.h>
6 8
7#include "common/common_types.h" 9#include "common/common_types.h"
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.h b/src/shader_recompiler/frontend/ir/ir_emitter.h
index 53f7b3b06..1b89ca5a0 100644
--- a/src/shader_recompiler/frontend/ir/ir_emitter.h
+++ b/src/shader_recompiler/frontend/ir/ir_emitter.h
@@ -327,8 +327,8 @@ public:
327 const Value& derivates, const Value& offset, 327 const Value& derivates, const Value& offset,
328 const F32& lod_clamp, TextureInstInfo info); 328 const F32& lod_clamp, TextureInstInfo info);
329 [[nodiscard]] Value ImageRead(const Value& handle, const Value& coords, TextureInstInfo info); 329 [[nodiscard]] Value ImageRead(const Value& handle, const Value& coords, TextureInstInfo info);
330 [[nodiscard]] void ImageWrite(const Value& handle, const Value& coords, const Value& color, 330 void ImageWrite(const Value& handle, const Value& coords, const Value& color,
331 TextureInstInfo info); 331 TextureInstInfo info);
332 332
333 [[nodiscard]] Value ImageAtomicIAdd(const Value& handle, const Value& coords, 333 [[nodiscard]] Value ImageAtomicIAdd(const Value& handle, const Value& coords,
334 const Value& value, TextureInstInfo info); 334 const Value& value, TextureInstInfo info);
diff --git a/src/shader_recompiler/frontend/ir/value.h b/src/shader_recompiler/frontend/ir/value.h
index 0c6bf684d..795194d41 100644
--- a/src/shader_recompiler/frontend/ir/value.h
+++ b/src/shader_recompiler/frontend/ir/value.h
@@ -197,8 +197,8 @@ public:
197 } 197 }
198 198
199 template <typename FlagsType> 199 template <typename FlagsType>
200 requires(sizeof(FlagsType) <= sizeof(u32) && std::is_trivially_copyable_v<FlagsType>) 200 requires(sizeof(FlagsType) <= sizeof(u32) &&
201 [[nodiscard]] void SetFlags(FlagsType value) noexcept { 201 std::is_trivially_copyable_v<FlagsType>) void SetFlags(FlagsType value) noexcept {
202 std::memcpy(&flags, &value, sizeof(value)); 202 std::memcpy(&flags, &value, sizeof(value));
203 } 203 }
204 204
diff --git a/src/shader_recompiler/frontend/maxwell/control_flow.cpp b/src/shader_recompiler/frontend/maxwell/control_flow.cpp
index 1a954a509..efe457baa 100644
--- a/src/shader_recompiler/frontend/maxwell/control_flow.cpp
+++ b/src/shader_recompiler/frontend/maxwell/control_flow.cpp
@@ -73,7 +73,7 @@ Token OpcodeToken(Opcode opcode) {
73 return Token::PBK; 73 return Token::PBK;
74 case Opcode::PCNT: 74 case Opcode::PCNT:
75 case Opcode::CONT: 75 case Opcode::CONT:
76 return Token::PBK; 76 return Token::PCNT;
77 case Opcode::PEXIT: 77 case Opcode::PEXIT:
78 case Opcode::EXIT: 78 case Opcode::EXIT:
79 return Token::PEXIT; 79 return Token::PEXIT;
diff --git a/src/shader_recompiler/object_pool.h b/src/shader_recompiler/object_pool.h
index f8b255b66..f3b12d04b 100644
--- a/src/shader_recompiler/object_pool.h
+++ b/src/shader_recompiler/object_pool.h
@@ -63,6 +63,7 @@ private:
63 used_objects = std::exchange(rhs.used_objects, 0); 63 used_objects = std::exchange(rhs.used_objects, 0);
64 num_objects = std::exchange(rhs.num_objects, 0); 64 num_objects = std::exchange(rhs.num_objects, 0);
65 storage = std::move(rhs.storage); 65 storage = std::move(rhs.storage);
66 return *this;
66 } 67 }
67 68
68 Chunk(Chunk&& rhs) noexcept 69 Chunk(Chunk&& rhs) noexcept
diff --git a/src/video_core/renderer_vulkan/vk_compute_pass.cpp b/src/video_core/renderer_vulkan/vk_compute_pass.cpp
index 8e426ce2c..73157a15d 100644
--- a/src/video_core/renderer_vulkan/vk_compute_pass.cpp
+++ b/src/video_core/renderer_vulkan/vk_compute_pass.cpp
@@ -326,7 +326,7 @@ std::pair<VkBuffer, VkDeviceSize> QuadIndexedPass::Assemble(
326 .sType = VK_STRUCTURE_TYPE_MEMORY_BARRIER, 326 .sType = VK_STRUCTURE_TYPE_MEMORY_BARRIER,
327 .pNext = nullptr, 327 .pNext = nullptr,
328 .srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT, 328 .srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT,
329 .dstAccessMask = VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT, 329 .dstAccessMask = VK_ACCESS_INDEX_READ_BIT,
330 }; 330 };
331 const std::array push_constants{base_vertex, index_shift}; 331 const std::array push_constants{base_vertex, index_shift};
332 const VkDescriptorSet set = descriptor_allocator.Commit(); 332 const VkDescriptorSet set = descriptor_allocator.Commit();
diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cpp
index fef211707..1bc477c96 100644
--- a/src/yuzu/configuration/configure_graphics.cpp
+++ b/src/yuzu/configuration/configure_graphics.cpp
@@ -31,7 +31,7 @@ ConfigureGraphics::ConfigureGraphics(QWidget* parent)
31 } 31 }
32 32
33 ui->backend->addItem(QStringLiteral("GLSL")); 33 ui->backend->addItem(QStringLiteral("GLSL"));
34 ui->backend->addItem(tr("GLASM (NVIDIA Only)")); 34 ui->backend->addItem(tr("GLASM (Assembly Shaders, NVIDIA Only)"));
35 ui->backend->addItem(QStringLiteral("SPIR-V (Experimental, Mesa Only)")); 35 ui->backend->addItem(QStringLiteral("SPIR-V (Experimental, Mesa Only)"));
36 36
37 SetupPerGameUI(); 37 SetupPerGameUI();