Factoring out a lot of reusable GPU code from gl4/.

This commit is contained in:
Ben Vanik
2015-11-08 11:54:36 -08:00
parent b26f4a5719
commit b5a18b5462
23 changed files with 3074 additions and 2746 deletions

View File

@@ -117,7 +117,7 @@ X_STATUS Emulator::Setup(ui::Window* display_window) {
}
// Initialize the GPU.
graphics_system_ = xe::gpu::GraphicsSystem::Create(this);
graphics_system_ = xe::gpu::GraphicsSystem::Create();
if (!graphics_system_) {
return X_STATUS_NOT_IMPLEMENTED;
}
@@ -144,7 +144,7 @@ X_STATUS Emulator::Setup(ui::Window* display_window) {
kernel_state_ = std::make_unique<xe::kernel::KernelState>(this);
// Setup the core components.
result = graphics_system_->Setup(processor_.get(), display_window_->loop(),
result = graphics_system_->Setup(processor_.get(), kernel_state_.get(),
display_window_);
if (result) {
return result;