radv/winsys: spoof some values for num_render_backends in the null winsys
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 6 Mar 2020 09:23:41 +0000 (10:23 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 23 Mar 2020 08:50:53 +0000 (09:50 +0100)
commitde550805c5d96b17e7b7db4a0c62b29db354fd74
tree94a08cae8598d10c767130f8ef0e78f0ec3ad90f
parentb911af06cd68d09b3813eab672e840ec4e76153b
radv/winsys: spoof some values for num_render_backends in the null winsys

To avoid crashes when RADV_FORCE_FAMILY is set to GFX9+ because
num_render_backends is used to compute binning state.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4282>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4282>
src/amd/vulkan/winsys/null/radv_null_winsys.c