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

@@ -39,12 +39,12 @@ std::string D3D12GraphicsSystem::name() const {
return "Direct3D 12";
}
X_STATUS D3D12GraphicsSystem::Setup(Memory* memory, cpu::Processor* processor,
X_STATUS D3D12GraphicsSystem::Setup(cpu::Processor* processor,
kernel::KernelState* kernel_state,
ui::WindowedAppContext* app_context,
bool is_surface_required) {
provider_ = xe::ui::d3d12::D3D12Provider::Create();
return GraphicsSystem::Setup(memory, processor, kernel_state, app_context,
return GraphicsSystem::Setup(processor, kernel_state, app_context,
is_surface_required);
}

View File

@@ -29,8 +29,7 @@ class D3D12GraphicsSystem : public GraphicsSystem {
std::string name() const override;
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;