mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-03 07:10:08 +01:00
gpu: fix segfault on invalid depth format
This commit is contained in:
parent
5d1fb82cc4
commit
2432a5cc74
|
|
@ -187,7 +187,7 @@ void amdgpu::draw(GraphicsPipe &pipe, int vmId, std::uint32_t firstVertex,
|
|||
auto depthAccess = Access::None;
|
||||
auto stencilAccess = Access::None;
|
||||
|
||||
if (pipe.context.dbDepthControl.depthEnable) {
|
||||
if (pipe.context.dbDepthControl.depthEnable && pipe.context.dbZInfo.format != gnm::kZFormatInvalid) {
|
||||
if (!pipe.context.dbRenderControl.depthClearEnable) {
|
||||
depthAccess |= Access::Read;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue