Module: Mesa Branch: master Commit: 986d6f12fb4bddc1e01ce6f0ee0c2d4a4dbd8b40 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=986d6f12fb4bddc1e01ce6f0ee0c2d4a4dbd8b40
Author: Marek Olšák <[email protected]> Date: Tue Aug 28 17:45:00 2018 -0400 radeonsi: don't call VBO prefetch with size=0 for the next commit. Tested-by: Dieter Nützel <[email protected]> --- 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 598d5ecf0d..ad53682b1b 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, _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
