cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

mirh
Adept III

GL_ARB_separate_shader_objects extension broken

Jump to solution

So.. you may or may not know PCSX2, the ps2 emulator.

While developing it, I kind of hit a snag with AMD and just AMD OpenGL driver.

Aside of performance issues (half of direct3D, while other vendors are 100% on par), I get garbled graphics every time I enable this extension.

At first I thought it could be a problem with my code, but after writing a testcase (attached) it must definitively be something within driver.

Please, notice how you get a yellow frame. If you test this on an intel, nvidia or even amd card with open source drivers under linux, it's green.

It seems second index color of shader isn't properly outputed.

Perhaps it's optimized away in a separate program? If I try a monolithic build everything looks just fine.

I can confirm this happens with every driver (15.12 too) on both Windows 7 and 10, and a HD5770 and HD7750.

And this somewhat suggests me it's a problem affecting *every* card and OS.

EDIT: attached right source file

1 Solution

Accepted Solutions
xhuang
Staff
Staff

Re: GL_ARB_separate_shader_objects extension broken

Jump to solution

Hello mirh​,  I'm glad to bring some update for you: we had fixed a significant problem for dual-source blending and the fix will be included in the release soon.

Driver crash (TDR/BSOD) on OpenGL programs using dual-source blending

Now we can run GSDumpGUI successfully as follows using OpenGL api.

Full SSO:

pastedImage_0.png

Partial SSO:

pastedImage_1.png

View solution in original post

37 Replies
Anteru
Staff
Staff

Re: GL_ARB_separate_shader_objects extension broken?

Jump to solution

We're looking into this - it looks like a problem with the interaction of dual-source blending and separate shader programs, and not separate shader objects per se. I'll keep you posted.

Anteru
Staff
Staff

Re: GL_ARB_separate_shader_objects extension broken?

Jump to solution

The issue has been resolved and the fix will be part of a future driver release. In the meantime, if you use dual-source blending, don't use separate shader objects.

0 Likes
mirh
Adept III

Re: GL_ARB_separate_shader_objects extension broken?

Jump to solution

Thank you!

Any chance even VLIW cards owners could enjoy this fix?

dokman
Journeyman III

Re: GL_ARB_separate_shader_objects extension broken?

Jump to solution

When we will get the fix? we want to play with OpenGL...

And thank you for all the work you do.

0 Likes
tapek
Adept III

Re: GL_ARB_separate_shader_objects extension broken?

Jump to solution

When this fix will be released ?

0 Likes
tabnk
Journeyman III

Re: GL_ARB_separate_shader_objects extension broken?

Jump to solution

Hi,

Is this fix available on current latest driver (Crimson Edition 16.3.2) ?

PCSX2 developer said it is AMD Driver issue gsdx-ogl: move the mandatory extension into mandatory section · PCSX2/pcsx2@b9e8384 · GitHub

Regards

0 Likes
tapek
Adept III

Re: GL_ARB_separate_shader_objects extension broken?

Jump to solution

Is not, is not even in 16.4.1 Hotfix.Anteru​ said that it was resolved and it will be released in future driver release but it was about 3 months ago and it's not released yet.

0 Likes
dokman
Journeyman III

Re: GL_ARB_separate_shader_objects extension broken?

Jump to solution

and that is the problem... there was a new release.. but they forgot to put this fix..

0 Likes
tabnk
Journeyman III

Re: GL_ARB_separate_shader_objects extension broken?

Jump to solution

We need to wait Anteru to be back on Monday to know what happen.

0 Likes