v3dv: remove blit shader restriction on depth/stencil not being linear

We can't render to linear depth/stencil formats but the blit shader
automatically converts D/S blits to compatible color blits where we
don't have this restriction.

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29597>
This commit is contained in:
Iago Toral Quiroga 2024-06-06 11:23:15 +02:00
parent 467230e7e4
commit 993ba4135c

View file

@ -4362,11 +4362,6 @@ blit_shader(struct v3dv_cmd_buffer *cmd_buffer,
bool handled = true;
VkResult result;
/* We don't support rendering to linear depth/stencil, this should have
* been rewritten to a compatible color blit by the caller.
*/
assert(dst->tiled || !vk_format_is_depth_or_stencil(dst_format));
/* Can't sample from linear images */
if (!src->tiled && src->vk.image_type != VK_IMAGE_TYPE_1D) {
return false;