From 986d6f12fb4bddc1e01ce6f0ee0c2d4a4dbd8b40 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 28 Aug 2018 17:45:00 -0400 Subject: [PATCH] radeonsi: don't call VBO prefetch with size=0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit for the next commit. Tested-by: Dieter Nützel --- src/gallium/drivers/radeonsi/si_cp_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_cp_dma.c b/src/gallium/drivers/radeonsi/si_cp_dma.c index 598d5ecf0dc..ad53682b1b2 100644 --- a/src/gallium/drivers/radeonsi/si_cp_dma.c +++ b/src/gallium/drivers/radeonsi/si_cp_dma.c @@ -555,7 +555,7 @@ static void cik_prefetch_shader_async(struct si_context *sctx, static void cik_prefetch_VBO_descriptors(struct si_context *sctx) { - if (!sctx->vertex_elements) + if (!sctx->vertex_elements || !sctx->vertex_elements->desc_list_byte_size) return; cik_prefetch_TC_L2_async(sctx, &sctx->vb_descriptors_buffer->b.b, -- 2.30.2