<div dir="ltr">I was talking to Daniel today and I think we also need another some sort of GL or GBM api that gives you the modifiers supported for rendering/texturing. One option would be a gbm_get_modifiers_for_use() entrypoint that takes a usage and gives you a set of modifiers that's guaranteed to work for that usage. For scanout, it would return LINEAR, X, and Y on SKL+ and LINEAR and X on BDW-; it wouldn't return CCS because that only works on a limited number of planes. I say this now because we may want to do that with the same DRI version bump as the rest of it.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 9, 2017 at 5:48 PM, Ben Widawsky <span dir="ltr"><<a href="mailto:ben@bwidawsk.net" target="_blank">ben@bwidawsk.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">This is essential the creation and getter for GBM modifiers (via DRI images).<br>
<br>
This was the second chunk of the Renderbuffer Decompression series (aka GBM<br>
modifiers). Splitting this up to make merging easier. These patches are simple<br>
plumbing for getting modifiers through the various GBM functions as well as<br>
exposing the new entry points.<br>
<br>
Ben Widawsky (3):<br>
dri: Add an image creation with modifiers<br>
gbm: Introduce modifiers into surface/bo creation<br>
gbm: Export a get modifiers<br>
<br>
include/GL/internal/dri_<wbr>interface.h | 27 ++++++++++-<br>
src/egl/drivers/dri2/platform_<wbr>drm.c | 19 ++++++--<br>
src/gallium/state_trackers/<wbr>dri/dri2.c | 1 +<br>
src/gbm/backends/dri/gbm_dri.c | 78 +++++++++++++++++++++++++++++-<wbr>--<br>
src/gbm/gbm-symbols-check | 3 ++<br>
src/gbm/main/gbm.c | 48 +++++++++++++++++++-<br>
src/gbm/main/gbm.h | 15 ++++++<br>
src/gbm/main/gbmint.h | 13 +++++-<br>
src/mesa/drivers/dri/i965/<wbr>intel_screen.c | 50 +++++++++++++++++++-<br>
9 files changed, 237 insertions(+), 17 deletions(-)<br>
<br>
--<br>
2.12.0<br>
<br>
</div></div></blockquote></div><br></div>