mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
Bug 1857929
- Set the wgpu flag to filter out labels. r=webgpu-reviewers,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D193812
This commit is contained in:
parent
ca5e63d215
commit
782a28a3e5
@ -89,12 +89,18 @@ 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: wgt::InstanceFlags::from_build_config().with_env(),
|
||||
flags: instance_flags,
|
||||
dx12_shader_compiler: wgt::Dx12Compiler::Fxc,
|
||||
gles_minor_version: wgt::Gles3MinorVersion::Automatic,
|
||||
},
|
||||
|
@ -4571,6 +4571,15 @@
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user