mirror of
https://github.com/utmapp/angle.git
synced 2026-12-01 14:00:09 -10:00
Currently, IOSurface objects using {GL_RGB, GL_UNSIGNED_BYTE}
are natively represented with GL_BGRX8_ANGLEX, which we use
instead of other RGBA formats in order to avoid issues when
a canvas uses 'no alpha':
https://source.chromium.org/chromium/chromium/src/+/main:third_party/swiftshader/third_party/angle/angle/src/libANGLE/renderer/vulkan/mac/IOSurfaceSurfaceVkMac.mm;l=44
This unfortunately causes some other issues because of the
implicit RGB <-> BGR conversion like type mismatches in
subresource updates. This CL adds a new type, RGBX8, which
will be usable by IOSurface objects and which behaves exactly
like the BGRX8 format with the B and R channels flipped.
Bug: chromium:1209250
Change-Id: I345eadc8addd05a0964cae30d89c20005479e37b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3188910
Commit-Queue: Alexis Hétu <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
14 lines
535 B
JSON
14 lines
535 B
JSON
{
|
|
"src/libANGLE/renderer/FormatID_autogen.h":
|
|
"40f92bcbd9100ebcbac0fa77db1a23be",
|
|
"src/libANGLE/renderer/Format_table_autogen.cpp":
|
|
"95b4b1156dbc17c4d6be58c1a5337e16",
|
|
"src/libANGLE/renderer/angle_format.py":
|
|
"74d6c9842128293118ccf128aeae896a",
|
|
"src/libANGLE/renderer/angle_format_data.json":
|
|
"bad90135a5d792928071aacdf80219c9",
|
|
"src/libANGLE/renderer/angle_format_map.json":
|
|
"947527a1b07dd14da6179eb98d7883c0",
|
|
"src/libANGLE/renderer/gen_angle_format_table.py":
|
|
"70bdbceee30506d4b14bf52f2bbd8f2b"
|
|
} |