radv: Expose radv_get_viewport_xform in radv_private.h
authorTimur Kristóf <timur.kristof@gmail.com>
Mon, 7 Jun 2021 21:43:27 +0000 (23:43 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Jul 2021 23:56:33 +0000 (23:56 +0000)
commited163a44b6a73ffac93fa40ee0eee5f7598cd54d
tree63aac804f0a00df9e2a3635a245b98271f2df20e
parente97f0463a8f55d5d407178f74b0cdb916a42aef8
radv: Expose radv_get_viewport_xform in radv_private.h

We need to emit viewport transform information for culling shaders.
This is used for small primitive culling.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10525>
src/amd/vulkan/radv_private.h
src/amd/vulkan/si_cmd_buffer.c