Skip to content

Commit

Permalink
sculpt_manager: avoid restarting intel_gpu
Browse files Browse the repository at this point in the history
during resume, which otherwise will restart all GPU clients.

Issue #5180
  • Loading branch information
alex-ab authored and nfeske committed Apr 22, 2024
1 parent 81effce commit f7e11f3
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions repos/gems/src/app/sculpt_manager/driver/fb.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,19 @@ struct Sculpt::Fb_driver : private Noncopyable
{
bool const suspending = board_info.options.suspending;

bool const use_intel = board_info.detected.intel_gfx
&& !board_info.options.suppress.intel_gpu
&& !suspending;
bool const use_boot_fb = !use_intel && !suspending && board_info.detected.boot_fb;
bool const use_vesa = !use_boot_fb && !use_intel && !suspending && board_info.detected.vga;

_intel_gpu.conditional(use_intel,
bool const use_intel_gpu = board_info.detected.intel_gfx &&
!board_info.options.suppress.intel_gpu;
bool const use_intel_fb = use_intel_gpu && !suspending;
bool const use_boot_fb = !use_intel_fb && !suspending &&
board_info.detected.boot_fb;
bool const use_vesa = !use_intel_fb && !suspending &&
board_info.detected.vga && !use_boot_fb;

_intel_gpu.conditional(use_intel_gpu,
registry, "intel_gpu", Priority::MULTIMEDIA,
Ram_quota { 32*1024*1024 }, Cap_quota { 1400 });

_intel_fb.conditional(use_intel,
_intel_fb.conditional(use_intel_fb,
registry, "intel_fb", Priority::MULTIMEDIA,
Ram_quota { 16*1024*1024 }, Cap_quota { 800 });

Expand Down

0 comments on commit f7e11f3

Please sign in to comment.