Skip to content
Snippets Groups Projects
Commit ec124916 authored by Mike Blumenkrantz's avatar Mike Blumenkrantz :lifter: Committed by Marge Bot
Browse files

util/draw: fix indirect draw count readback


if there is an indirect count, always use it

Fixes: 3eb99323 ("aux/draw: add a util function for reading back indirect draw params")

Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
Part-of: <!15963>
parent 07437fa3
No related branches found
No related tags found
No related merge requests found
......@@ -150,8 +150,7 @@ util_draw_indirect_read(struct pipe_context *pipe,
debug_printf("%s: failed to map indirect draw count buffer\n", __FUNCTION__);
return NULL;
}
if (dc_param[0] < draw_count)
draw_count = dc_param[0];
draw_count = dc_param[0];
pipe_buffer_unmap(pipe, dc_transfer);
}
if (!draw_count) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment