Giter Site home page Giter Site logo

Comments (5)

cmeissl avatar cmeissl commented on June 20, 2024 1

Thanks for testing, can you try if #1381 fixes the issue while keeping ColorTansformations active?

from smithay.

Drakulix avatar Drakulix commented on June 20, 2024

cc @cmeissl

from smithay.

cmeissl avatar cmeissl commented on June 20, 2024

Thanks for reporting this issue!

Disabling the overlay and cursor planes fixes the problem. Digging into the method, I think it's because elements on those planes are being RenderElement::drawn into the target buffer after blitting the primary plane in. Is that supposed to overwrite pixels already in the buffer even if what's getting drawn in has transparency?

Yes, RenderElement::draw is used to composite elements placed on drm planes into the bound buffer to align it with what drm would do during scan-out. For doing that more efficiently the blit_frame_result function uses glBlitFramebuffer for blitting the already composited. The blit_from/blit_to functions are optional and not part of the Frame Trait used for drawing. This is the reason why the function splits rendering into 3 stages, clear, blit and draw the overlay elements. Using the default capabilites for the GlesRenderer might enable color transformations which currently requires the use of a shadow buffer. My guess is that we fail to keep the content we already have drawn in this case.

blit_from does directly blit to the backing buffer and does not use the shadow buffer. But even if it did GlesRenderer::render would clear the shadow buffer anyway. Also GlesFrame::finish disables blending before blitting the shadow buffer. So it seems that it is currently not possible to render in multiple passes in case a shadow buffer is active.

@Ottatop can you try to verify this by disabling the Capability::ColorTransformations? This should be possible by using GlesRenderer::with_capabilites and in case you use the multi gpu backend by using a factory function.

from smithay.

Ottatop avatar Ottatop commented on June 20, 2024

Can confirm that disabling ColorTransformations works around that problem.

from smithay.

Ottatop avatar Ottatop commented on June 20, 2024

Yep, it does fix the issue!

from smithay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.