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-11 11:32:30 +00:00
Родитель dae44fbfc2
Коммит 4f9e9c3750
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -1474,10 +1474,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 {:?}",