radv: compute the number of records correctly for vertex buffers
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 21 Oct 2019 16:41:33 +0000 (18:41 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 24 Oct 2019 15:14:43 +0000 (17:14 +0200)
commit4b17311e528dcf8268c2903297ab629495da5bc7
tree859c941f089acc4988d0902ca4c1c1d28cb1bd8b
parent75cc8c0b82f2907987a46d5cf0e91b73ac0c8ff7
radv: compute the number of records correctly for vertex buffers

On GFX8 the number of records is in bytes while on other chips
it's in units of "stride".

Fixes dEQP-VK.robustness.vertex_access.*.draw.vertex_* on RAVEN.

Tested on GFX6, GFX8, GFX10 and RAVEN.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c