Commit adee7dd5 by Alexis Hetu Committed by Alexis Hétu

Restore BGRA support

BGRA support was removed in recent refactoring, since no dEQP must pass test required it, but Chrome still requires it. Change-Id: I638adce7dfeeaf85bb1f6d9889103fb4fde26d96 Reviewed-on: https://swiftshader-review.googlesource.com/16068Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 0b7471ab
......@@ -996,12 +996,12 @@ namespace es2
return GL_INVALID_OPERATION;
}
break;
// case GL_BGRA_EXT:
// if(type != GL_UNSIGNED_BYTE) // GL_APPLE_texture_format_BGRA8888
// {
// return GL_INVALID_OPERATION;
// }
// break;
case GL_BGRA_EXT:
if(type != GL_UNSIGNED_BYTE) // GL_APPLE_texture_format_BGRA8888
{
return GL_INVALID_OPERATION;
}
break;
default:
UNREACHABLE(format);
return GL_INVALID_ENUM;
......@@ -1696,6 +1696,7 @@ namespace es2
case GL_RGB8:
case GL_RGBA8:
case GL_SRGB8:
case GL_BGRA8_EXT:
return GL_UNSIGNED_NORMALIZED;
case GL_R8_SNORM:
case GL_RG8_SNORM:
......
Markdown is supported
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