anv: handle dynamic viewport count
authorTapani Pälli <tapani.palli@intel.com>
Wed, 10 Jun 2020 07:52:29 +0000 (10:52 +0300)
committerMarge Bot <eric+marge@anholt.net>
Sun, 2 Aug 2020 17:44:54 +0000 (17:44 +0000)
commitc34d8ac26e0a21c9036b4cfaf9e42c1e4298794f
tree4a3de011daaed4731b8867a9f0cda0377f71449f
parent11f3fb9a4e2fbb8f57cb770fc6f4c90ef3338cb0
anv: handle dynamic viewport count

Emit 3DSTATE_CLIP during cmd_buffer_flush_state so that we can change
the max viewport count dynamically.

v2: use one common clip state as size is the same for all gens (Lionel)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5604>
src/intel/vulkan/anv_genX.h
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c
src/intel/vulkan/genX_pipeline.c