Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intel IRIS Problems #86

Open
haraldsteinlechner opened this issue Oct 28, 2021 · 7 comments
Open

Intel IRIS Problems #86

haraldsteinlechner opened this issue Oct 28, 2021 · 7 comments

Comments

@haraldsteinlechner
Copy link
Member

haraldsteinlechner commented Oct 28, 2021

as we found out in PRo3D, there are problems with new intel chips. It seemed like FBO/Multisample is causing the problems.
The workaround was to disable multisampling: pro3d-space/PRo3D#116
with @luithefirst we just found out that text is causing the problems - all ok, put in a text in pro3d - no rendering result.
Reproducing this in media - add the text - clear color remains...
moving on to vanilla aardvark.rendering - stalls, non-termination etc appears for multisampled text and without (MS).

Conclusions?

Looks like text rendering is broken on iris gpus, disabling multisampling helps in PRo3D but there is something fishy still - just with text alone.
We suspect an endless loop, which not breaks fbos, but sometimes, in media cases provokes infinite frametimes there.

What are the most promising features in text to be removed step by step to track it down?

@hyazinthh - that is why your test suite did not detect it ;

@krauthaufen
Copy link
Member

Text rendering uses stencil-buffer and sample-shading

@krauthaufen
Copy link
Member

I think especially sample-shading might be interesting

@haraldsteinlechner
Copy link
Member Author

haraldsteinlechner commented Oct 28, 2021

but without multisampling - maybe just the existence of sample shading kills. i just found out text rendering also does not work on linux. i think i recompiled glvm (which might be necessary) - somebody any clue - maybe related?

@krauthaufen
Copy link
Member

We force the shader to be executed per sample via using gl_SampleCoord, so there could certainly be a difference with/without multisampling. Furthermore i think sample-shading must be enabled client-side (which could be the invalidenum error)

haraldsteinlechner added a commit that referenced this issue Nov 2, 2021
…to *disable* multisampling properly. Unclear yet why outline only always needs multisampling
@haraldsteinlechner
Copy link
Member Author

@haraldsteinlechner
Copy link
Member Author

  • text might work on iris gpu without multisampling
  • Slim applications in GL actually have multisampled backbuffers (samplecount = 2) according to RenderDoc -> this makes problems with outline effect. explicitly disabling multisampling fixes this
  • the real reason is still unknown. we could not create a mini (non-aardvark) example which makes the troubles. currently still working on renderdoc recordings to submit an issue to driver team

@haraldsteinlechner
Copy link
Member Author

so this is the last conclusion for the moment - it is not possible to make it work on

 0:   vendor:   "Intel"
 0:   renderer: "Intel(R) Iris(R) Xe Graphics"
 0:   version:  OpenGL 4.5.0 / GLSL 4.5.0  Core

experimenting with

                    GL.MinSampleShading(1.0f)
                    GL.Enable(EnableCap.SampleShading)

et al. does not work. so to prevent hanging frames, one needs to disable multisampling enable cap and a fbo without sampleCount = 1.

No repro strategy was successful, i think we need to live with the workaround which as already been deployed and tested in pro3d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants