Skip to content

mesa/st: Handle all 10 bpc types in st_choose_format

Michel Dänzer requested to merge daenzer/mesa:mesa-st-more-10_10_10 into main

Only GL_UNSIGNED_INT_2_10_10_10_REV was handled, add GL_UNSIGNED_INT_10_10_10_2 & GL_UNSIGNED_INT_10_10_10_2_OES.

This makes sure that if the Gallium driver doesn't support the exact corresponding format, another 10 bpc format is tried before an 8 bpc one as a fallback.

Fixes the mutter test cogl-test-offscreen-texture-formats with iris.

/cc @anholt @mareko @jadahl

Merge request reports