radv: fix optional pSizes parameter when binding streamout buffers
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 18 Mar 2020 17:49:23 +0000 (18:49 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 20 Mar 2020 08:25:14 +0000 (09:25 +0100)
commit2d3223ca90ae946231c1bfbfd1b450e5e96106a3
treeda2c31fc7ba222ca3e477875904c4433836ab165
parentfdc603292862dd2663b75d18e9abc6096b8020ff
radv: fix optional pSizes parameter when binding streamout buffers

The Vulkan spec 1.2.135 says:

   "pSizes is an optional array of buffer sizes, specifying the maximum
   number of bytes to capture to the corresponding transform feedback
   buffer. If pSizes is NULL, or the value of the pSizes array element
   is VK_WHOLE_SIZE, then the maximum bytes captured will be the size
   of the corresponding buffer minus the buffer offset."

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2650
Fixes: b4eb029062a ("radv: implement VK_EXT_transform_feedback")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4232>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4232>
src/amd/vulkan/radv_cmd_buffer.c