summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/spirv/emit_spirv.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2024-02-22 18:30:26 +0100
committerGitHub <noreply@github.com>2024-02-22 18:30:26 +0100
commit4f95ee52097762fcd53c135fcf07511898c48194 (patch)
tree1773373bf6c4b9b2556e7352b5de469bd9859695 /src/shader_recompiler/backend/spirv/emit_spirv.cpp
parentMerge pull request #13105 from t895/connection-fix (diff)
parentshader_recompiler: throw on missing geometry streams in geometry shaders (diff)
downloadyuzu-4f95ee52097762fcd53c135fcf07511898c48194.tar
yuzu-4f95ee52097762fcd53c135fcf07511898c48194.tar.gz
yuzu-4f95ee52097762fcd53c135fcf07511898c48194.tar.bz2
yuzu-4f95ee52097762fcd53c135fcf07511898c48194.tar.lz
yuzu-4f95ee52097762fcd53c135fcf07511898c48194.tar.xz
yuzu-4f95ee52097762fcd53c135fcf07511898c48194.tar.zst
yuzu-4f95ee52097762fcd53c135fcf07511898c48194.zip
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_spirv.cpp')
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.cpp b/src/shader_recompiler/backend/spirv/emit_spirv.cpp
index 0031fa5fb..3f9698d6b 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_spirv.cpp
@@ -261,7 +261,9 @@ void DefineEntryPoint(const IR::Program& program, EmitContext& ctx, Id main) {
case Stage::Geometry:
execution_model = spv::ExecutionModel::Geometry;
ctx.AddCapability(spv::Capability::Geometry);
- ctx.AddCapability(spv::Capability::GeometryStreams);
+ if (ctx.profile.support_geometry_streams) {
+ ctx.AddCapability(spv::Capability::GeometryStreams);
+ }
switch (ctx.runtime_info.input_topology) {
case InputTopology::Points:
ctx.AddExecutionMode(main, spv::ExecutionMode::InputPoints);