diff options
author | Joan Figueras | 2021-01-01 22:21:39 +0100 |
---|---|---|
committer | Joan Figueras | 2021-01-01 22:21:39 +0100 |
commit | 20765d3619a2cc8cd99ac3476c7cbd400a399376 (patch) | |
tree | 984af3faf1100a36ef4ce3f60c645d01f331e7d1 /cbindgen-0.16.patch | |
parent | adc3ddafbb33abb9e2cf8f42d7b09d87b68db376 (diff) | |
download | aur-20765d3619a2cc8cd99ac3476c7cbd400a399376.tar.gz |
Fix cbindgen 0.16.0 build
Diffstat (limited to 'cbindgen-0.16.patch')
-rw-r--r-- | cbindgen-0.16.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/cbindgen-0.16.patch b/cbindgen-0.16.patch new file mode 100644 index 000000000000..c562a49838e7 --- /dev/null +++ b/cbindgen-0.16.patch @@ -0,0 +1,25 @@ +diff --git a/dom/webgpu/ipc/WebGPUParent.cpp b/dom/webgpu/ipc/WebGPUParent.cpp +--- a/dom/webgpu/ipc/WebGPUParent.cpp ++++ b/dom/webgpu/ipc/WebGPUParent.cpp +@@ -423,17 +423,15 @@ + 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"); + |