diff options
author | Geoff Lang <geofflang@chromium.org> | 2019-08-05 17:02:43 -0400 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-13 21:54:02 +0000 |
commit | b3eeb2a403548bc44fc605c051b622081de42410 (patch) | |
tree | fae4e8929bd39fb258b2b525bf0a9a471466f6e1 /extensions | |
parent | 2251102112312a9762898ce785afce6adc4f5ca3 (diff) | |
download | angle-b3eeb2a403548bc44fc605c051b622081de42410.tar.gz |
Emulate RGB textures using BGRX IOSurfaces.
When the user requests an IOSurface Pbuffer with an RGB format, emulate the
missing alpha channel by clearing it to 1.0 and masking reads and writes in
shaders.
BUG=angleproject:3766
Change-Id: I58c992bf641d9ece0f923603f32640615150e4f3
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1737437
Commit-Queue: Geoff Lang <geofflang@chromium.org>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/EGL_ANGLE_iosurface_client_buffer.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/extensions/EGL_ANGLE_iosurface_client_buffer.txt b/extensions/EGL_ANGLE_iosurface_client_buffer.txt index 0ec5beae05..8206eab389 100644 --- a/extensions/EGL_ANGLE_iosurface_client_buffer.txt +++ b/extensions/EGL_ANGLE_iosurface_client_buffer.txt @@ -21,7 +21,7 @@ Status Draft Version - Version 2, Apr 1, 2019 + Version 3, Aug 13, 2019 Number @@ -96,6 +96,7 @@ Additions to Chapter 3 of the EGL 1.4 Specification (EGL Functions and Errors) GL_UNSIGNED_BYTE GL_RED GL_UNSIGNED_SHORT GL_R16UI GL_UNSIGNED_BYTE GL_RG + GL_UNSIGNED_BYTE GL_RGB GL_UNSIGNED_BYTE GL_BGRA_EXT GL_HALF_FLOAT GL_RGBA --------------------------------------------------------------------------- @@ -110,9 +111,14 @@ Additions to Chapter 3 of the EGL 1.4 Specification (EGL Functions and Errors) Issues - There are no issues, please move on. + 1. Can RGB formats be supported? + + RESOLVED: Support for RGB internal formats is added in version 3. Surfaces + with an RGB format will ensure that the alpha channel of the IOSurface is + reset to 1.0 when it is used. Revision History Version 1, 2017/12/06 - first draft. Version 2, 2019/04/01 - Allow MakeCurrent. + Version 3, 2019/08/13 - Allow RGB internal formats |