Vulkan: Remove performance warning about depth clearing
When clearing depth attachment the write depth state should be enabled. When this isn't the case a clear texture is being performed. Before the render graph this used to be a performance issue as the rendering would be suspended. The render graph currently reorders these texture clears before of the rendering context and therefore isn't seen as a performance issue. Pull Request: https://projects.blender.org/blender/blender/pulls/124340
This commit is contained in:
@@ -185,11 +185,6 @@ void VKFrameBuffer::clear(const eGPUFrameBufferBits buffers,
|
||||
else {
|
||||
VKTexture *depth_texture = unwrap(unwrap(depth_tex()));
|
||||
if (depth_texture != nullptr) {
|
||||
if (G.debug & G_DEBUG_GPU) {
|
||||
std::cout
|
||||
<< "PERFORMANCE: impact clearing depth texture in render pass that doesn't allow "
|
||||
"depth writes.\n";
|
||||
}
|
||||
depth_texture->clear_depth_stencil(buffers, clear_depth, clear_stencil);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user