radv: set the correct buffer size for NGG streamout
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 1 Nov 2022 08:11:17 +0000 (09:11 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 1 Nov 2022 09:41:36 +0000 (10:41 +0100)
commitd467ff7b0e3f213325acdfa56daacc02eb82a16d
treed895429f37a40710e1de4c3eec840050cef8198b
parent3b9f36db47702a49e43beaeabe7025d73503a2a3
radv: set the correct buffer size for NGG streamout

If the size is passed through CmdBindTransformFeedback() uses that.

This partially fixes dEQP-VK.transform_feedback.simple.multiquery_1
by reporting the correct number of primitives written (the computation
is based on the buffer size). There is still a bug around GDS offsets
that will be fixed later.

Tested on GFX10.3 by forcing NGG streamout.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19433>
src/amd/vulkan/radv_cmd_buffer.c