Bug 1612941 - force immediate upload method for SWGL since PBOs are slower there. r=jrmuizel

Differential Revision: https://phabricator.services.mozilla.com/D65613

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Lee Salzman 2020-03-13 18:21:06 +00:00
Родитель a82ed1dd00
Коммит 8d077bf1f7
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -1477,10 +1477,10 @@ impl Device {
),
};
let depth_format = if renderer_name.starts_with("Software WebRender") {
gl::DEPTH_COMPONENT16
let (depth_format, upload_method) = if renderer_name.starts_with("Software WebRender") {
(gl::DEPTH_COMPONENT16, UploadMethod::Immediate)
} else {
gl::DEPTH_COMPONENT24
(gl::DEPTH_COMPONENT24, upload_method)
};
info!("GL texture cache {:?}, bgra {:?} swizzle {:?}, texture storage {:?}, depth {:?}",