diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2020-12-31 00:31:41 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2020-12-31 00:31:41 +0000 |
commit | b6c2e134a0256b21086b655d8a7858158d00b440 (patch) | |
tree | 5c42f6b43946e9df8beb974ee3756d91c1b7acd5 /www/firefox-esr/files | |
parent | math/sound-of-sorting: fix build on GCC architectures (diff) |
devel/rust-cbindgen: update to 0.16.0 (like r558794)
With fixes for firefox-esr and thunderbird.
Changes: https://github.com/eqrion/cbindgen/compare/v0.15.0...v0.16.0
Reported by: GitHub (watch releases)
Notes
Notes:
svn path=/head/; revision=559688
Diffstat (limited to 'www/firefox-esr/files')
-rw-r--r-- | www/firefox-esr/files/patch-bug1684180 | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/www/firefox-esr/files/patch-bug1684180 b/www/firefox-esr/files/patch-bug1684180 new file mode 100644 index 000000000000..2e375b20f448 --- /dev/null +++ b/www/firefox-esr/files/patch-bug1684180 @@ -0,0 +1,34 @@ +commit 383a82da4808 +Author: Emilio Cobos Álvarez <emilio@crisal.io> +Date: Mon Dec 28 04:39:00 2020 -0800 + + Bug 1684180 - Fix ESR build with newer versions of cbindgen. r=kvark +--- + dom/webgpu/ipc/WebGPUParent.cpp | 8 +++----- + 1 file changed, 3 insertions(+), 5 deletions(-) + +diff --git dom/webgpu/ipc/WebGPUParent.cpp dom/webgpu/ipc/WebGPUParent.cpp +index ff93c0630d02..17c2ace6b4ae 100644 +--- dom/webgpu/ipc/WebGPUParent.cpp ++++ dom/webgpu/ipc/WebGPUParent.cpp +@@ -423,17 +423,15 @@ ipc::IPCResult WebGPUParent::RecvDeviceCreateBindGroup( + switch (entry.mType) { + case SerialBindGroupEntryType::Buffer: + bgb.resource.tag = ffi::WGPUBindingResource_Buffer; +- bgb.resource.buffer._0.buffer = entry.mValue; +- bgb.resource.buffer._0.offset = entry.mBufferOffset; +- bgb.resource.buffer._0.size = entry.mBufferSize; ++ bgb.resource.buffer = {entry.mValue, entry.mBufferOffset, entry.mBufferSize}; + break; + case SerialBindGroupEntryType::Texture: + bgb.resource.tag = ffi::WGPUBindingResource_TextureView; +- bgb.resource.texture_view._0 = entry.mValue; ++ bgb.resource.texture_view = {entry.mValue}; + break; + case SerialBindGroupEntryType::Sampler: + bgb.resource.tag = ffi::WGPUBindingResource_Sampler; +- bgb.resource.sampler._0 = entry.mValue; ++ bgb.resource.sampler = {entry.mValue}; + break; + default: + MOZ_CRASH("unreachable"); |