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

@@ -52,11 +52,11 @@ GraphicsSystem::GraphicsSystem() : vsync_worker_running_(false) {}
GraphicsSystem::~GraphicsSystem() = default;
X_STATUS GraphicsSystem::Setup(Memory* memory, cpu::Processor* processor,
X_STATUS GraphicsSystem::Setup(cpu::Processor* processor,
kernel::KernelState* kernel_state,
ui::WindowedAppContext* app_context,
[[maybe_unused]] bool is_surface_required) {
memory_ = memory;
memory_ = processor->memory();
processor_ = processor;
kernel_state_ = kernel_state;
app_context_ = app_context;
@@ -233,7 +233,6 @@ void GraphicsSystem::EnableReadPointerWriteBack(uint32_t ptr,
void GraphicsSystem::SetInterruptCallback(uint32_t callback,
uint32_t user_data) {
assert_false(callback && !processor_);
interrupt_callback_ = callback;
interrupt_callback_data_ = user_data;
XELOGGPU("SetInterruptCallback({:08X}, {:08X})", callback, user_data);