Dolphin, the GameCube and Wii emulator - Forums

Full Version: Failed to compile vertex shader error in OpenGL
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I recently uninstalled AMD's Crimson 16.3.1 beta driver, and reinstalled their latest stable Crimson Driver 15.12, because 16.3.1 is incompatible with the Wii-U emulator Cemu.
Now whenever I try to run a game in Dolphin using OpenGL I get these error messages:

Window #1:

Failed to compile vertex shader: C:/Users/patdw_000/Documents/Dolphin Emulator/Dump/bad_vs_0000.txt
Debug info (ATI Technologies Inc., AMD Radeon R9 200 Series, 4.5.13416 Compatibility Profile Context 15.300.1025.1001):
Vertex shader failed to compile with the following errors:
ERROR: 1:27: error(#335) Input variables, output variables, and uniform variables can only be in in blocks, out blocks, and uniform blocks
ERROR: error(#273) 1 compilation errors.  No code generated


Window #2:

Failed to compile pixel shader: C:/Users/patdw_000/Documents/Dolphin Emulator/Dump/bad_ps_0001.txt
Debug info (ATI Technologies Inc., AMD Radeon R9 200 Series, 4.5.13416 Compatibility Profile Context 15.300.1025.1001):
Fragment shader failed to compile with the following errors:
ERROR: 1:49: error(#335) Input variables, output variables, and uniform variables can only be in in blocks, out blocks, and uniform blocks
ERROR: 1:66: error(#143) Undeclared identifier: colors_0
ERROR: 1:66: error(#160) Cannot convert from: "float" to: "highp 4-component vector of vec4"
ERROR: 1:67: error(#143) Undeclared identifier: colors_1
ERROR: 1:67: error(#160) Cannot convert from: "float" to: "highp 4-component vector of vec4"
ERROR: error(#273) 5 compilation errors.  No code generated

Window #3:

Failed to compile vertex shader: C:/Users/patdw_000/Documents/Dolphin Emulator/Dump/bad_vs_0002.txt
Debug info (ATI Technologies Inc., AMD Radeon R9 200 Series, 4.5.13416 Compatibility Profile Context 15.300.1025.1001):
Vertex shader failed to compile with the following errors:
ERROR: 1:29: error(#335) Input variables, output variables, and uniform variables can only be in in blocks, out blocks, and uniform blocks
ERROR: error(#273) 1 compilation errors.  No code generated

Window #4

Failed to compile pixel shader: C:/Users/patdw_000/Documents/Dolphin Emulator/Dump/bad_ps_0003.txt
Debug info (ATI Technologies Inc., AMD Radeon R9 200 Series, 4.5.13416 Compatibility Profile Context 15.300.1025.1001):
Fragment shader failed to compile with the following errors:
ERROR: 1:50: error(#335) Input variables, output variables, and uniform variables can only be in in blocks, out blocks, and uniform blocks
ERROR: 1:59: error(#143) Undeclared identifier: tex0
ERROR: 1:59: error(#160) Cannot convert from: "float" to: "highp 3-component vector of vec3"
ERROR: 1:69: error(#143) Undeclared identifier: colors_0
ERROR: 1:69: error(#160) Cannot convert from: "float" to: "highp 4-component vector of vec4"
ERROR: 1:70: error(#143) Undeclared identifier: colors_1
ERROR: 1:70: error(#160) Cannot convert from: "float" to: "highp 4-component vector of vec4"
ERROR: error(#273) 7 compilation errors.  No code generated

I tried going back to previous Dolphin builds, but it still get these error windows.

Should I just reinstall the 16.3.1 beta driver, or is there a way to fix this while staying on 15.12?
I also tried deleting the Dolphin Emulator folder, but that didn't work either.
Did the errors happen in the beta driver?
(03-29-2016, 08:42 AM)helios747 Wrote: [ -> ]Did the errors happen in the beta driver?

No, the OpenGL backend worked just fine in 16.3.1.
That's a bit weird then that their stable drivers caused that. I imagine most AMD users use AMD's stable drivers and this is the first report I've seen of it. Normally I'd just write this up as AMD's drivers being lols as they usually are, but I'm not so sure right now.

Can you try uninstalling and reinstalling the driver using this utility

http://www.guru3d.com/files-details/display-driver-uninstaller-download.html

and deleting your shader cache folder in (Dolphin user folder, usually in Documents)\Cache\Shaders

Also, can you post the MD5 of the game you're trying to play (Unless it's a compressed image)

Right click on game in Dolphin > Properties > Info > Calculate MD5
Here's the MD5 for Fire Emblem: Path of Radiance.
4098af6d672eeae8749f9da67309c537
Alright, so I used guru3D to uninstall Crimson 15.12 in safe mode.
Then I restarted my computer and reinstalled 15.12 and rebooted again.
Then I deleted the shader cache folder, and tried running FE: PoR in OpenGL and it still didn't work.

Then I found out that apparently, a new stable driver, 16.3.2, was released yesterday.
But for some reason AMD Gaming Evolved wasn't notifying me and I didn't see it on AMD's website yesterday.
So, I went to AMD's web site to download 16.3.2, installed it, and rebooted.
I'm still having the same problem with the OpenGL backend.

Should I use guru3D again, and do a clean install of 16.3.2?
Hmmmm. That's really odd. I don't know what could cause that. Sorry. It could very well be that Dolphin is generating bad shaders for that game in that spot (I don't know shader code, so that error doesn't mean much to me), but we would need somebody with the same or similar hardware to test this.
I was just able to get FE: PoR to run in OpenGL in Dolphin 4.0-9122, so somewhere along the line an update to Dolphin might have caused the problem.
https://forums.dolphin-emu.org/Thread-green-notice-development-thread-unofficial-dolphin-bisection-tool-for-finding-broken-builds

Can you use this tool to find out what build broke it?

A < 100 build range is already pretty good.
Pages: 1 2 3