GPU/HW: Fix uninitialized pipeline fields

This commit is contained in:
Stenzek
2025-08-25 20:52:30 +10:00
parent de39ff5e9b
commit 63350c3d83
2 changed files with 4 additions and 0 deletions

View File

@@ -1768,6 +1768,7 @@ bool GPU_HW::CompileResolutionDependentPipelines(Error* error)
plconfig.geometry_shader = nullptr;
plconfig.samples = 1;
plconfig.per_sample_shading = false;
plconfig.render_pass_flags = GPUPipeline::NoRenderPassFlags;
plconfig.depth = GPUPipeline::DepthState::GetNoTestsState();
plconfig.blend = GPUPipeline::BlendState::GetNoBlendingState();
plconfig.vertex_shader = m_fullscreen_quad_vertex_shader.get();

View File

@@ -871,6 +871,9 @@ bool GPUTextureCache::CompilePipelines(Error* error)
plconfig.blend = GPUPipeline::BlendState::GetNoBlendingState();
plconfig.primitive = GPUPipeline::Primitive::Triangles;
plconfig.geometry_shader = nullptr;
plconfig.samples = 1;
plconfig.per_sample_shading = false;
plconfig.render_pass_flags = GPUPipeline::NoRenderPassFlags;
plconfig.SetTargetFormats(REPLACEMENT_TEXTURE_FORMAT);
// Most flags don't matter here.