forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 82cde78566da21b7efae64bbd87076a4cf2012ea

Today

2026-11-27

2026-11-26

2026-11-25

charter: CTB16 quirk evidenceAhmet Kaan Gümüş · 06c38daBrowse files
charter: ffmpeg oracle statusAhmet Kaan Gümüş · b54b535Browse files
vk-video-ffi H.264 decode: create the session with the driver's DPB slot and active reference maximaAhmet Kaan Gümüş · 08bc65c
vk-video-ffi H.264 decode: create the session with the driver's DPB slot and active reference maxima

The session was sized with the stream's DPB slot count and active reference count (5/5 for these streams). The driver sizes session memory from those numbers, and a session that is too small corrupts decoding after an earlier session on the same device. ffmpeg creates sessions with the driver caps. DPB image count stays stream-sized.
ec-hw AV1 Vulkan: raw CDEF secondary strength, per-slot reference extents, odd frame sizes; VA refuses mono, 12-bit and non-4:2:0Ahmet Kaan Gümüş · d24d8b0
ec-hw AV1 Vulkan: raw CDEF secondary strength, per-slot reference extents, odd frame sizes; VA refuses mono, 12-bit and non-4:2:0

Vulkan std CDEF takes the coded 2-bit secondary strength (3 means 4), so the parser's adjusted value is mapped back before upload. This fixes the SVT-AV1 mismatches (lag0, hier3, grain, superres, resize).
Reference picture resources carry each slot's own size, clearing the DPB association validation error on resized streams.
Odd frame sizes decode at their real size; readback and I420 use the even-rounded pitch.
The VA AV1 path refuses monochrome, 12-bit and 4:2:2/4:4:4 cleanly.
ec-hw: one level selection per codec for VA and Vulkan; AV1 and HEVC VPS timing_info; VA H.264 High 8x8 transformAhmet Kaan Gümüş · ab12e5b
ec-hw: one level selection per codec for VA and Vulkan; AV1 and HEVC VPS timing_info; VA H.264 High 8x8 transform

Level comes from crates/ec-hw/src/level.rs (smallest level fitting size, rate, DPB and bitrate; CQP ignores bitrate). The Vulkan shim takes the level and clamps it to the driver's maxLevel.
AV1 sequence header carries timing_info (VA packed header, Vulkan OBU and std struct).
HEVC VPS carries vps_timing_info when the SPS VUI does.
VA H.264 High sets transform_8x8_mode_flag in the PPS and picture parameters.
ec-hw: Vulkan decode follows mid-stream size and DPB changesAhmet Kaan Gümüş · fc0a0f7
ec-hw: Vulkan decode follows mid-stream size and DPB changes

Flush the previous picture when an SPS arrives, so it is finished against
its own SPS. Rebuild the H.264/H.265 session when the coded size or DPB
size changes (H.265 also on bit depth), flushing pending output first.
AV1 sizes the session from the sequence header maximum.
vk-video-ffi: read encoded bitstream from cached host memoryAhmet Kaan Gümüş · e22e714
vk-video-ffi: read encoded bitstream from cached host memory

The encode bitstream buffer was HOST_COHERENT only, so the per-frame
copy-out ran at uncached speed: AV1 (~187 KB/frame) spent ~0.68 ms per
frame in the readback, which serialized on the CPU. Prefer HOST_CACHED
with an invalidate on read, matching the decode readback.
lanes: hwvideo gaps closedAhmet Kaan Gümüş · d81f9ebBrowse files
vk-video-ffi: two-object DMA-BUF import via single-plane images and internal NV12/P010 copyAhmet Kaan Gümüş · ba75450
vk-video-ffi: two-object DMA-BUF import via single-plane images and internal NV12/P010 copy

Drop DISJOINT (RADV advertises no DISJOINT for DRM modifiers). Planes from two
objects import as R8/R8G8 (P010: R16/R16G16) single-plane images, one bind each,
then copy into an internal NV12/P010 image that the encoder reads like a host upload.
Unsupported when the modifier lacks single-plane formats. Smoke example adds split
NV12/P010 cases (linear and tiled) and a two-pass cache check.
ec-hw: export film-grained AV1 pictures as DMA-BUFAhmet Kaan Gümüş · 3b58935
ec-hw: export film-grained AV1 pictures as DMA-BUF

Grain is applied on the CPU on the first export and the grained NV12/P010
goes into a separate exportable ring slot, so the reference slot stays
ungrained. The picture holds that slot until it drops. The staging buffer
for the upload is created on first use.
vk-video-ffi: defer ring store copy and chain it into the next readbackAhmet Kaan Gümüş · 9c38a59
vk-video-ffi: defer ring store copy and chain it into the next readback

store records the copy as pending; the next decode, export or readback of another slot flushes it, a readback of the same slot records it in the same graphics submission, so each picture takes one graphics submit and wait instead of two.
lanes: keep VA and VulkanAhmet Kaan Gümüş · dba774aBrowse files