From 19c5401eda9daf57b1dd5fbc131f43ac1a1d6f4e Mon Sep 17 00:00:00 2001 From: "Herman S." <429230+has207@users.noreply.github.com> Date: Mon, 9 Mar 2026 21:34:22 +0900 Subject: [PATCH] [GPU] Revert SPIR-V version back to 1.0 for internal shaders --- src/xenia/gpu/vulkan/vulkan_pipeline_cache.cc | 2 +- src/xenia/gpu/vulkan/vulkan_render_target_cache.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xenia/gpu/vulkan/vulkan_pipeline_cache.cc b/src/xenia/gpu/vulkan/vulkan_pipeline_cache.cc index e47d82637..4de93313f 100644 --- a/src/xenia/gpu/vulkan/vulkan_pipeline_cache.cc +++ b/src/xenia/gpu/vulkan/vulkan_pipeline_cache.cc @@ -1076,7 +1076,7 @@ VkShaderModule VulkanPipelineCache::GetGeometryShader(GeometryShaderKey key) { (key.has_user_clip_planes ? kMaxUserClipPlanes : 0) + key.has_vertex_kill_and; - SpirvBuilder builder(spv::Spv_1_5, + SpirvBuilder builder(spv::Spv_1_0, (SpirvShaderTranslator::kSpirvMagicToolId << 16) | 1, nullptr); spv::Id ext_inst_glsl_std_450 = builder.import("GLSL.std.450"); diff --git a/src/xenia/gpu/vulkan/vulkan_render_target_cache.cc b/src/xenia/gpu/vulkan/vulkan_render_target_cache.cc index ab2cde38c..67f6d2d32 100644 --- a/src/xenia/gpu/vulkan/vulkan_render_target_cache.cc +++ b/src/xenia/gpu/vulkan/vulkan_render_target_cache.cc @@ -2241,7 +2241,7 @@ VkShaderModule VulkanRenderTargetCache::GetTransferShader( std::vector id_vector_temp; std::vector uint_vector_temp; - SpirvBuilder builder(spv::Spv_1_5, + SpirvBuilder builder(spv::Spv_1_0, (SpirvShaderTranslator::kSpirvMagicToolId << 16) | 1, nullptr); spv::Id ext_inst_glsl_std_450 = builder.import("GLSL.std.450"); @@ -5506,7 +5506,7 @@ VkPipeline VulkanRenderTargetCache::GetDumpPipeline(DumpPipelineKey key) { std::vector id_vector_temp; - SpirvBuilder builder(spv::Spv_1_5, + SpirvBuilder builder(spv::Spv_1_0, (SpirvShaderTranslator::kSpirvMagicToolId << 16) | 1, nullptr); spv::Id ext_inst_glsl_std_450 = builder.import("GLSL.std.450");