Skip to content

Commit

Permalink
egl/drm: consolidate EGL init/state (#138)
Browse files Browse the repository at this point in the history
* move renderer to EGLRenderer

* consolidate EGL state and initialization

* move over eglSync

* unbreak abi
  • Loading branch information
ikalco authored Feb 1, 2025
1 parent 48a000c commit 95506e5
Show file tree
Hide file tree
Showing 3 changed files with 382 additions and 162 deletions.
4 changes: 2 additions & 2 deletions src/backend/drm/DRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ bool Aquamarine::CDRMBackend::initMgpu() {
return false;
}

rendererState.renderer = CDRMRenderer::attempt(newAllocator, backend.lock());
rendererState.renderer = CDRMRenderer::attempt(backend.lock(), newAllocator);

if (!rendererState.renderer) {
backend->log(AQ_LOG_ERROR, "drm: initMgpu: no renderer");
Expand Down Expand Up @@ -937,7 +937,7 @@ void Aquamarine::CDRMBackend::onReady() {
if (!a)
backend->log(AQ_LOG_ERROR, "drm: onReady: no renderer for gl formats");
else {
auto r = CDRMRenderer::attempt(a, backend.lock());
auto r = CDRMRenderer::attempt(backend.lock(), a);
if (!r)
backend->log(AQ_LOG_ERROR, "drm: onReady: no renderer for gl formats");
else {
Expand Down
Loading

0 comments on commit 95506e5

Please sign in to comment.