From: Lynne <dev@lynne.ee> To: Benjamin Cheng via ffmpeg-devel <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH v4 2/2] lavc/vulkan_av1: port to the new stable API Date: Tue, 13 Feb 2024 13:10:02 +0100 (CET) Message-ID: <NqXMwNF--7-9@lynne.ee> (raw) In-Reply-To: <CZ3JKTS4WTEZ.1EO1FJ1KGMOKJ@bcheng.me> Feb 13, 2024, 01:59 by ffmpeg-devel@ffmpeg.org: > On Sun Feb 11, 2024 at 10:15 AM EST, Lynne wrote: > >> From: Lynne <dev@lynne.ee> >> Date: Fri, 19 Jan 2024 10:49:02 +1000 >> Subject: [PATCH v4 2/2] lavc/vulkan_av1: port to the new stable API >> >> Most of this patch was written by Dave Airlie <airlied@redhat.com>, >> with some additions by me. >> --- >> >> >> - ap->av1_pic_info = (VkVideoDecodeAV1PictureInfoMESA) { >> - .sType = VK_STRUCTURE_TYPE_VIDEO_DECODE_AV1_PICTURE_INFO_MESA, >> - .frame_header = &ap->av1_frame_header, >> - .tile_list = &ap->tile_list, >> + ap->av1_pic_info = (VkVideoDecodeAV1PictureInfoKHR) { >> + .sType = VK_STRUCTURE_TYPE_VIDEO_DECODE_AV1_PICTURE_INFO_KHR, >> + .pStdPictureInfo = &ap->std_pic_info, >> + .tileCount = ap->tile_count, >> + .pTileOffsets = ap->tile_offsets, >> > > Mentioned this on IRC earlier, but this means the driver always get > pTileOffsets = NULL, since ap->tile_offsets only gets filled out during > vk_av1_decode_slice(). > Thanks, already fixed it, I did report back on IRC. >> + >> + ap->loop_restoration = (StdVideoAV1LoopRestoration) { >> + .FrameRestorationType[0] = remap_lr_type[frame_header->lr_type[0]], >> + .FrameRestorationType[1] = remap_lr_type[frame_header->lr_type[1]], >> + .FrameRestorationType[2] = remap_lr_type[frame_header->lr_type[2]], >> + .LoopRestorationSize[0] = AV1_RESTORATION_TILESIZE_MAX >> (2 - frame_header->lr_unit_shift), >> + .LoopRestorationSize[1] = ap->loop_restoration.LoopRestorationSize[0] >> frame_header->lr_uv_shift, >> + .LoopRestorationSize[2] = ap->loop_restoration.LoopRestorationSize[0] >> frame_header->lr_uv_shift, >> + }; >> > > Not sure what the C spec says, but at least on GCC 13.2.1 it seems like > the assignment for LoopRestorationSize[1] and [2] happens before the > initalization of LoopRestorationSize[0]. > Nothing here on gcc-12, gcc-14 and clang-19. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2024-02-13 12:10 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-02-11 15:14 [FFmpeg-devel] [PATCH v4 1/2] lavc/cbs_av1: fill in ref_frame_sign_bias and order_hints Lynne [not found] ` <NqNj-B_--3-9@lynne.ee-NqNj2EN----9> 2024-02-11 15:15 ` [FFmpeg-devel] [PATCH v4 2/2] lavc/vulkan_av1: port to the new stable API Lynne 2024-02-13 0:58 ` Benjamin Cheng via ffmpeg-devel 2024-02-13 12:10 ` Lynne [this message] 2024-02-13 12:16 ` James Almer 2024-02-20 19:01 ` llyyr
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=NqXMwNF--7-9@lynne.ee \ --to=dev@lynne.ee \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git