mesa: improve relocation problem message

make it easier to immediately know what the problem is

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16851>
This commit is contained in:
Mike Blumenkrantz 2022-06-03 09:36:46 -04:00 committed by Marge Bot
parent 87aaa0f915
commit 3ec74cd1c7
1 changed files with 4 additions and 2 deletions

View File

@ -204,8 +204,10 @@ _mesa_reserve_parameter_storage(struct gl_program_parameter_list *paramList,
if (paramList->DisallowRealloc &&
(oldNum + reserve_params > paramList->Size ||
needSizeValues > paramList->SizeValues)) {
_mesa_problem(NULL, "Parameter storage reallocation disallowed. This "
"is a Mesa bug. Increase the reservation size in the code.");
_mesa_problem(NULL, "Parameter storage reallocation disallowed.\n"
"This is a Mesa bug.\n"
"Increase the reservation size in the code (wanted bytes %u, have %u || wanted values %u have %u).",
oldNum + reserve_params, paramList->Size, needSizeValues, paramList->SizeValues);
abort();
}