glthread: fix buffer allocation size with non-signed buffer offset path
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 7 Oct 2022 04:42:08 +0000 (00:42 -0400)
committerMarge Bot <emma+marge@anholt.net>
Sat, 15 Oct 2022 16:02:38 +0000 (16:02 +0000)
commit07c654e08fdf1e0fdaf55db9b18c055b15e8f0df
tree9f7123fdea152d033b89010916268daa5e6a6071
parent9fc4cb8067e54ae79751900739739592fa89f309
glthread: fix buffer allocation size with non-signed buffer offset path

this needs to always add the start_offset to avoid creating
buffers that are too small

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18994>
src/mesa/main/glthread_bufferobj.c