Revert "[GPU] Make Processor optional for GraphicsSystem setup"

The Processor is still required in many places, including the GPU command processor worker thread

This reverts commit fd03d886e9.
This commit is contained in:
Triang3l
2022-07-06 22:43:40 +03:00
parent 2507837e8d
commit 3ee68d79ea
9 changed files with 13 additions and 18 deletions

View File

@@ -21,14 +21,14 @@ NullGraphicsSystem::NullGraphicsSystem() {}
NullGraphicsSystem::~NullGraphicsSystem() {}
X_STATUS NullGraphicsSystem::Setup(Memory* memory, cpu::Processor* processor,
X_STATUS NullGraphicsSystem::Setup(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(memory, processor, kernel_state, app_context,
return GraphicsSystem::Setup(processor, kernel_state, app_context,
is_surface_required);
}

View File

@@ -28,8 +28,7 @@ class NullGraphicsSystem : public GraphicsSystem {
std::string name() const override { return "null"; }
X_STATUS Setup(Memory* memory, cpu::Processor* processor,
kernel::KernelState* kernel_state,
X_STATUS Setup(cpu::Processor* processor, kernel::KernelState* kernel_state,
ui::WindowedAppContext* app_context,
bool is_surface_required) override;