Remove unused field

This commit is contained in:
Cameron Gutman
2026-01-11 01:46:17 -06:00
parent 09f8e7117b
commit 6f8e517ce1
2 changed files with 3 additions and 5 deletions

View File

@@ -1369,6 +1369,7 @@ void DrmRenderer::enterOverlayCompositionMode()
}
struct drm_mode_create_dumb createBuf = {};
uint32_t fbId;
void* mapping = nullptr;
createBuf.width = m_OutputRect.w;
@@ -1386,7 +1387,7 @@ void DrmRenderer::enterOverlayCompositionMode()
goto Fail;
}
if (!createFbForDumbBuffer(&createBuf, &m_OverlayCompositionSurfaceFbId)) {
if (!createFbForDumbBuffer(&createBuf, &fbId)) {
goto Fail;
}
@@ -1402,9 +1403,7 @@ void DrmRenderer::enterOverlayCompositionMode()
// NB: This will take ownership of both the FB and the dumb buffer,
// but it won't free them until we stop streaming since we don't
// flip this plane anymore after this.
m_PropSetter.flipPlane(m_OverlayPlanes[0],
m_OverlayCompositionSurfaceFbId,
createBuf.handle);
m_PropSetter.flipPlane(m_OverlayPlanes[0], fbId, createBuf.handle);
// Create an SDL surface that wraps our dumb buffer mapping
m_OverlayCompositionSurface = SDL_CreateRGBSurfaceWithFormatFrom(mapping,

View File

@@ -739,7 +739,6 @@ private:
DrmPropertyMap m_OverlayPlanes[Overlay::OverlayMax];
DrmPropertySetter m_PropSetter;
SDL_Surface* m_OverlayCompositionSurface;
uint32_t m_OverlayCompositionSurfaceFbId;
std::mutex m_OverlayLock;
SDL_Rect m_OverlayRects[Overlay::OverlayMax];
drmVersionPtr m_Version;