Skip to content
Commit 40c519a3 authored by Michael Olbrich's avatar Michael Olbrich Committed by Daniel Stone
Browse files

gl-renderer: query EGL to determine if GL_TEXTURE_EXTERNAL_OES should be used



Using the number of planes to determine if GL_TEXTURE_EXTERNAL_OES should be
used is incorrect with some modifiers: For example RGBA with a
I915_FORMAT_MOD_Y_TILED_CCS modifier has two planes.

Use eglQueryDmaBufModifiersEXT() to query if the current format/modifier only
supports GL_TEXTURE_EXTERNAL_OES.

Use the current code as fallback of modifiers are not supported.

Signed-off-by: default avatarMichael Olbrich <m.olbrich@pengutronix.de>
parent f6bd2129
Pipeline #151019 passed with stages
in 1 minute and 43 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment