mBindToTextureRGB = EGL_FALSE;
mBindToTextureRGBA = EGL_FALSE;
- switch (renderTargetFormat)
+ switch(renderTargetFormat)
{
case sw::FORMAT_A1R5G5B5:
mRedSize = 5;
mAlphaSize = 8;
mBindToTextureRGBA = EGL_TRUE;
break;
+ case sw::FORMAT_A8B8G8R8:
+ mRedSize = 8;
+ mGreenSize = 8;
+ mBlueSize = 8;
+ mAlphaSize = 8;
+ mBindToTextureRGBA = EGL_TRUE;
+ break;
case sw::FORMAT_R5G6B5:
mRedSize = 5;
mGreenSize = 6;
mAlphaSize = 0;
mBindToTextureRGB = EGL_TRUE;
break;
+ case sw::FORMAT_X8B8G8R8:
+ mRedSize = 8;
+ mGreenSize = 8;
+ mBlueSize = 8;
+ mAlphaSize = 0;
+ mBindToTextureRGBA = EGL_TRUE;
+ break;
default:
UNREACHABLE(renderTargetFormat); // Other formats should not be valid
}
#endif
;
- switch (depthStencilFormat)
+ switch(depthStencilFormat)
{
case sw::FORMAT_NULL:
mDepthSize = 0;
sw::FORMAT_A1R5G5B5,
// sw::FORMAT_A2R10G10B10, // The color_ramp conformance test uses ReadPixels with UNSIGNED_BYTE causing it to think that rendering skipped a colour value.
sw::FORMAT_A8R8G8B8,
+ sw::FORMAT_A8B8G8R8,
sw::FORMAT_R5G6B5,
// sw::FORMAT_X1R5G5B5, // Has no compatible OpenGL ES renderbuffer format
- sw::FORMAT_X8R8G8B8
+ sw::FORMAT_X8R8G8B8,
+ sw::FORMAT_X8B8G8R8
};
const sw::Format depthStencilFormats[] =