summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-04-23 02:36:05 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-04-23 02:36:05 +0200
commitd9463f45622c74dff1a775e7d547cf44e627e65e (patch)
treeca32dbf10eb8eb71567731a4e449200d5286ff85
parentMerge pull request #3758 from H27CK/vk-cmd (diff)
downloadyuzu-d9463f45622c74dff1a775e7d547cf44e627e65e.tar
yuzu-d9463f45622c74dff1a775e7d547cf44e627e65e.tar.gz
yuzu-d9463f45622c74dff1a775e7d547cf44e627e65e.tar.bz2
yuzu-d9463f45622c74dff1a775e7d547cf44e627e65e.tar.lz
yuzu-d9463f45622c74dff1a775e7d547cf44e627e65e.tar.xz
yuzu-d9463f45622c74dff1a775e7d547cf44e627e65e.tar.zst
yuzu-d9463f45622c74dff1a775e7d547cf44e627e65e.zip
-rw-r--r--src/video_core/renderer_vulkan/vk_pipeline_cache.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
index 8fdc6400d..a792130fd 100644
--- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
@@ -330,8 +330,10 @@ VKPipelineCache::DecompileShaders(const GraphicsPipelineCacheKey& key) {
Specialization specialization;
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));
+ float point_size;
+ std::memcpy(&point_size, &fixed_state.rasterizer.point_size, sizeof(float));
+ specialization.point_size = point_size;
+ ASSERT(point_size != 0.0f);
}
for (std::size_t i = 0; i < Maxwell::NumVertexAttributes; ++i) {
specialization.attribute_types[i] = fixed_state.vertex_input.attributes[i].Type();