mesa: replace ParameterValueOffset[i] with Parameters[i].ValueOffset

to merge both arrays and remove malloc because both arrays have
the same size.

Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6946>
This commit is contained in:
Marek Olšák
2020-11-22 03:39:56 -05:00
committed by Marge Bot
parent 1755a5a384
commit 4679a3855f
17 changed files with 31 additions and 36 deletions

View File

@@ -2556,7 +2556,7 @@ _mesa_associate_uniform_storage(struct gl_context *ctx,
break;
}
unsigned pvo = params->ParameterValueOffset[i];
unsigned pvo = params->Parameters[i].ValueOffset;
_mesa_uniform_attach_driver_storage(storage, dmul * columns, dmul,
format,
&params->ParameterValues[pvo]);