Mohan Maiya
e66e334491
Vulkan: Add GL_ANGLE_yuv_internal_format extension
...
1. Add a new extension to support creation of immutable textures with
sized internal YUV formats
2. Rename YUV format enums from *_ANGLEX to *_ANGLE
3. Move YUV format enums from angleutils.h to glext_angle.h
Bug: angleproject:5773
Change-Id: Ibfe732f4c9a4a536be56481f33e4768f6227c212
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2820153
Commit-Queue: Mohan Maiya <[email protected] >
Reviewed-by: Jamie Madill <[email protected] >
Reviewed-by: Shahbaz Youssefi <[email protected] >
2021-07-14 21:02:30 +00:00
Kyle Piddington
d33a22228e
Upstream Apple's direct-to-Metal backend: compile libANGLE.
...
This change is meant to merge the metal backend changes from Apple's
direct-to-Metal backend. Taken from Kyle Piddington's CL:
https://chromium-review.googlesource.com/c/angle/angle/+/2857366/
The goal of this CL is to merge the metal backend code in a state
that compiles, but not to switch the Metal backend over to using
the direct-to-metal backend yet.
Bug: angleproject:5505
Bug: angleproject:6127
Change-Id: If6783e06e0086b3a1dd25c6f53caca5cfc96cb86
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2950067
Reviewed-by: Jonah Ryan-Davis <[email protected] >
Reviewed-by: Kenneth Russell <[email protected] >
Commit-Queue: Jonah Ryan-Davis <[email protected] >
2021-07-12 14:54:45 +00:00
Alexey Knyazev
835bcb1e27
Vulkan: Support GL_EXT_texture_sRGB_RG8
...
For completeness, added mappings of R8_SRGB and R8G8_SRGB
to OpenGL and Metal.
Bug: angleproject:4932
Change-Id: Ic8e44e3a94c114e985f6965fcd43fbcb8071432d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2880661
Commit-Queue: Alexey Knyazev <[email protected] >
Reviewed-by: Jamie Madill <[email protected] >
Reviewed-by: Geoff Lang <[email protected] >
2021-05-18 05:04:33 +00:00
Shahbaz Youssefi
7828506a2d
Vulkan: Cleanup buffer format fallbacks
...
- Fallbacks for formats that have required vertex attribute support are
removed.
- Fallbacks are changed to ones with smaller sizes
- A bug is fixed where CopyNativeVertexData wasn't initializing the
alpha channel appropriately, which was not exercised due to fallback
to 32-bit float formats.
Bug: b/184163871
Change-Id: Icd9afa49d94c65545d1f3fcf521881726d64529d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2809441
Reviewed-by: Tim Van Patten <[email protected] >
Reviewed-by: Jamie Madill <[email protected] >
Commit-Queue: Shahbaz Youssefi <[email protected] >
2021-05-08 03:32:05 +00:00
Alexey Knyazev
53b89b833b
Metal: Add ASTC HDR support
...
ASTC HDR is a superset of ASTC LDR, so always use HDR enums
on supported platforms because there is no such difference in OpenGL ES.
Bug: angleproject:2634, angleproject:5672
Change-Id: I19a3212bcb949aa9cdeb682ab000aa03125f04a9
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2848509
Reviewed-by: Jamie Madill <[email protected] >
Reviewed-by: Le Hoang Quyen <[email protected] >
Commit-Queue: Alexey Knyazev <[email protected] >
2021-04-28 19:27:28 +00:00
Alexey Knyazev
8df3e5f2b9
Metal: update format caps
...
Added MTLGPUFamilyApple6 and MTLGPUFamilyApple7 caps.
Bug: angleproject:2634, angleproject:5672
Change-Id: Icc35f823cdd018246a8ac3b1179adc81584fb204
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2846832
Reviewed-by: Jamie Madill <[email protected] >
Reviewed-by: Le Hoang Quyen <[email protected] >
Commit-Queue: Alexey Knyazev <[email protected] >
2021-04-24 10:20:25 +00:00
Alexey Knyazev
f2b474180a
Align BPTC format names in angle::FormatID
...
Use the same naming convention as other similar formats.
Bug: angleproject:5731
Change-Id: I187881f4bc4691a0963502ed41f42ab0ebf4171c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2846824
Reviewed-by: Jamie Madill <[email protected] >
Reviewed-by: Geoff Lang <[email protected] >
Commit-Queue: Alexey Knyazev <[email protected] >
2021-04-22 16:20:37 +00:00
Cody Northrop
14f8918c6b
Migrate more scripts to python3
...
Test: python3 scripts/run_code_generation.py
Bug: angleproject:5707
Change-Id: I5abae69c1c6bf03cc418f10beaabc80288fa1c94
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2828979
Reviewed-by: Jamie Madill <[email protected] >
Reviewed-by: Shahbaz Youssefi <[email protected] >
Commit-Queue: Cody Northrop <[email protected] >
2021-04-16 18:11:33 +00:00
Le Hoang Quyen
f2aa9d5da6
Reland: Metal: Support importing external metal textures
...
This relands I4d4a88cfbb77d8b7508b787c7fec44073d3b11b0.
Fixes:
- uninstantiated ImageTestMetal error
- failed ImageTest.ANGLEExtensionAvailability on ARM mac.
Bug: angleproject:5763
Bug: angleproject:5814
Change-Id: I906fe52baefd6be3c6e00f594795bd527df01616
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2820178
Reviewed-by: Jamie Madill <[email protected] >
Commit-Queue: Le Hoang Quyen <[email protected] >
2021-04-16 03:31:26 +00:00
Shahbaz Youssefi
0273ea3f4f
Vulkan: Use RGBA16_FLOAT for buffer format fallback
...
... instead of RGBA32_FLOAT. VK_FORMAT_R16G16B16A16_SFLOAT has
mandatory support for vertex buffers.
Bug: b/184163871
Change-Id: I7ef2933cd15e46bb984e6fd1b020d2ec15b9c60e
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2807780
Commit-Queue: Shahbaz Youssefi <[email protected] >
Reviewed-by: Ian Elliott <[email protected] >
Reviewed-by: Tim Van Patten <[email protected] >
Reviewed-by: Jamie Madill <[email protected] >
2021-04-10 04:04:31 +00:00
Mohan Maiya
f54191ab6e
Vulkan: Add YUV G8_B8R8_2PLANE_420_UNORM support.
...
Add support for YCbCr_420_888 and YCrCb_420_888 formats,
more commonly known as NV12 and NV21.
Bug: angleproject:5773
Change-Id: I1568d543c221ad110e7f199eb2ffd5df23a6134e
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2787251
Commit-Queue: Mohan Maiya <[email protected] >
Reviewed-by: Jamie Madill <[email protected] >
Reviewed-by: Shahbaz Youssefi <[email protected] >
2021-04-02 18:16:22 +00:00
Kai Ninomiya
256100b201
Revert "Metal: Support importing external metal textures"
...
This reverts commit 2ec3e0a1e6 .
Reason for revert: Test suite ImageTestMetal never instantiated https://anglebug.com/5814
Original change's description:
> Metal: Support importing external metal textures
>
> via KHR_image_base and ANGLE_metal_texture_client_buffer
>
> Bug: angleproject:5763
> Change-Id: I4d4a88cfbb77d8b7508b787c7fec44073d3b11b0
> Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2757811
> Commit-Queue: Le Hoang Quyen <[email protected] >
> Reviewed-by: Kenneth Russell <[email protected] >
> Reviewed-by: Jamie Madill <[email protected] >
Bug: angleproject:5763, angleproject:5814
Change-Id: Ia862aa37a6c914f6e21f9b3121c7c36d449475ea
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2801155
Bot-Commit: Rubber Stamper <[email protected] >
Reviewed-by: Kenneth Russell <[email protected] >
Commit-Queue: Kenneth Russell <[email protected] >
2021-04-02 01:55:57 +00:00
Le Hoang Quyen
2ec3e0a1e6
Metal: Support importing external metal textures
...
via KHR_image_base and ANGLE_metal_texture_client_buffer
Bug: angleproject:5763
Change-Id: I4d4a88cfbb77d8b7508b787c7fec44073d3b11b0
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2757811
Commit-Queue: Le Hoang Quyen <[email protected] >
Reviewed-by: Kenneth Russell <[email protected] >
Reviewed-by: Jamie Madill <[email protected] >
2021-04-01 16:37:52 +00:00
Alexey Knyazev
ffd803945e
Metal: Enable iOS pixel formats on macOS 11
...
Bug: angleproject:2634, angleproject:5672
Change-Id: Idd1cc325067e73b02f4f82b2d78d20420e50645b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2739729
Commit-Queue: Alexey Knyazev <[email protected] >
Reviewed-by: Jamie Madill <[email protected] >
2021-03-08 23:52:59 +00:00
Alexey Knyazev
32bf7d4190
Fix Apple GPU detection for M1
...
Renamed supportsIOSGPUFamily to supportsAppleGPUFamily
to match official naming.
Bug: angleproject:5672
Change-Id: Ic02c0f01bc30c12cef594cc2eb4f9932c22c1e33
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2739459
Reviewed-by: Le Hoang Quyen <[email protected] >
Reviewed-by: Jamie Madill <[email protected] >
Commit-Queue: Jamie Madill <[email protected] >
2021-03-05 18:27:55 +00:00
Jamie Madill
2e9161e4ff
Vulkan: Add YUV G8_B8_R8_3PLANE_420_UNORM format.
...
Bug: angleproject:5438
Change-Id: I525a51256a5ee83fa69c8705aa90790fb32a6602
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2623813
Reviewed-by: Shahbaz Youssefi <[email protected] >
Reviewed-by: Ian Elliott <[email protected] >
Commit-Queue: Jamie Madill <[email protected] >
2021-01-12 21:06:26 +00:00
Alexey Knyazev
56ea854ec5
Metal: Allow unswizzled BC1 RGB
...
Refine DXT1CompressedTextureTest.DXT1Alpha to pass on more
configurations.
Fix the test's payload so that all 16 pixels use code 3.
Refine texture swizzling detection.
Bug: angleproject:2634
Bug: angleproject:5049
Change-Id: If9e1ab63220170a54954234ea205e19583b0df0a
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2467896
Reviewed-by: Geoff Lang <[email protected] >
Reviewed-by: Le Hoang Quyen <[email protected] >
Commit-Queue: Alexey Knyazev <[email protected] >
2020-11-05 19:24:42 +00:00
Le Hoang Quyen
9ff063e9c0
Metal: fix max varyings, copyImage between mips, depth fmt
...
- GLSLTest_ES3.MaxVaryingWithFeedbackAndGLline failed before because
gl_Position takes up one slot from max varyings on Metal back-end.
FIXED
- Previously, copyImage() between mips of the same texture would fail.
Due to the read RenderTargetMtl is released before the copy happens.
FIXED
- GL_DEPTH_COMPONENT24 texture data upload didn't work due to the source
32 bit depth data wasn't handled properly. FIXED
- D24S8 format will be disabled on AMD for now, it will be converted to
D32S8 instead.
Bug: angleproject:2634
Bug: angleproject:5235
Bug: angleproject:5242
Change-Id: Ie7082f0545c0885ce5ec72df8a7ec4ee5d5de4b1
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2494525
Commit-Queue: Le Hoang Quyen <[email protected] >
Reviewed-by: Shahbaz Youssefi <[email protected] >
Reviewed-by: Jamie Madill <[email protected] >
2020-11-04 12:27:56 +00:00
Alexey Knyazev
15823ab020
Metal: Implement ASTC LDR support
...
Bug: angleproject:2634
Change-Id: If7ea09de384c8bc8727523f20fe17641127fcf9f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2411982
Commit-Queue: Jonah Ryan-Davis <[email protected] >
Reviewed-by: Le Hoang Quyen <[email protected] >
Reviewed-by: Jonah Ryan-Davis <[email protected] >
2020-09-21 21:05:36 +00:00
Alexey Knyazev
1b436e07b1
Metal: Implement BPTC support
...
Use autogen for setting compressed format caps.
Bug: angleproject:2634
Change-Id: I8cfb57390751615c08f798f223f4db3deed2fff6
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2411979
Reviewed-by: Le Hoang Quyen <[email protected] >
Reviewed-by: Jonah Ryan-Davis <[email protected] >
Commit-Queue: Jonah Ryan-Davis <[email protected] >
2020-09-21 19:22:56 +00:00
Le Hoang Quyen
85919ef772
Metal: autogen format caps from json
...
Bug: angleproject:4940
Bug: angleproject:2634
Change-Id: I1e107e856a50a7eaf685296dd7464af9ad5bcec4
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2342522
Commit-Queue: Jamie Madill <[email protected] >
Reviewed-by: Jonah Ryan-Davis <[email protected] >
Reviewed-by: Jamie Madill <[email protected] >
2020-08-18 22:21:35 +00:00
Le Hoang Quyen
f37f1dcb16
Metal: Init format table using Metal-Feature-Set-Tables.pdf
...
- Format table is now initialized using informations from
https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf .
Previously, it was setup using gl::GenerateMinimumTextureCaps().
- This CL also adds InitializeTextureDataFunction and LoadFunctionMap to
mtl::Format. They are needed to properly initialize/convert textures
with non-normalized formats.
- This CL is prerequisite for integer & floating point format supports.
- New test: DXT1CompressedTextureTest.DXT1Alpha (this test was added
in the past but was reverted for some reasons).
Bug: angleproject:2634
Change-Id: I5eaad812909a49c4c138d0f65fd21a6a199fcb22
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2332144
Commit-Queue: Le Hoang Quyen <[email protected] >
Reviewed-by: Jonah Ryan-Davis <[email protected] >
Reviewed-by: Jamie Madill <[email protected] >
2020-08-11 05:55:26 +00:00
Le Hoang Quyen
69ca10255c
Metal: Implement EGL_ANGLE_iosurface_client_buffer.
...
GL_R16UI format is not supported yet. It will be implemented once
integer textures are implemented in metal back-end.
Bug: angleproject:4847
Bug: angleproject:2634
Change-Id: I60a52c0ce327a524c74e80b18bb15978ac52065b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2329091
Commit-Queue: Jonah Ryan-Davis <[email protected] >
Reviewed-by: Jonah Ryan-Davis <[email protected] >
Reviewed-by: Jamie Madill <[email protected] >
2020-08-03 18:53:18 +00:00
Alexey Knyazev
58fc8b11cf
Implement RGTC (BC4, BC5) compressed texture formats
...
gl.xml was modified as two enums were missing from their proper group.
dxgi_support_data.json was fixed to not expect BC4 and BC5 on FL9_3
Bug: angleproject:3149
Change-Id: Ieb97a8cf8e92258c1b44e090e823fac227997174
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2033068
Reviewed-by: Jonah Ryan-Davis <[email protected] >
Commit-Queue: Kenneth Russell <[email protected] >
2020-02-04 22:58:25 +00:00
Le Hoang Quyen
d1860ea17e
Metal: support OES_depth_texture
...
Also added Depth32 & Depth16 texture data upload tests.
Bug: angleproject:2634
Change-Id: I103f1cda1dc915f0dc8b04f7aaa2d8c0f9220cda
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1919281
Commit-Queue: Jamie Madill <[email protected] >
Reviewed-by: Jamie Madill <[email protected] >
2019-12-15 14:44:43 +00:00
James Darpinian
d6053daa62
Remove tabs from source files.
...
WebKit's Subversion repo refuses to commit source files that contain
tabs.
Bug: angleproject:3439
Change-Id: I0a804bcfa0375a98e19945e20297c90d31106827
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1954410
Commit-Queue: James Darpinian <[email protected] >
Reviewed-by: Shahbaz Youssefi <[email protected] >
2019-12-10 23:56:47 +00:00
Le Quyen
fe26bae452
Metal backend implementation pt 2
...
This is without Metal specific shader translator implemented yet.
Bug: angleproject:2634
Change-Id: I95d589442251c9ba111bd05a2dc379a36739046c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1855069
Reviewed-by: Jonah Ryan-Davis <[email protected] >
Reviewed-by: Jamie Madill <[email protected] >
Commit-Queue: Jamie Madill <[email protected] >
2019-11-01 17:37:15 +00:00
Le Quyen
253019996d
Metal implementation pt 1: autogen resources
...
Autogen format table and internal shaders for Metal.
Bug: angleproject:2634
Change-Id: I4d81fcd17a0e9959ba9c38a250acc7abb168f54c
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1855067
Commit-Queue: Jamie Madill <[email protected] >
Reviewed-by: Jamie Madill <[email protected] >
2019-10-11 21:59:00 +00:00