Skip to content

Commit 8af1c58

Browse files
committed
Backed out changeset 774b13e9f1e7 (bug 1865830) for causing mass build bustages. CLOSED TREE
1 parent c821fc7 commit 8af1c58

File tree

4 files changed

+0
-37
lines changed

4 files changed

+0
-37
lines changed

dom/webgpu/CommandEncoder.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -162,21 +162,6 @@ void CommandEncoder::CopyTextureToTexture(
162162
}
163163
}
164164

165-
void CommandEncoder::ClearBuffer(const Buffer& aBuffer, const uint64_t aOffset,
166-
const dom::Optional<uint64_t>& aSize) {
167-
uint64_t sizeVal = 0xdeaddead;
168-
uint64_t* size = nullptr;
169-
if (aSize.WasPassed()) {
170-
sizeVal = aSize.Value();
171-
size = &sizeVal;
172-
}
173-
174-
ipc::ByteBuf bb;
175-
ffi::wgpu_command_encoder_clear_buffer(aBuffer.mId, aOffset, size,
176-
ToFFI(&bb));
177-
mBridge->SendCommandEncoderAction(mId, mParent->mId, std::move(bb));
178-
}
179-
180165
void CommandEncoder::PushDebugGroup(const nsAString& aString) {
181166
if (!mBridge->IsOpen()) {
182167
return;

dom/webgpu/CommandEncoder.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ class CommandEncoder final : public ObjectBase, public ChildOf<Device> {
8888
void CopyTextureToTexture(const dom::GPUImageCopyTexture& aSource,
8989
const dom::GPUImageCopyTexture& aDestination,
9090
const dom::GPUExtent3D& aCopySize);
91-
void ClearBuffer(const Buffer& aBuffer, const uint64_t aOffset,
92-
const dom::Optional<uint64_t>& aSize);
9391

9492
void PushDebugGroup(const nsAString& aString);
9593
void PopDebugGroup();

dom/webidl/WebGPU.webidl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -893,11 +893,6 @@ interface GPUCommandEncoder {
893893
GPUImageCopyTexture destination,
894894
GPUExtent3D copySize);
895895

896-
undefined clearBuffer(
897-
GPUBuffer buffer,
898-
optional GPUSize64 offset = 0,
899-
optional GPUSize64 size);
900-
901896
GPUCommandBuffer finish(optional GPUCommandBufferDescriptor descriptor = {});
902897
};
903898
GPUCommandEncoder includes GPUObjectBase;

gfx/wgpu_bindings/src/client.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,21 +1271,6 @@ pub unsafe extern "C" fn wgpu_command_encoder_copy_texture_to_texture(
12711271
*bb = make_byte_buf(&action);
12721272
}
12731273

1274-
#[no_mangle]
1275-
pub unsafe extern "C" fn wgpu_command_encoder_clear_buffer(
1276-
dst: wgc::id::BufferId,
1277-
offset: u64,
1278-
size: Option<&u64>,
1279-
bb: &mut ByteBuf,
1280-
) {
1281-
let action = CommandEncoderAction::ClearBuffer {
1282-
dst,
1283-
offset,
1284-
size: size.cloned(),
1285-
};
1286-
*bb = make_byte_buf(&action);
1287-
}
1288-
12891274
#[no_mangle]
12901275
pub extern "C" fn wgpu_command_encoder_push_debug_group(marker: &nsACString, bb: &mut ByteBuf) {
12911276
let string = marker.to_string();

0 commit comments

Comments
 (0)