radv: Don't use the depth image view for depth bias emission
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Sat, 2 Sep 2023 20:33:58 +0000 (22:33 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 8 Sep 2023 19:26:59 +0000 (19:26 +0000)
commit28e1e33c32bd1c58ff20c7c9b5801f6c56a5734b
tree4a99d55d8e17d884c25e4d1a1dd46eea6c065636
parent4171d9ff849d2d75c11111761ced049749bc9927
radv: Don't use the depth image view for depth bias emission

If the application records a secondary command buffer that inherits
a render pass without specifying a framebuffer, we should still be able
to emit the depth bias state properly.

Fixes: 266b2cf ("radv: implement VK_EXT_depth_bias_control")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9588
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25018>
src/amd/vulkan/radv_cmd_buffer.c