intel/tools: Handle strides better when dumping buffers
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 30 Jan 2020 17:35:52 +0000 (11:35 -0600)
committerMarge Bot <eric+marge@anholt.net>
Fri, 31 Jan 2020 17:23:39 +0000 (17:23 +0000)
commit9a95abd0f755331503e283354b44b639865f1329
tree8380d11c4b600c5a17d5f98619ad42c89b3f9ecf
parent51d7c42165d2344d0019299d42b34c07f7f5e8d0
intel/tools: Handle strides better when dumping buffers

The old code would only break at stride boundaries if the stride was
less than 32B; otherwise it would just break every 32B.  This commit
makes it break at stride boundaries and 32B boundaries (starting from
the last stride).  This makes reading large vertex buffers in aubinator
much nicer.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3642>
src/intel/common/gen_batch_decoder.c