OSDN Git Service

radv: fix begin/end transform feedback with 0 counter buffers.
authorDave Airlie <airlied@redhat.com>
Wed, 31 Oct 2018 23:55:29 +0000 (23:55 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 7 Nov 2018 17:20:50 +0000 (17:20 +0000)
commit52e01585c4714c0bfcf04b4a4e99319f08ef13bf
tree5138a4bbf9c848102105a2ff91681a966768491c
parent12c5eb2fd3fbd7725b169dccc32c9b29b1d0a8d0
radv: fix begin/end transform feedback with 0 counter buffers.

If the user gives 0 counterBuffers then the driver should still
enable transform feedback on all targets. This changes the
driver to always enable xfb, and use counter buffers where
one is defined for the target in question.

Fixes: b4eb029062 (radv: implement VK_EXT_transform_feedback)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
(cherry picked from commit 677b496b6bd07cbe05dd429344ba525619cdd08c)
src/amd/vulkan/radv_cmd_buffer.c