Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Backends/DRMBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,7 @@ void finish_drm(struct drm_t *drm)
// page-flip handler thread.
}

gamescope::OwningRc<gamescope::IBackendFb> drm_fbid_from_dmabuf( struct drm_t *drm, struct wlr_buffer *buf, struct wlr_dmabuf_attributes *dma_buf )
gamescope::OwningRc<gamescope::IBackendFb> drm_fbid_from_dmabuf( struct drm_t *drm, struct wlr_dmabuf_attributes *dma_buf )
{
gamescope::OwningRc<gamescope::IBackendFb> pBackendFb;
uint32_t fb_id = 0;
Expand Down Expand Up @@ -2525,7 +2525,7 @@ drm_prepare_liftoff( struct drm_t *drm, const struct FrameInfo_t *frameInfo, boo
if ( i < frameInfo->layerCount )
{
const FrameInfo_t::Layer_t *pLayer = &frameInfo->layers[ i ];
gamescope::CDRMFb *pDrmFb = static_cast<gamescope::CDRMFb *>( pLayer->tex ? pLayer->tex->GetBackendFb() : nullptr );
gamescope::CDRMFb *pDrmFb = static_cast<gamescope::CDRMFb *>( pLayer->tex ? pLayer->tex->GetBackendFb()->Unwrap() : nullptr );

if ( pDrmFb == nullptr )
{
Expand Down Expand Up @@ -3710,9 +3710,9 @@ namespace gamescope
return std::make_shared<BackendBlob>( data, uBlob, true );
}

virtual OwningRc<IBackendFb> ImportDmabufToBackend( wlr_buffer *pBuffer, wlr_dmabuf_attributes *pDmaBuf ) override
virtual OwningRc<IBackendFb> ImportDmabufToBackend( wlr_dmabuf_attributes *pDmaBuf ) override
{
return drm_fbid_from_dmabuf( &g_DRM, pBuffer, pDmaBuf );
return drm_fbid_from_dmabuf( &g_DRM, pDmaBuf );
}

virtual bool UsesModifiers() const override
Expand Down
Loading