panvk: Fix panvk_copy_fb_desc()

We should not skip the copy when the batch is attached a framebuffer
descriptor, quite the opposite. Let's drop the check instead of reversing
it since we are guaranteed to have an FB attached when
panvk_copy_fb_desc() is called.

Fixes: 792a0ab0b1 ("panvk: Prepare per-gen split")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12590>
This commit is contained in:
Boris Brezillon 2021-08-27 13:00:20 +02:00
parent d84dedc48f
commit 5a4fcb42f7

View file

@ -99,10 +99,6 @@ static void
panvk_copy_fb_desc(struct panvk_cmd_buffer *cmdbuf, void *src)
{
struct panvk_batch *batch = cmdbuf->state.batch;
if (batch->fb.desc.gpu)
return;
const struct panvk_subpass *subpass = cmdbuf->state.subpass;
uint32_t size = pan_size(MULTI_TARGET_FRAMEBUFFER);