diff --git a/src/mesa/program/prog_parameter.c b/src/mesa/program/prog_parameter.c index 5c895d5d3e3..35d3e5906ad 100644 --- a/src/mesa/program/prog_parameter.c +++ b/src/mesa/program/prog_parameter.c @@ -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(); }