[GPU] Make Processor optional for GraphicsSystem setup
This commit is contained in:
@@ -21,14 +21,14 @@ NullGraphicsSystem::NullGraphicsSystem() {}
|
||||
|
||||
NullGraphicsSystem::~NullGraphicsSystem() {}
|
||||
|
||||
X_STATUS NullGraphicsSystem::Setup(cpu::Processor* processor,
|
||||
X_STATUS NullGraphicsSystem::Setup(Memory* memory, cpu::Processor* processor,
|
||||
kernel::KernelState* kernel_state,
|
||||
ui::WindowedAppContext* app_context,
|
||||
bool is_surface_required) {
|
||||
// This is a null graphics system, but we still setup vulkan because UI needs
|
||||
// it through us :|
|
||||
provider_ = xe::ui::vulkan::VulkanProvider::Create(is_surface_required);
|
||||
return GraphicsSystem::Setup(processor, kernel_state, app_context,
|
||||
return GraphicsSystem::Setup(memory, processor, kernel_state, app_context,
|
||||
is_surface_required);
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,8 @@ class NullGraphicsSystem : public GraphicsSystem {
|
||||
|
||||
std::string name() const override { return "null"; }
|
||||
|
||||
X_STATUS Setup(cpu::Processor* processor, kernel::KernelState* kernel_state,
|
||||
X_STATUS Setup(Memory* memory, cpu::Processor* processor,
|
||||
kernel::KernelState* kernel_state,
|
||||
ui::WindowedAppContext* app_context,
|
||||
bool is_surface_required) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user