u_vbuf: fix potentially bogus assert
authorRob Clark <robdclark@gmail.com>
Sat, 30 Jul 2016 15:22:52 +0000 (11:22 -0400)
committerRob Clark <robdclark@gmail.com>
Mon, 1 Aug 2016 17:42:11 +0000 (13:42 -0400)
commit53b2b8bf6f12547a0dde25cfb8e6926ac144f5d8
tree5698253ee4293671dcb38ba637c324d33e122ab3
parente7c8c85785b3a8f29e3fc202988ac2414453586f
u_vbuf: fix potentially bogus assert

There are cases where we hit u_vbuf path due to alignment or pitch-
alignment restrictions, but for an output-format that u_vbuf does not
support translating (yet the driver does support natively).  In which
case we hit the memcpy() path and don't care that u_vbuf doesn't
understand it.

Fixes crash with debug build of mesa in:
dEQP-GLES3.functional.vertex_arrays.single_attribute.strides.fixed.user_ptr_stride17_components2_quads1

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95000
Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_vbuf.c