Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/asahi/vulkan/hk_shader.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,10 +611,12 @@ hk_preprocess_nir_internal(struct vk_physical_device *vk_pdev, nir_shader *nir)
((struct hk_physical_device *)vk_pdev)->dev.chip);

const enum agx_chip pre_chip = ((struct hk_physical_device *)vk_pdev)->dev.chip;
/* AGX3C encodes the pass's relative shuffles natively. The pass prepares
* its own full subgroups and reconverged shuffle regions.
const enum agx_isa_encoding pre_enc = agx_chip_isa_encoding(pre_chip);
/* AGX3B and AGX3C encode the pass's relative shuffles natively (simdbfly).
* The pass prepares its own full subgroups and reconverged shuffle regions.
*/
if (agx_chip_isa_encoding(pre_chip) == AGX_ISA_ENCODING_AGX3C &&
if ((pre_enc == AGX_ISA_ENCODING_AGX3B ||
pre_enc == AGX_ISA_ENCODING_AGX3C) &&
vk_pdev->properties.subgroupSize == 32 &&
vk_pdev->properties.minSubgroupSize == 32 &&
vk_pdev->properties.maxSubgroupSize == 32 &&
Expand Down