summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-04-18 09:03:29 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-04-19 00:22:57 +0200
commit548dd27f4567f751d54073f1408d6f8949344fa9 (patch)
treeb77bdf3235fb45bac3e6fee37d5728054b7dd5ef /src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
parentfixed_pipeline_state: Pack depth stencil state (diff)
downloadyuzu-548dd27f4567f751d54073f1408d6f8949344fa9.tar
yuzu-548dd27f4567f751d54073f1408d6f8949344fa9.tar.gz
yuzu-548dd27f4567f751d54073f1408d6f8949344fa9.tar.bz2
yuzu-548dd27f4567f751d54073f1408d6f8949344fa9.tar.lz
yuzu-548dd27f4567f751d54073f1408d6f8949344fa9.tar.xz
yuzu-548dd27f4567f751d54073f1408d6f8949344fa9.tar.zst
yuzu-548dd27f4567f751d54073f1408d6f8949344fa9.zip
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_pipeline_cache.cpp')
-rw-r--r--src/video_core/renderer_vulkan/vk_pipeline_cache.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
index 083da9999..8fdc6400d 100644
--- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
@@ -329,9 +329,9 @@ VKPipelineCache::DecompileShaders(const GraphicsPipelineCacheKey& key) {
const auto& gpu = system.GPU().Maxwell3D();
Specialization specialization;
- if (fixed_state.input_assembly.topology == Maxwell::PrimitiveTopology::Points) {
- ASSERT(fixed_state.input_assembly.point_size != 0.0f);
- specialization.point_size = fixed_state.input_assembly.point_size;
+ if (fixed_state.rasterizer.Topology() == Maxwell::PrimitiveTopology::Points) {
+ ASSERT(fixed_state.rasterizer.point_size != 0);
+ std::memcpy(&specialization.point_size, &fixed_state.rasterizer.point_size, sizeof(u32));
}
for (std::size_t i = 0; i < Maxwell::NumVertexAttributes; ++i) {
specialization.attribute_types[i] = fixed_state.vertex_input.attributes[i].Type();