tu,radv: fix potentially wrong offset of flexible array.
authorHyunjun Ko <zzoon@igalia.com>
Wed, 1 Jul 2020 03:13:40 +0000 (03:13 +0000)
committerMarge Bot <eric+marge@anholt.net>
Fri, 3 Jul 2020 00:45:16 +0000 (00:45 +0000)
commit9190cc9b151004ffec1c6f8c10983853c19af8d2
tree747b897e5f0fc0c48933052b356d8a4407d66123
parente2209e869a5560cb12de040aa5f9db4a305111e8
tu,radv: fix potentially wrong offset of flexible array.

v2. Remove redundant memset and make the expression simpler.

Signed-off-by: Hyunjun Ko <zzoon@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5703>
src/amd/vulkan/radv_descriptor_set.c
src/freedreno/vulkan/tu_descriptor_set.c