cancel
Showing results for 
Search instead for 
Did you mean: 

OpenGL & Vulkan

ThibaultOber
Journeyman III

OpenGL error, blit shared texture between 2 contexts.

We are developping an OpenGL application using Qt for the window management.

After upgrading some machine with the latest AMD drivers, some artifacts appears, usually screen becomes black.

Graphic card: RX 6600 XT

Driver version: 31.0.12027.7000

Inside our application we have 2 OpenGL contexts one for doing the scene rendering and an other belonging to Qt.

We share one RGBA texture between the 2 contexts, once the scene rendering is finished we blit the content of the shared texture to the framebuffer's color attachment of Qt (GLWidget class)

the codes looks like this:

Capture.PNG

The screens is mostly black now. I figured if I try to read the texture's content everything works again.

The content is the one expected.

the code becomes this:

Capture d’écran 2022-11-23 164747.png

Obviously I should not add a cpu/gpu halt, I try to read only one pixel the screen is black again (half dimension seems to work)

Do you have an idea on how I can force the texture content to be actually computed. I tried to bind/unbind or to call GlTexImage2D without any success.

Thanks for your time.

0 Likes
4 Replies
dipak
Staff

Hi @ThibaultOber ,

Thank you for reporting it. I have whitelisted you and moved the post to the OpenGL forum.

Could you please check the issue with the latest driver available here: Adrenalin 22.11.1 ?

If the issue still persists, please provide a minimal test-case that reproduces this issue.

Thanks.

0 Likes

I install the Adrenalin 22.11.1 the issue still persist even it's a little bit better.

A part of the screen is still black, with some "random" chunks here and there. It seems it's linked to the initial resolution of the texture.

If my initial res is 1920x1080 -> ~860x540 is black and the same number of pixels keeps getting black as I scale down.

0 Likes

Thanks for the information. Please provide a minimal test-case that reproduces the issue. I will report it to the OpenGL team.

0 Likes

Hi @ThibaultOber ,

Could you please provide a minimal test-case which the OpenGL team can use to reproduce the issue locally?

Thanks.

0 Likes