Skip to content

WIP: d3d12: NV12 resource support with YV12 emulation

Jesse Natalie requested to merge jenatali/mesa:misc-gles-patches-2 into main

Repurposing this MR just for the modifier patch for YV12 emulation, WIP based on !14123 (merged)

The gralloc we're looking to use for WSA implements YV12 by allocating a D3D NV12 resource, and [de-]interleaving the UV plane(s) on [un]lock. It needs to report that the resource contains 3 planes, so a nonzero modifier is used to allow DRI to import NV12 with 3 fds, and we just ignore the third one. This is probably pretty hacky and I'm open to better ways to do this.

Edited by Jesse Natalie

Merge request reports