From 7c85b1d2f0ff951de741c480cfd6e00ba3eb5486 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Wed, 9 Dec 2020 17:39:52 +0100 Subject: [PATCH] gallium/u_threaded: set has_user_indices = false for merged draws MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes an assert when running this piglit test: arb_shader_draw_parameters-drawid-single-draw Fixes: 351ba767afe ("gallium/u_threaded: set has_user_indices = false in the driver thread") Reviewed-by: Marek Olšák Part-of: --- src/gallium/auxiliary/util/u_threaded_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/auxiliary/util/u_threaded_context.c b/src/gallium/auxiliary/util/u_threaded_context.c index 1c23aae..05dfb2e 100644 --- a/src/gallium/auxiliary/util/u_threaded_context.c +++ b/src/gallium/auxiliary/util/u_threaded_context.c @@ -98,6 +98,7 @@ simplify_draw_info(struct pipe_draw_info *info) /* Clear these fields to facilitate draw merging. * Drivers shouldn't use them. */ + info->has_user_indices = false; info->index_bounds_valid = false; info->_pad = 0; -- 2.7.4