diff options
author | Marek Olšák <[email protected]> | 2018-08-28 17:45:00 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-09-10 15:19:56 -0400 |
commit | 986d6f12fb4bddc1e01ce6f0ee0c2d4a4dbd8b40 (patch) | |
tree | 7b6e0e707092b17eec862e79bfa1876cea5fad22 /src/gallium | |
parent | 1119fe5c25db7ae6d5bf7480a3277f5ce91097f6 (diff) |
radeonsi: don't call VBO prefetch with size=0
for the next commit.
Tested-by: Dieter Nützel <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_cp_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |