Hi all, those 2 patches clean up and align the format handling in the dri state tracker to how the intel driver implements some details of the interface.
This is mostly in preparation for etnaviv to support native planar YUV import without needing any of the R8/RG88 sampler rewrites, as those are really costly due to some of the Vivante hardware constraints. This isn't quite ready yet, but I wanted to get those patches out, as those have some value on their own. Just looking at the diffstat should be motivation enough to pull them in. As this has the potential to break the NV12 import for drivers using the sampler rewrite (though I think I've covered all cases) I would appreciate some testing from the Freedreno folks, or whoever cares about this. Regards, Lucas Lucas Stach (2): st/dri: allow both render and sampler compatible dma-buf formats st/dri: replace format conversion functions with single mapping table src/gallium/state_trackers/dri/dri2.c | 493 ++++++-------------- src/gallium/state_trackers/dri/dri_screen.h | 1 + 2 files changed, 150 insertions(+), 344 deletions(-) -- 2.17.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev