This is an archive of the discontinued LLVM Phabricator instance.

[SPIR-V] Add get_image_num_mip_levels implementation
ClosedPublic

Authored by mpaszkowski on Oct 13 2022, 12:00 PM.

Details

Summary

This change:

  • Adds implementation for the get_image_num_mip_levels builtin
  • Adds a passing get_image_num_mip_levels.ll test

Diff Detail

Event Timeline

mpaszkowski created this revision.Oct 13 2022, 12:00 PM
mpaszkowski requested review of this revision.Oct 13 2022, 12:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2022, 12:00 PM
andreytr added inline comments.Oct 13 2022, 1:09 PM
llvm/test/CodeGen/SPIRV/transcoding/get_image_num_mip_levels.ll
5–28

Suggest to fix %{{[0-9]+}} -> %#
and indentation.

mpaszkowski marked an inline comment as done.

Thanks @andreytr! The formatting and indentation is now fixed.

iliya-diyachkov accepted this revision.Oct 19 2022, 4:46 AM

It looks good to me. Thank you for the patch, Michal.

This revision is now accepted and ready to land.Oct 19 2022, 4:46 AM
andreytr accepted this revision.Oct 19 2022, 12:14 PM

test/CodeGen/SPIRV/transcoding/get_image_num_mip_levels.ll looks good to me.

This revision was automatically updated to reflect the committed changes.