anv: Add an instance multiplier to anv_pipeline

This lets us get rid of the view_mask and pipeline replication logic
repeated all over everywhere.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17564>
This commit is contained in:
Jason Ekstrand
2022-07-07 11:43:12 -05:00
committed by Marge Bot
parent 6f25d45877
commit 1faba01c2b
4 changed files with 48 additions and 77 deletions

View File

@@ -3352,6 +3352,7 @@ struct anv_graphics_pipeline {
VkColorComponentFlags color_comp_writes[MAX_RTS];
uint32_t view_mask;
uint32_t instance_multiplier;
bool writes_depth;
bool depth_test_enable;