lavapipe: clean-ups in lvp_GetQueryPoolResults()
authorBrian Paul <brianp@vmware.com>
Wed, 5 Apr 2023 15:42:33 +0000 (09:42 -0600)
committerMarge Bot <emma+marge@anholt.net>
Tue, 25 Apr 2023 02:09:26 +0000 (02:09 +0000)
commit625a9d4c03a8f11b7e539db5a552405e045e72e4
tree07d54f79fcedaeb31e8c0ca1dd8b3253c47cb8d3
parent128e578c04cd775211cb4f1f2134e322086ab0ee
lavapipe: clean-ups in lvp_GetQueryPoolResults()

Simplify the code which puts query results into the destination
buffer:
* Use a uint64 or uint32 pointer instead of uint8 to write the results
  to the buffer for less casting and simplifient pointer incrementing.
* Use MIN2() macro to be more concise.
And fix some indentation.

Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22467>
src/gallium/frontends/lavapipe/lvp_query.c