Skip to content

vrend: use compatible view internalformat for 24bpp imported EGL resources

Ryan Neph requested to merge ryanneph/virglrenderer:rn-fix-24bpp-views into master

Fixes a missed internalformat fixup when glTextureView() is used to create vrend_surfaces for resources backed by shared EGL images without an alpha channel (e.g. RGBX, BGRX). Such resources are registered in host Mesa with internalformat GL_RGB8, but virglrenderer prefers to create 32bpp textures and do it's own swizzling.

fixes: commit ebb2cf3c "vrend: convert linear color to srgb for 24bpp imported EGL resources".

Signed-off-by: Ryan Neph ryanneph@google.com

Merge request reports