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:
parent
87aaa0f915
commit
3ec74cd1c7
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue