lavapipe: enable subgroups features

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9645>
This commit is contained in:
Dave Airlie
2021-03-19 12:05:01 +10:00
committed by Marge Bot
parent 50049bd241
commit 34525bb088
2 changed files with 8 additions and 3 deletions

View File

@@ -770,9 +770,9 @@ lvp_get_physical_device_properties_1_1(struct lvp_physical_device *pdevice,
p->deviceLUIDValid = false;
p->deviceNodeMask = 0;
p->subgroupSize = 0;
p->subgroupSupportedStages = 0;
p->subgroupSupportedOperations = 0;
p->subgroupSize = 8;
p->subgroupSupportedStages = VK_SHADER_STAGE_FRAGMENT_BIT | VK_SHADER_STAGE_COMPUTE_BIT;
p->subgroupSupportedOperations = VK_SUBGROUP_FEATURE_BASIC_BIT | VK_SUBGROUP_FEATURE_VOTE_BIT | VK_SUBGROUP_FEATURE_ARITHMETIC_BIT | VK_SUBGROUP_FEATURE_BALLOT_BIT;
p->subgroupQuadOperationsInAllStages = false;
p->pointClippingBehavior = VK_POINT_CLIPPING_BEHAVIOR_ALL_CLIP_PLANES;

View File

@@ -472,6 +472,11 @@ lvp_shader_compile_to_ir(struct lvp_pipeline *pipeline,
.multiview = true,
.physical_storage_buffer_address = true,
.int64_atomics = true,
.subgroup_arithmetic = true,
.subgroup_basic = true,
.subgroup_ballot = true,
.subgroup_quad = true,
.subgroup_vote = true,
},
.ubo_addr_format = nir_address_format_32bit_index_offset,
.ssbo_addr_format = nir_address_format_32bit_index_offset,