Backed out changeset 6c001801363e (bug 1857929) for causing build bustages. CLOSED TREE

This commit is contained in:
Natalia Csoregi 2023-11-17 18:46:10 +02:00
parent ecbe118f3d
commit 37349c99af
2 changed files with 2 additions and 17 deletions

View File

@ -11,7 +11,7 @@ use crate::{
use nsstring::{nsACString, nsCString, nsString};
use wgc::{gfx_select, id, instance};
use wgc::{gfx_select, id};
use wgc::{pipeline::CreateShaderModuleError, resource::BufferAccessError};
#[allow(unused_imports)]
use wgh::Instance;
@ -89,18 +89,12 @@ pub extern "C" fn wgpu_server_new(
);
wgc::instance::parse_backends_from_comma_list(&backends_pref)
};
let mut instance_flags = wgt::InstanceFlags::from_build_config().with_env();
if !static_prefs::pref!("dom.webgpu.hal-labels") {
instance_flags.insert(wgt::InstanceFlags::DISCARD_HAL_LABELS);
}
let global = wgc::global::Global::new(
"wgpu",
factory,
wgt::InstanceDescriptor {
backends,
flags: instance_flags,
flags: wgt::InstanceFlags::from_build_config().with_env(),
dx12_shader_compiler: wgt::Dx12Compiler::Fxc,
gles_minor_version: wgt::Gles3MinorVersion::Automatic,
},

View File

@ -4571,15 +4571,6 @@
mirror: always
rust: true
# Whether to pass labels to the hardware abstraction layer. This is only useful when
# inspecting a WebGPU workload in a GPU debugging tool like renderdoc. Enabling it
# exposes poorly tested driver API surfaces so it should not be enabled by default.
- name: dom.webgpu.hal-labels
type: bool
value: false
mirror: once
rust: true
# Is support for HTMLInputElement.webkitEntries enabled?
- name: dom.webkitBlink.filesystem.enabled
type: bool