Add support for RGB10A2 in eglCreatePbufferFromClientBuffer

Bug: chromium:937108

Change-Id: I689562ebff9f9f85ecb8af918bbb788b16b0f91b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1565420
Commit-Queue: Geoff Lang <geofflang@chromium.org>
Reviewed-by: Geoff Lang <geofflang@chromium.org>
This commit is contained in:
Sunny Sachanandani 2019-04-11 21:09:37 -07:00 коммит произвёл Commit Bot
Родитель e0da9cefcd
Коммит b8a8ffd3fc
2 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -10,6 +10,7 @@ Contributors
Geoff Lang
Olli Etuaho
Sunny Sachanandani
Contacts
@ -90,8 +91,9 @@ Additions to Chapter 3 of the EGL 1.5 Specification (EGL Functions and Errors)
DXGI_FORMAT_B8G8R8A8_UNORM_SRGB (support is optional),
DXGI_FORMAT_R8G8B8A8_TYPELESS (support is optional),
DXGI_FORMAT_B8G8R8A8_TYPELESS (support is optional),
DXGI_FORMAT_R16G16B16A16_FLOAT or
DXGI_FORMAT_R32G32B32A32_FLOAT.
DXGI_FORMAT_R16G16B16A16_FLOAT,
DXGI_FORMAT_R32G32B32A32_FLOAT or
DXGI_FORMAT_R10G10B10A2_UNORM.
--------------------------------------------------------------------------
Table egl.restrictions - Restrictions on D3D resources that can be used
as a <buffer>.
@ -135,8 +137,10 @@ Issues
Revision History
Version 4, 2019/04/15 - added support for DXGI_FORMAT_R10G10B10A2_UNORM.
Version 3, 2018/01/23 - added support for typeless textures.
Version 2, 2018/01/15 - clarified SRGB conversion handling.
Version 1, 2016/10/05 - first draft.
Version 1, 2016/10/05 - first draft.

Просмотреть файл

@ -1326,6 +1326,7 @@ egl::Error Renderer11::getD3DTextureInfo(const egl::Config *configuration,
case DXGI_FORMAT_B8G8R8A8_TYPELESS:
case DXGI_FORMAT_R16G16B16A16_FLOAT:
case DXGI_FORMAT_R32G32B32A32_FLOAT:
case DXGI_FORMAT_R10G10B10A2_UNORM:
break;
default: