pipeline_cache: Missed depth bias enable

This commit is contained in:
IndecisiveTurtle 2024-09-15 21:31:03 +03:00
parent 2cf31a3f5a
commit a93b830f04

View File

@ -210,6 +210,7 @@ bool PipelineCache::RefreshGraphicsKey() {
!regs.depth_render_control.depth_clear_enable; !regs.depth_render_control.depth_clear_enable;
key.depth_stencil.raw |= regs.depth_control.DepthState(); key.depth_stencil.raw |= regs.depth_control.DepthState();
key.depth_stencil.depth_write_enable.Assign(depth_write); key.depth_stencil.depth_write_enable.Assign(depth_write);
key.depth_bias_enable = regs.polygon_control.NeedsBias();
const auto ds_format = LiverpoolToVK::DepthFormat(db.z_info.format, db.stencil_info.format); const auto ds_format = LiverpoolToVK::DepthFormat(db.z_info.format, db.stencil_info.format);
if (db.z_info.format != AmdGpu::Liverpool::DepthBuffer::ZFormat::Invalid) { if (db.z_info.format != AmdGpu::Liverpool::DepthBuffer::ZFormat::Invalid) {