util/indirect: handle stride less than number of parameters.
authorDave Airlie <airlied@redhat.com>
Mon, 20 Apr 2020 05:39:50 +0000 (15:39 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 27 Apr 2020 02:35:24 +0000 (12:35 +1000)
commite1c006204ff9fc32e66749b4cba9ea33b2c1af0a
treecdcfbde7535b43e55fb0b89fcbe347924e2d5070
parent23efd323aadaec5370aa9eedf3e8c76c5fe204f4
util/indirect: handle stride less than number of parameters.

It's legal to have a stride less than the num of parameters,
in this case no need to try and over map the buffer which asserts

Fixes:
GTF-GL45.gtf43.GL3Tests.multi_draw_indirect.multi_draw_indirect_stride

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4574>
src/gallium/auxiliary/util/u_draw.c