glthread: align small buffer uploads to 4 bytes
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 13 Mar 2023 15:29:08 +0000 (11:29 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 15 Mar 2023 01:22:12 +0000 (01:22 +0000)
commit747c3ddb9dcd0e27acb1274ae2d35ae1eed4398a
tree4fed61552b2671996fff0a3fb82110aa2a8b2512
parent5ada09412f2632cd369a911a48433a9bcb318bfd
glthread: align small buffer uploads to 4 bytes

some apps (e.g., supertuxkart) use a ton of 4 byte subdata calls, and
this halves their memory consumption

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21875>
src/mesa/main/glthread_bufferobj.c