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:
@@ -770,9 +770,9 @@ lvp_get_physical_device_properties_1_1(struct lvp_physical_device *pdevice,
|
|||||||
p->deviceLUIDValid = false;
|
p->deviceLUIDValid = false;
|
||||||
p->deviceNodeMask = 0;
|
p->deviceNodeMask = 0;
|
||||||
|
|
||||||
p->subgroupSize = 0;
|
p->subgroupSize = 8;
|
||||||
p->subgroupSupportedStages = 0;
|
p->subgroupSupportedStages = VK_SHADER_STAGE_FRAGMENT_BIT | VK_SHADER_STAGE_COMPUTE_BIT;
|
||||||
p->subgroupSupportedOperations = 0;
|
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->subgroupQuadOperationsInAllStages = false;
|
||||||
|
|
||||||
p->pointClippingBehavior = VK_POINT_CLIPPING_BEHAVIOR_ALL_CLIP_PLANES;
|
p->pointClippingBehavior = VK_POINT_CLIPPING_BEHAVIOR_ALL_CLIP_PLANES;
|
||||||
|
@@ -472,6 +472,11 @@ lvp_shader_compile_to_ir(struct lvp_pipeline *pipeline,
|
|||||||
.multiview = true,
|
.multiview = true,
|
||||||
.physical_storage_buffer_address = true,
|
.physical_storage_buffer_address = true,
|
||||||
.int64_atomics = 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,
|
.ubo_addr_format = nir_address_format_32bit_index_offset,
|
||||||
.ssbo_addr_format = nir_address_format_32bit_index_offset,
|
.ssbo_addr_format = nir_address_format_32bit_index_offset,
|
||||||
|
Reference in New Issue
Block a user