Giter VIP home page Giter VIP logo

Comments (16)

bkaradzic avatar bkaradzic commented on May 13, 2024

I have only Sandybridge on Linux (also there are no issues with AMD nor NV GPUs), and everything there works. Can you check your Mesa version?

$ glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile
OpenGL version string: 3.0 Mesa 9.1.7
OpenGL shading language version string: 1.30

What do you get on your machine?

from bgfx.

tivek avatar tivek commented on May 13, 2024

Thanks for the quick reply. I am now on Mesa 10.0.0_devel.59506-1 (yesterday's git master) but 9.2.2 behaves the same.

$ glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile 
OpenGL version string: 3.0 Mesa 10.0.0-devel (git-ff337bc)
OpenGL shading language version string: 1.30

Desktop compositing does not make a difference, nor does switching between SNA and UXA. Maybe I should try out Mesa 9.1.7.. Anyway, I'm glad it's not a direct bug in bgfx.

from bgfx.

bkaradzic avatar bkaradzic commented on May 13, 2024

I have confirmation that this is happening on IvyBridge + Linux.

from bgfx.

tivek avatar tivek commented on May 13, 2024

Thank you. I will try to get a minimal program which reproduces the bug.

from bgfx.

bkaradzic avatar bkaradzic commented on May 13, 2024

@tivek I tested on Haswell as well, and I don't see problem. The difference is that I'm using Mint with Mesa 9.1.7, is there any chance you can test with Mesa 9.1.7 on your machine?

from bgfx.

tivek avatar tivek commented on May 13, 2024

Unfortunately there are no Mesa 9.1.7 packages for Arch Linux. I did test 9.1.6 which runs the examples just fine on Ivybridge, and I also tested 9.2.0rc1 which shows the broken behavior. I tried to build Mesa from git in hopes of pinpointing the responsible commit with a bisect, but for some reason I did not manage to build any tag between 9.1.6 and 9.2.0rc1 (at least for 9.1.7 there seems to be a problem with the mapi/shared-glapi makefile).

EDIT: spoke too soon, 9.1.7 works, will try to bisect as soon as I get some sleep.

from bgfx.

bkaradzic avatar bkaradzic commented on May 13, 2024

@tivek "EDIT: spoke too soon, 9.1.7 works, will try to bisect as soon as I get some sleep."

That would be awesome! I'll try to build Mesa 10 on my machine too.

from bgfx.

tivek avatar tivek commented on May 13, 2024

Found it! :) The first bad commit in the Mesa tree is 1d4dbeeaec8490a14dafefa9c647ae48b56ab952 which enables ARB_texture_multisample on Gen6+. The next step is to find Ivybridge-specific code for ARB_texture_multisample. I suspect the extension interacts in a weird way with scissor tests and this gives the buggy behavior of imgui.

from bgfx.

bkaradzic avatar bkaradzic commented on May 13, 2024

@tivek 👍

from bgfx.

bkaradzic avatar bkaradzic commented on May 13, 2024

Just tested on Mint 16 with:

OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile
OpenGL core profile version string: 3.1 (Core Profile) Mesa 9.2.1
OpenGL core profile shading language version string: 1.40
OpenGL core profile context flags: (none)
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 9.2.1
OpenGL shading language version string: 1.30

And bug exist.

from bgfx.

r-lyeh-archived avatar r-lyeh-archived commented on May 13, 2024

Hey guys,

I found this issue on Mononen's original code too. I fixed it long time ago but I currently cannot remember what OpenGL command is unbalanced.

As a quick fix, you may push all attribs before rendering UI, and pop them after rendering UI.
That should work for now.

from bgfx.

bkaradzic avatar bkaradzic commented on May 13, 2024

@r-lyeh It's different because imgui here is not using GL directly. Also this issue doesn't exist with NV (noveau or propriatery drivers), OpenGL on Windows and OSX (nor earlier version of Mesa), nor OpenGL ES on Android (which uses the same code path). Definitely Mesa/Intel driver problem, I just need to figure out how to get minimal repro for them or @tivek might find exact problem with bisect.

from bgfx.

tivek avatar tivek commented on May 13, 2024

Lately I wasn't able to tinker with the code as much as I would have liked. The problem I have with git bisect is that it only finds the commit to Mesa which enables an until-then unused code for ARB_texture_multisample on Ivybridge. I would have to bisect older commits while still merging the enabling commit. This could become messy (noob here :), but it's worth a shot. Any tips? Or do I just git bisect and then git cherry-pick?

As soon as I can I am going to reduce one of the bgfx examples to bare minimum that displays the problem and then use BuGLe to print out the list of GL calls. Then we'll see what to do next.

from bgfx.

bkaradzic avatar bkaradzic commented on May 13, 2024

@tivek I verified that's only happening with just Intel GPUs in Mesa 9.2 and above, and submitted this bug to Mesa:
https://bugs.freedesktop.org/show_bug.cgi?id=72586

from bgfx.

tivek avatar tivek commented on May 13, 2024

@bkaradzic Awesome. Today I learned about apitrace... :)

from bgfx.

bkaradzic avatar bkaradzic commented on May 13, 2024

Fixed 1a6300b

from bgfx.

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.