drivers/gpu/intel: upgrade platform session on demand

This commit is contained in:
Norman Feske 2019-09-27 12:08:17 +02:00 committed by Christian Helmuth
parent 4871c7bba0
commit 65d72fb07a
1 changed files with 2 additions and 1 deletions

View File

@ -170,7 +170,8 @@ struct Igd::Device
*/
_pci.upgrade_ram(size);
try {
return _pci.alloc_dma_buffer(size);
return _pci.with_upgrade([&] () {
return _pci.alloc_dma_buffer(size); });
}
catch (Platform::Out_of_ram) {
throw Out_of_ram(); }