Change-Id: I32aaefe71ea728ae5118de08e5dd9073ddf2269e
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/73740
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
https://chromium.googlesource.com/vulkan-deps/+log/d74e02442e56..39f3a18bdfbe
Changed dependencies:
* glslang: 7ca4dfa061..ca13951205
* spirv-cross: bab4e5911b..e9cc640334
* spirv-headers: 449bc986ba..eddd4dfc93
* spirv-tools: 926ff6d1ba..7d768812e2
* vulkan-headers: c5b7a2fa18..e005e1f817
* vulkan-loader: 90fd66f60f..a11162fcac
* vulkan-tools: 5805106266..05c6171c04
* vulkan-validation-layers: cefa7fd82e..f8f8e2fe64
$ git log d74e02442..39f3a18bd --date=short --no-merges --format='%ad %ae %s'
2021-12-15 chromium-autoroll Roll SPIRV-Tools from b7251d4fb756 to 7d768812e202 (1 revision)
2021-12-15 chromium-autoroll Roll SPIRV-Headers from d53b49635b74 to eddd4dfc930f (1 revision)
2021-12-15 chromium-autoroll Roll Vulkan-ValidationLayers from 9f537109da6d to f8f8e2fe648a (2 revisions)
2021-12-15 chromium-autoroll Roll SPIRV-Tools from 354a46a2a22e to b7251d4fb756 (1 revision)
2021-12-15 chromium-autoroll Roll SPIRV-Tools from 4322c4b5a7db to 354a46a2a22e (1 revision)
2021-12-15 chromium-autoroll Roll Vulkan-Loader from 24373f2d987b to a11162fcaca8 (1 revision)
2021-12-14 chromium-autoroll Roll SPIRV-Tools from f0351b7bc60b to 4322c4b5a7db (1 revision)
2021-12-13 chromium-autoroll Roll Vulkan-Loader from ca9efe3f1ccd to 24373f2d987b (1 revision)
2021-12-13 chromium-autoroll Roll SPIRV-Tools from ff07cfd86fa2 to f0351b7bc60b (1 revision)
2021-12-13 chromium-autoroll Roll Vulkan-Tools from d3cdb64f2ef5 to 05c6171c04df (1 revision)
2021-12-12 chromium-autoroll Roll Vulkan-Tools from 08f87babadc4 to d3cdb64f2ef5 (1 revision)
2021-12-11 chromium-autoroll Roll Vulkan-Loader from 2bbfe2ef640c to ca9efe3f1ccd (9 revisions)
2021-12-10 chromium-autoroll Roll Vulkan-ValidationLayers from 3dfeacfe0ad0 to 9f537109da6d (1 revision)
2021-12-10 chromium-autoroll Roll SPIRV-Tools from e4527925944c to ff07cfd86fa2 (1 revision)
2021-12-10 chromium-autoroll Roll SPIRV-Tools from 315615887836 to e4527925944c (1 revision)
2021-12-09 chromium-autoroll Roll SPIRV-Tools from a2260d3b1fd2 to 315615887836 (1 revision)
2021-12-09 chromium-autoroll Roll Vulkan-ValidationLayers from f16f14915b7d to 3dfeacfe0ad0 (3 revisions)
2021-12-09 chromium-autoroll Roll glslang from 542ee69d8309 to ca1395120555 (1 revision)
2021-12-09 chromium-autoroll Roll SPIRV-Tools from d240d0db92d5 to a2260d3b1fd2 (1 revision)
2021-12-09 chromium-autoroll Roll Vulkan-ValidationLayers from 965e5f89e257 to f16f14915b7d (1 revision)
2021-12-09 chromium-autoroll Roll Vulkan-ValidationLayers from ee8a454f88a8 to 965e5f89e257 (1 revision)
2021-12-09 chromium-autoroll Roll SPIRV-Tools from f37551d2b617 to d240d0db92d5 (3 revisions)
2021-12-09 chromium-autoroll Roll SPIRV-Tools from 438096e0c252 to f37551d2b617 (1 revision)
2021-12-08 chromium-autoroll Roll SPIRV-Tools from 64328e94dbd1 to 438096e0c252 (1 revision)
2021-12-08 chromium-autoroll Roll SPIRV-Tools from 1ed847f43804 to 64328e94dbd1 (1 revision)
2021-12-08 chromium-autoroll Roll SPIRV-Tools from b162ede0dea5 to 1ed847f43804 (1 revision)
2021-12-08 chromium-autoroll Roll SPIRV-Tools from 1f3f0f185b62 to b162ede0dea5 (1 revision)
2021-12-08 chromium-autoroll Roll SPIRV-Tools from f9bcc82ec730 to 1f3f0f185b62 (1 revision)
2021-12-08 chromium-autoroll Roll SPIRV-Headers from 29414ae1fd07 to d53b49635b74 (1 revision)
2021-12-07 chromium-autoroll Roll glslang from ec5ea2d6cbad to 542ee69d8309 (2 revisions)
2021-12-07 chromium-autoroll Roll Vulkan-Loader from 3d3aae8fab85 to 2bbfe2ef640c (1 revision)
2021-12-07 chromium-autoroll Roll Vulkan-ValidationLayers from 2c2b81c05189 to ee8a454f88a8 (2 revisions)
2021-12-07 chromium-autoroll Roll Vulkan-Headers from ea61f32f24d2 to e005e1f8175d (1 revision)
2021-12-06 chromium-autoroll Roll Vulkan-ValidationLayers from 81195dfecbd0 to 2c2b81c05189 (1 revision)
2021-12-06 chromium-autoroll Roll Vulkan-Loader from 876a1b9c3427 to 3d3aae8fab85 (1 revision)
2021-12-04 chromium-autoroll Roll SPIRV-Tools from c75a1a46f39f to f9bcc82ec730 (1 revision)
2021-12-03 chromium-autoroll Roll Vulkan-Loader from 143eb773e4e8 to 876a1b9c3427 (1 revision)
2021-12-03 chromium-autoroll Roll Vulkan-Loader from 737b390a4c53 to 143eb773e4e8 (1 revision)
2021-12-02 chromium-autoroll Roll Vulkan-ValidationLayers from 8c4aad9df626 to 81195dfecbd0 (1 revision)
2021-12-02 chromium-autoroll Roll Vulkan-ValidationLayers from 1858ae9e00a4 to 8c4aad9df626 (2 revisions)
2021-12-02 chromium-autoroll Roll Vulkan-Headers from a15237165443 to ea61f32f24d2 (1 revision)
2021-12-02 chromium-autoroll Roll Vulkan-ValidationLayers from 2a7d7a3c3b1f to 1858ae9e00a4 (1 revision)
2021-12-02 chromium-autoroll Roll Vulkan-ValidationLayers from ae1ef56fc99b to 2a7d7a3c3b1f (2 revisions)
2021-12-02 ynovikov Revert "Roll Vulkan-Headers from a15237165443 to ea61f32f24d2 (1 revision)"
2021-12-02 chromium-autoroll Roll glslang from 0e1396862cc8 to ec5ea2d6cbad (1 revision)
2021-12-02 chromium-autoroll Roll Vulkan-Loader from f8c72d8fe402 to 737b390a4c53 (1 revision)
2021-12-02 chromium-autoroll Roll SPIRV-Tools from d0a827a9f313 to c75a1a46f39f (1 revision)
2021-12-01 chromium-autoroll Roll Vulkan-Loader from 6df9f13c7b68 to f8c72d8fe402 (1 revision)
2021-12-01 chromium-autoroll Roll Vulkan-Tools from 68b0ab756634 to 08f87babadc4 (1 revision)
2021-12-01 chromium-autoroll Roll Vulkan-ValidationLayers from c6bafff88f7e to ae1ef56fc99b (1 revision)
(...)
2021-08-30 chromium-autoroll Roll Vulkan-ValidationLayers from a9124f216679 to f39b2452f1f4 (2 revisions)
2021-08-30 chromium-autoroll Roll Vulkan-Tools from 580510626634 to 6c444b2c9f7b (1 revision)
2021-08-30 chromium-autoroll Roll Vulkan-Loader from 39dd126e16c7 to 4e55fdb4d272 (1 revision)
2021-08-30 chromium-autoroll Roll SPIRV-Tools from b8fce5f9e6da to 702e6af3800b (1 revision)
2021-08-29 chromium-autoroll Roll Vulkan-Headers from c5b7a2fa1875 to 9e62d027636c (1 revision)
2021-08-27 chromium-autoroll Roll Vulkan-ValidationLayers from 7217507df70a to a9124f216679 (2 revisions)
2021-08-27 chromium-autoroll Roll SPIRV-Tools from ee30773650ec to b8fce5f9e6da (1 revision)
2021-08-27 chromium-autoroll Roll Vulkan-ValidationLayers from bbd74cacc96e to 7217507df70a (5 revisions)
2021-08-27 chromium-autoroll Roll Vulkan-ValidationLayers from 15f450dbbf6c to bbd74cacc96e (2 revisions)
2021-08-27 chromium-autoroll Roll Vulkan-ValidationLayers from 0a5b93050693 to 15f450dbbf6c (2 revisions)
2021-08-26 chromium-autoroll Roll Vulkan-ValidationLayers from 9f65d3f73cab to 0a5b93050693 (2 revisions)
2021-08-26 chromium-autoroll Roll Vulkan-ValidationLayers from e09fa25f18ae to 9f65d3f73cab (3 revisions)
2021-08-26 chromium-autoroll Roll SPIRV-Tools from 2a5cc342fb5a to ee30773650ec (1 revision)
2021-08-26 chromium-autoroll Roll Vulkan-Loader from d7c8139c370a to 39dd126e16c7 (1 revision)
2021-08-26 chromium-autoroll Roll Vulkan-Loader from 90fd66f60fa7 to d7c8139c370a (3 revisions)
2021-08-26 chromium-autoroll Roll Vulkan-ValidationLayers from b8705a01456b to e09fa25f18ae (4 revisions)
2021-08-25 chromium-autoroll Roll Vulkan-ValidationLayers from ce4817c22c81 to b8705a01456b (2 revisions)
2021-08-25 chromium-autoroll Roll Vulkan-ValidationLayers from c2c5bbe227fb to ce4817c22c81 (1 revision)
2021-08-25 chromium-autoroll Roll glslang from a4599ef7561a to 2fb89a0072ae (1 revision)
2021-08-25 chromium-autoroll Roll Vulkan-ValidationLayers from 6fa8d3cbb97b to c2c5bbe227fb (2 revisions)
2021-08-25 chromium-autoroll Roll Vulkan-ValidationLayers from 46eb54e6a0df to 6fa8d3cbb97b (3 revisions)
2021-08-25 chromium-autoroll Roll SPIRV-Tools from 3d4246b4aaa6 to 2a5cc342fb5a (2 revisions)
2021-08-24 chromium-autoroll Roll SPIRV-Tools from 88f9c15eaea47a20120d1ade2fb51ef79bfac6e7 to 3d4246b4aaa6 (1 revision)
2021-08-24 chromium-autoroll Roll SPIRV-Tools from a1d5d67aeb45 to 88f9c15eaea4 (1 revision)
2021-08-24 chromium-autoroll Roll Vulkan-ValidationLayers from dbb81cca542d to 46eb54e6a0df (1 revision)
2021-08-24 chromium-autoroll Roll Vulkan-ValidationLayers from 1b7bd5773b55 to dbb81cca542d (1 revision)
2021-08-23 chromium-autoroll Roll Vulkan-ValidationLayers from 828e59d0417f to 1b7bd5773b55 (2 revisions)
2021-08-23 chromium-autoroll Roll Vulkan-ValidationLayers from b6121706a4af to 828e59d0417f (1 revision)
2021-08-23 chromium-autoroll Roll SPIRV-Tools from 937227c761a9 to a1d5d67aeb45 (1 revision)
2021-08-23 chromium-autoroll Roll SPIRV-Tools from d699296b4d4e to 937227c761a9 (1 revision)
2021-08-23 chromium-autoroll Roll Vulkan-ValidationLayers from e6e56b607161 to b6121706a4af (2 revisions)
2021-08-23 chromium-autoroll Roll Vulkan-ValidationLayers from c9b8c134c113 to e6e56b607161 (2 revisions)
2021-08-23 chromium-autoroll Roll Vulkan-ValidationLayers from 931cff66d7b2 to c9b8c134c113 (4 revisions)
2021-08-23 chromium-autoroll Roll SPIRV-Cross from 840d4483bcb2 to 0e2880ab990e (1 revision)
2021-08-23 chromium-autoroll Roll SPIRV-Cross from c062b6b85272 to 840d4483bcb2 (1 revision)
2021-08-23 chromium-autoroll Roll SPIRV-Cross from fad15907867d to c062b6b85272 (1 revision)
2021-08-23 chromium-autoroll Roll SPIRV-Cross from 27e7abeab15e to fad15907867d (1 revision)
2021-08-23 chromium-autoroll Roll SPIRV-Cross from bab4e5911b1b to 27e7abeab15e (1 revision)
2021-08-22 chromium-autoroll Roll Vulkan-ValidationLayers from a5405505d5d1 to 931cff66d7b2 (2 revisions)
2021-08-22 chromium-autoroll Roll Vulkan-ValidationLayers from e1f91ba6c4bb to a5405505d5d1 (2 revisions)
2021-08-20 chromium-autoroll Roll Vulkan-ValidationLayers from 78d6199679ef to e1f91ba6c4bb (3 revisions)
2021-08-20 chromium-autoroll Roll Vulkan-ValidationLayers from b3f17dc51510 to 78d6199679ef (1 revision)
2021-08-19 chromium-autoroll Roll Vulkan-ValidationLayers from c481a49ce568 to b3f17dc51510 (5 revisions)
2021-08-19 chromium-autoroll Roll SPIRV-Tools from 1ad8b71359b2 to d699296b4d4e (1 revision)
2021-08-19 chromium-autoroll Roll Vulkan-ValidationLayers from f6bb4bbc6ca3 to c481a49ce568 (2 revisions)
2021-08-18 chromium-autoroll Roll Vulkan-ValidationLayers from e5fad63fc9a4 to f6bb4bbc6ca3 (1 revision)
2021-08-18 chromium-autoroll Roll SPIRV-Tools from a9ce5e07c627 to 1ad8b71359b2 (1 revision)
2021-08-18 chromium-autoroll Roll glslang from 7ca4dfa06158 to a4599ef7561a (1 revision)
2021-08-18 chromium-autoroll Roll Vulkan-ValidationLayers from cefa7fd82e22 to e5fad63fc9a4 (1 revision)
2021-08-18 chromium-autoroll Roll SPIRV-Tools from 926ff6d1bab0 to a9ce5e07c627 (2 revisions)
Created with:
roll-dep third_party/vulkan-deps
Change-Id: I6d0cdd1450c612db8100b4347af9f00a45790a8e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/73780
Auto-Submit: Austin Eng <enga@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Kai Ninomiya <kainino@chromium.org>
For unknown reasons formatting of a error context message fails in
RenderEncoderBase::APISetBindGroup fails if the bind group is printed
as a string in the message. This despite the exact same code working as
intended in ComputePassEncoder::APISetBindGroup. Replacing it with a
static "[BindGroup]" to allow the rest of the message to format
correctly until the reason for the failure can be determined.
Bug: dawn:1190
Change-Id: I31105acff4d08849a34e406c6b8e85fab28f17b5
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/73280
Auto-Submit: Brandon Jones <bajones@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Kai Ninomiya <kainino@chromium.org>
Add two more warnings to ignore. These show up when including glslang
headers in samples/main.cc.
Change-Id: Icdb9fa9914bfe6fdafb4727ed8bf774fe9b930bf
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/73660
Reviewed-by: James Price <jrprice@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
There are a few places where a branch or return is created,
conditionally on whether a terminator was the last thing seen.
The goal is to generate a SPIR-V basic block terminator exactly
when needed, and to avoid generating a branch or return immediately
after a prior terminator.
Previously, the decision was based on the last thing seen in the AST.
But we should instead check the emitted SPIR-V instead.
This fixes cases such as a break or return inside an else-if.
That's because an if/elseif is actually a selection inside a selection.
Looking at the AST only works when trying to terminate the *inside*
selection. In the outer recursive call, the last AST node is
no longer a terminator, and we would skip generating the branch
to the merge block.
Fixed: tint:1315
Change-Id: I6b886ce85d1d681f2063997e469e0c1b4e5973a2
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/73480
Kokoro: Kokoro <noreply+kokoro@google.com>
Auto-Submit: David Neto <dneto@google.com>
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: James Price <jrprice@google.com>
This picks up validation to ensure a struct of builtins on
the input or output interface is also decorated with Block.
See https://github.com/KhronosGroup/SPIRV-Tools/pull/4665
Fix SPIR-V in end2end tests that was breaking the rule.
Change-Id: Ic0e9c8936eb6b3f086b084d86b649e9e237fc3b3
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/73242
Reviewed-by: James Price <jrprice@google.com>
Auto-Submit: David Neto <dneto@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: David Neto <dneto@google.com>
CopyTextureForBrowserOptions deprecated AlphaOp after supporting
color space conversion. AlphaMode for src and dst is the replacement.
Bug: dawn:1140
Change-Id: Id507bd7525d74be8a12d212b92cc22f0c7bc94b7
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/73141
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Shaobo Yan <shaobo.yan@intel.com>
Replace hardcode content with metadata defined in api.json
BUG=dawn:1201
Change-Id: Ib6d6a9c7afc8fb89d3ff2d0129dbfba04adb542a
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/73160
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Junwei Fu <junwei.fu@intel.com>
SPIR-V validation fails when an object has multiple ArrayStride
decorations. Remove the SPIR-V reader tests that did this.
Change-Id: Iaac0f0f0c9230ccbc7dde5414d6aaf6f0e972534
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/73240
Auto-Submit: David Neto <dneto@google.com>
Reviewed-by: James Price <jrprice@google.com>
Kokoro: David Neto <dneto@google.com>
Commit-Queue: David Neto <dneto@google.com>
Make ValidationUtils flexible for other generation.
BUG=dawn:1201
Change-Id: I42ccbd3d9c2fe37abec4b8f7eb395583dbe1dc8d
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/72980
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Junwei Fu <junwei.fu@intel.com>
Bug: dawn:689
Change-Id: I032cfcba755be241126dfa8447a38625d7183334
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/71523
Reviewed-by: Loko Kung <lokokung@google.com>
Commit-Queue: Austin Eng <enga@chromium.org>
This implements requestAdapter and requestDevice by
forwarding commands the the server and relaying back
replies. After an adapter or device is created,
limits/properties/features are queried and also sent
back to the client.
Bug: dawn:689
Change-Id: Ie0c2984b8ebb661efb0c284a14ae8b74ae4af2ea
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/71522
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Loko Kung <lokokung@google.com>
Commit-Queue: Austin Eng <enga@chromium.org>
This has been removed from WGSL and is now deprecated in Tint.
Bug: tint:1324
Change-Id: Ic187ce3c5ce0723db6f3ca6483e9f5e73ce27acc
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/72880
Auto-Submit: James Price <jrprice@google.com>
Reviewed-by: Corentin Wallez <cwallez@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Rename mock_webgpu to mock_api and define the function "GetProcTableAndDevice" to "GetProcTable" for removing the special arguments "WGPUDevice* device" that can be got with "GetNewDevice()".
BUG=dawn:1201
Change-Id: I4fc47e4497ba4b6d280cc8af8605f1d93f43497e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/72761
Reviewed-by: Jiawei Shao <jiawei.shao@intel.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Junwei Fu <junwei.fu@intel.com>
Struct member defined in dawn.json could have a 'length' attribute
defines the length of the member if it is an array.
In previous, the 'length' could only be 'strlen' or other variable
which has 'uint32_t' types. It cannot support constant length.
CopyTextureForBrowserOptions transfers conversion parameters and
conversion matrix with a constant length. This CL adds this ability
to meet such requirements.
Bug: dawn:1140
Change-Id: I6eeabbc55cc3853fe15e33bdd44060b16f6096bf
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/72580
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Shaobo Yan <shaobo.yan@intel.com>
This enum value was removed.
Bug: dawn:1206
Change-Id: Ifebceb01e817a29daec6629434d4dd792f343f74
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/72940
Auto-Submit: Austin Eng <enga@chromium.org>
Reviewed-by: Shrek Shao <shrekshao@google.com>
Reviewed-by: Brandon Jones <bajones@chromium.org>
Commit-Queue: Brandon Jones <bajones@chromium.org>
This is so we can implement the adapter/device APIs fully
on dawn_wire.
Bug: dawn:689
Change-Id: I47f68157d081f359f871e0efe0d974dfe53de7d7
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/71521
Reviewed-by: Loko Kung <lokokung@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Austin Eng <enga@chromium.org>
Adds upstream instance/adapter APIs. In dawn_native, the basic APIs
to get limits and properties are implemented, but requestAdapter and
requestDevice are not. In dawn_wire, nothing is implemented, but the
stub definitions are put in place, as well the mechanism to inject
WGPUInstance into the wire.
There is a lifetime concern with WGPUInstance and WGPUAdapter on the
wire in that we need to ensure that the client cannot free the
instance or adapter while they are in use. In the near term, this is
not a problem because Chromium will always hold ownership of the
instance and adapters outside of the wire - i.e. it won't inject and
then release ownership.
Bug: dawn:160, dawn:689
Change-Id: Id904272983f23babc9177bc163d78c4fa1044da0
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/71520
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Loko Kung <lokokung@google.com>
Commit-Queue: Austin Eng <enga@chromium.org>
* Rename GenerateNonReferenceExpression to
GenerateExpressionWithLoadIfNeeded.
This version takes an ast::Expression
* Add a variant that takes a sem::Expression, because the sem
expression already knows the resolved type, and so we can save
a lookup.
* Replace most uses of GenerateExpression ... GenerateLoadIfNeeded
with a call to one of the above.
This is a non-functional change.
Followup to the fix in tint:1343.
Bug: tint:1343
Change-Id: If19a1bc7670edd2badc1533861d8b42f0825c7b8
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/72720
Auto-Submit: David Neto <dneto@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Commit-Queue: David Neto <dneto@google.com>
This CL add color space conversion bases for CopyTextureForBrowser.
Theoretically, it could support any color space conversion. But
test cases only cover (Srgb, DisplayP3) to (Srgb).
It could be expanded to more color spaces conversions.
Bug: dawn:1140
Change-Id: I332e6d1f7cf2424fd5f5af83c71fa45c98d2d8ac
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/70780
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Shaobo Yan <shaobo.yan@intel.com>
Rename webgpu_cpp.cpp to api_cpp.cpp and make it flexible.
BUG=dawn:1201
Change-Id: Ib964be9399e9733c4fe9de5d1cd0361182bb0836
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/72460
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Junwei Fu <junwei.fu@intel.com>
Beef up the comment in the file to describe what's going on with
the licenses, as well as describe why the generated file is
a different license.
Also move the BSD text to a different file.
Change-Id: I6d08256317f3a0a150e0c35d3d902fceb7dcb44e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/72680
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Shrek Shao <shrekshao@google.com>
A one letter typo would lead to invalid memory access in the very
specific case of outputting the layout for a struct within a struct with
field alignment padding, and the inner struct has more members than the
outer.
Bug: tint:1344
Bug: oss-fuzz:72642
Change-Id: I749e3fb172e78a20ece68b40be1a0a57dc5746f4
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/72642
Reviewed-by: Ben Clayton <bclayton@google.com>
Reviewed-by: David Neto <dneto@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>