anv: implement VK_EXT_graphics_pipeline_library
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15637>
This commit is contained in:

committed by
Marge Bot

parent
0b8a2de2a1
commit
3d49cdb71e
@@ -316,6 +316,10 @@ anv_check_for_primitive_replication(struct anv_device *device,
|
||||
if (stages & ~(VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT))
|
||||
return false;
|
||||
|
||||
/* It's possible we have no vertex shader yet (with pipeline libraries) */
|
||||
if (!(stages & VK_SHADER_STAGE_VERTEX_BIT))
|
||||
return false;
|
||||
|
||||
int view_count = util_bitcount(view_mask);
|
||||
if (view_count == 1 || view_count > primitive_replication_max_views)
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user