Skip to content

Commit 63350c3

Browse files
committed
GPU/HW: Fix uninitialized pipeline fields
1 parent de39ff5 commit 63350c3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/core/gpu_hw.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,6 +1768,7 @@ bool GPU_HW::CompileResolutionDependentPipelines(Error* error)
17681768
plconfig.geometry_shader = nullptr;
17691769
plconfig.samples = 1;
17701770
plconfig.per_sample_shading = false;
1771+
plconfig.render_pass_flags = GPUPipeline::NoRenderPassFlags;
17711772
plconfig.depth = GPUPipeline::DepthState::GetNoTestsState();
17721773
plconfig.blend = GPUPipeline::BlendState::GetNoBlendingState();
17731774
plconfig.vertex_shader = m_fullscreen_quad_vertex_shader.get();

src/core/gpu_hw_texture_cache.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,9 @@ bool GPUTextureCache::CompilePipelines(Error* error)
871871
plconfig.blend = GPUPipeline::BlendState::GetNoBlendingState();
872872
plconfig.primitive = GPUPipeline::Primitive::Triangles;
873873
plconfig.geometry_shader = nullptr;
874+
plconfig.samples = 1;
875+
plconfig.per_sample_shading = false;
876+
plconfig.render_pass_flags = GPUPipeline::NoRenderPassFlags;
874877
plconfig.SetTargetFormats(REPLACEMENT_TEXTURE_FORMAT);
875878

876879
// Most flags don't matter here.

0 commit comments

Comments
 (0)