diff options context: 1 2 3 4 5 6 7 8 9 10 15 20 25 30 35 40 space: include ignore mode: unified ssdiff stat only

author Erico Nunes <nunes.erico@gmail.com> 2020-09-10 00:02:38 +0200 committer Erico Nunes <nunes.erico@gmail.com> 2020-09-19 11:53:28 +0200 commit 95ee0ba41f0c53fe651b9fc12d57b1eb62eea539 (patch) tree 7eb796965332d79300de55d10d5b927d72152394 parent 6a1926035bd5d0fb39ab3c7de7662cc552a5dc02 (diff)

HEADmaster lima: fix vertex shader uniform buffer size

In some cases when switching shader programs, mesa does not switch the currently set pipe_constant_buffer, which keeps pointing to the one previously set. If the two shader programs have a different number of uniforms, the size of the constant buffer may be different and this needs to be considered while generating the next draw command. This patch fixes the uniform buffer creation in the lima vertex shader command to avoid an out of bounds memcpy due to a previously set pipe_constant_buffer. Signed-off-by: Erico Nunes <nunes.erico@gmail.com> Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6701>

3 files changed, 14 insertions, 13 deletions