gallium/u_threaded: set has_user_indices = false for merged draws
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Wed, 9 Dec 2020 16:39:52 +0000 (17:39 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 10 Dec 2020 09:17:45 +0000 (09:17 +0000)
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 <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8004>

src/gallium/auxiliary/util/u_threaded_context.c

index 1c23aae..05dfb2e 100644 (file)
@@ -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;