Skip to content

st/mesa: Fix EGLImageTargetTexture2D for GL_TEXTURE_2D

Woody Chow requested to merge woodychow/mesa:fix_EGLImageTargetTexture2D into master

Before this change, internalFormat was defaulted to GL_RGBA ( unsized internal format). Therefore, subsequent glTexSubImage2D call with type != GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT_4_4_4_4 or GL_UNSIGNED_SHORT_5_5_5_1 would give GL_INVALID_OPERATION.

This fixes

android.graphics.cts.BitmapColorSpaceTest#test16bitHardware android.graphics.cts.ImageDecoderTest#testDecodeBitmap* android.graphics.cts.BitmapTest#testNdkFormatsHardware

in CtsGraphicsTestCases

Reviewed-by: Marek Olšák marek.olsak@amd.com

Edited by Woody Chow

Merge request reports