panfrost: Don't copy uniforms when the size is zero
authorIcecream95 <ixn@keemail.me>
Fri, 24 Jan 2020 06:45:17 +0000 (19:45 +1300)
committerMarge Bot <eric+marge@anholt.net>
Mon, 27 Jan 2020 13:23:34 +0000 (13:23 +0000)
commit800487488535e6042101930b96c61af184170614
tree167c6fc4dc4ddc584ddb8d7af32205736b6bf49b
parent951083768b351b0700bdcc02758670e505cce974
panfrost: Don't copy uniforms when the size is zero

This fixes a crash when using Gallium HUD with QuakeSpasm when gamma
correction shaders (a QuakeSpasm feature, not part of Mesa) are used.

Reviewd-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3549>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3549>
src/gallium/drivers/panfrost/pan_context.c