Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • mesa mesa
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,037
    • Issues 3,037
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 985
    • Merge requests 985
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MesaMesa
  • mesamesa
  • Issues
  • #292
Closed
Open
Issue created Sep 18, 2019 by Bugzilla Migration User@bugzilla-migration

FBO / Windows software rendering: flickering due to errornous blit

Submitted by Florian Kirsch

Assigned to mes..@..op.org

Link to original bug (#23417)

Description

Created attachment 28793 Example program demonstrating the flickering

I have found a bug in the frame buffer object implementation, happening with Mesa 7.4.4 using Mesa with software rendering and Windows XP.

The problem is that most of the FBO functions, such as glBindFramebufferEXT(), in their implementation fbobject.c call ctx->Driver.Flush(ctx), which then causes wmesa_flush() in wmesa.c to do a BitBlt into the visible viewer window (when double buffering is on). This clears the window ahead of time, causing severe flickering.

The simple, attached example program - a hacked gears.c with additional glBindFramebufferEXT(...) in the draw() function - should demonstrate the flickering.

For me, it helps to just comment out all lines with ctx->Driver.Flush(ctx) in fbobject.c. FBOs then work fine in the Windows software rasterizer. For other rendering paths, I guess this is not a good fix, of course.

Attachment 28793, "Example program demonstrating the flickering":
fbobug.c

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking