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)
committerDave Airlie <airlied@redhat.com>
Fri, 2 Nov 2018 04:15:07 +0000 (04:15 +0000)
commit677b496b6bd07cbe05dd429344ba525619cdd08c
tree61249f69a80af58937131ac49fb66e51ee01defe
parent7f37a52a21a15fc28b2c452fff54dd871d5dfe53
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>
src/amd/vulkan/radv_cmd_buffer.c