Dolphin, the GameCube and Wii emulator - Forums

Full Version: Failed to create vertex shader?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2

MrNameless27

Okay, I've been successfully running the 32-bit Dolphin on my system for a couple of years now, but just today upgraded to 64-bit Windows so that I can make use of all 4GB of RAM I have installed.

Having gotten past a couple of .dll file issues, the emulator opens, but when trying to run the only file I have at the moment (Cubivore) I get the 'failed to create vertex shader' message, with all renderers.

System specs are:


CPU: AMD Athlon 64 X2 Dual Core 5200+
GPU: NVIDIA GeForce 9500 GT
RAM: 4GB

I felt sort of safer posting because I actually have a half-decent graphics card, rather than an Intel integrated one. Can anybody help?
You didn't post the exact error message. You can copy it via ctrl+c.

MrNameless27

Failed to compile vertex shader!
This usually happens when trying to use Dolphin with an outdated GPU
or integrated GPU like the Intel GMA series.

If you're sure this is Dolphin's error anyway, post the contents of
./User/Dump/bad_vs_0000.txt along with this error message at the forums.

Debug info (vs_3_0):
C:\Users\Robin\Programs\Dolphin Emulator\memory(2,9): error X3000:
unrecognized identifier 'vec4'

CONTENTS OF bad_vs_0000.txt:

//Vertex Shader: comp:a000,
uniform vec4 ctrmtx[64] : register(c78);
uniform vec4 ctexmtx[24] : register(c54);
uniform vec4 cnmtx[32] : register(c142);
uniform vec4 cpnmtx[6] : register(c0);
uniform vec4 cpostmtx[64] : register(c174);
uniform vec4 clights[40] : register(c14);
uniform vec4 cmtrl[4] : register(c10);
uniform vec4 cproj[4] : register(c6);
uniform float4 cDepth : register(c238);
struct VS_OUTPUT {
float4 pos : POSITION;
float4 colors_0 : COLOR0;
float4 colors_1 : COLOR1;
float4 clipPos : TEXCOORD0;
};
VS_OUTPUT main(
float4 color0 : COLOR0,
float2 tex0 : TEXCOORD0,
float4 rawpos : POSITION) {
VS_OUTPUT o;
float4 pos = float4(dot(cpnmtx[0], rawpos), dot(cpnmtx[1], rawpos), dot(cpnmtx[2], rawpos), 1.0f);
float3 _norm0 = float3(0.0f, 0.0f, 0.0f);
o.pos = float4(dot(cproj[0], pos), dot(cproj[1], pos), dot(cproj[2], pos), dot(cproj[3], pos));
float4 mat, lacc;
float3 ldir, h;
float dist, dist2, attn;
{
mat = color0;
lacc = float4(1.0f, 1.0f, 1.0f, 1.0f);
lacc.w = 1.0f;
o.colors_0 = mat * saturate(lacc);
}
o.colors_1 = o.colors_0;
float4 coord = float4(0.0f, 0.0f, 1.0f, 1.0f);
o.clipPos = float4(pos.x,pos.y,o.pos.z,o.pos.w);
o.pos.z = cDepth.x * o.pos.w + o.pos.z * cDepth.y;
return o;
}

Illuminante11

(08-12-2011, 04:07 AM)MrNameless27 Wrote: [ -> ]Failed to compile vertex shader!
This usually happens when trying to use Dolphin with an outdated GPU
or integrated GPU like the Intel GMA series.

If you're sure this is Dolphin's error anyway, post the contents of
./User/Dump/bad_vs_0000.txt along with this error message at the forums.

Debug info (vs_3_0):
C:\Users\Robin\Programs\Dolphin Emulator\memory(2,9): error X3000:
unrecognized identifier 'vec4'

CONTENTS OF bad_vs_0000.txt:

//Vertex Shader: comp:a000,
uniform vec4 ctrmtx[64] : register(c78);
uniform vec4 ctexmtx[24] : register(c54);
uniform vec4 cnmtx[32] : register(c142);
uniform vec4 cpnmtx[6] : register(c0);
uniform vec4 cpostmtx[64] : register(c174);
uniform vec4 clights[40] : register(c14);
uniform vec4 cmtrl[4] : register(c10);
uniform vec4 cproj[4] : register(c6);
uniform float4 cDepth : register(c238);
struct VS_OUTPUT {
float4 pos : POSITION;
float4 colors_0 : COLOR0;
float4 colors_1 : COLOR1;
float4 clipPos : TEXCOORD0;
};
VS_OUTPUT main(
float4 color0 : COLOR0,
float2 tex0 : TEXCOORD0,
float4 rawpos : POSITION) {
VS_OUTPUT o;
float4 pos = float4(dot(cpnmtx[0], rawpos), dot(cpnmtx[1], rawpos), dot(cpnmtx[2], rawpos), 1.0f);
float3 _norm0 = float3(0.0f, 0.0f, 0.0f);
o.pos = float4(dot(cproj[0], pos), dot(cproj[1], pos), dot(cproj[2], pos), dot(cproj[3], pos));
float4 mat, lacc;
float3 ldir, h;
float dist, dist2, attn;
{
mat = color0;
lacc = float4(1.0f, 1.0f, 1.0f, 1.0f);
lacc.w = 1.0f;
o.colors_0 = mat * saturate(lacc);
}
o.colors_1 = o.colors_0;
float4 coord = float4(0.0f, 0.0f, 1.0f, 1.0f);
o.clipPos = float4(pos.x,pos.y,o.pos.z,o.pos.w);
o.pos.z = cDepth.x * o.pos.w + o.pos.z * cDepth.y;
return o;
}

I got the SAME EXACT ERROR using the latest build, except I have debug vs 5_0.

I have a Nvidia GTX460 (SLI) which is plenty good. I have tried DX11, 09, and openGL and all give the same error. I am using the very latest build (just downloaded today).

I am trying to play animal crossing; have not even tried other games yet.
After you click ok, the error keeps on showing up. There are no graphics, and the sound keeps on repeating. If you hold enter, the intro progresses with repeating/broken sound until you get to the title screen, which the frames then drop down to 30 FPS and the sound stops.

If you hold enter even more, the FPS drops continues to drop to like 2-1 FPS; I then get scared and terminate the program, thinking something critical might happen. I can not even exit dolphin without CTR-ALT-DELing the process.

Can someone help us out?


My specs are
Intel i7-930 overclocked to 4.00 GHz
Nvidia GTX460 x2 (SLI)
8 GB DDR3 RAM
Windows 7 x64
Anyone?

KneXX6

Same here. Got a single GTX460. Get the same error message as Nameless.
adding to the pot. Dolphin 3.0 works fine but the latest (7712M) doesn't.

- Dolphin 7712M x64
- spec in sig (current laptop)
- standard settings (with OpenMP and OpenCL enabled)


Debug info (ps_3_0):
D:\Dolphin-win-x64-r7712\memory(37,106): incorrect number of arguments to numeric-type constructor

Code:
//Vertex Shader: comp:8000,
uniform vec4 ctrmtx[64]  : register(c78);
uniform vec4 ctexmtx[24]  : register(c54);
uniform vec4 cnmtx[32]  : register(c142);
uniform vec4 cpnmtx[6]  : register(c0);
uniform vec4 cpostmtx[64]  : register(c174);
uniform vec4 clights[40]  : register(c14);
uniform vec4 cmtrl[4]  : register(c10);
uniform vec4 cproj[4]  : register(c6);
uniform float4 cDepth  : register(c238);
struct VS_OUTPUT {
  float4 pos : POSITION;
  float4 colors_0 : COLOR0;
  float4 colors_1 : COLOR1;
  float3 tex0 : TEXCOORD0;
  float4 clipPos : TEXCOORD1;
};
VS_OUTPUT main(
  float2 tex0 : TEXCOORD0,
  float4 rawpos : POSITION) {
VS_OUTPUT o;
float4 pos = float4(dot(cpnmtx[0], rawpos), dot(cpnmtx[1], rawpos), dot(cpnmtx[2], rawpos), 1.0f);
float3 _norm0 = float3(0.0f, 0.0f, 0.0f);
o.pos = float4(dot(cproj[0], pos), dot(cproj[1], pos), dot(cproj[2], pos), dot(cproj[3], pos));
float4 mat, lacc;
float3 ldir, h;
float dist, dist2, attn;
o.colors_0 = float4(1.0f, 1.0f, 1.0f, 1.0f);
o.colors_1 = o.colors_0;
float4 coord = float4(0.0f, 0.0f, 1.0f, 1.0f);
{
coord = float4(0.0f, 0.0f, 1.0f, 1.0f);
coord = float4(tex0.x, tex0.y, 1.0f, 1.0f);
o.tex0.xyz = float3(dot(coord, ctexmtx[0]), dot(coord, ctexmtx[1]), 1);
float4 P0 = cpostmtx[61];
float4 P1 = cpostmtx[62];
float4 P2 = cpostmtx[63];
o.tex0.xyz = float3(dot(P0.xyz, o.tex0.xyz) + P0.w, dot(P1.xyz, o.tex0.xyz) + P1.w, dot(P2.xyz, o.tex0.xyz) + P2.w);
}
o.clipPos = float4(pos.x,pos.y,o.pos.z,o.pos.w);
o.pos.z = cDepth.x * o.pos.w + o.pos.z * cDepth.y;
return o;
}

Illuminante11

Should we revert back to 7711, or just download 3.0?
Fixed with r7714. You should still be using 3.0, though.

Illuminante11

Are those releases beta's or something? Are they reliable?

Baloj

Good to hear.
I was having the problem with it too on 64bit build 7712.
My specs are:
Intel Core i5 2410M, 8GB DDR3 RAM, NVIDIA GeForce GT555M 1GB, Windows 7 Home Premium 64-bit

With OpenGL everything ran fine. DX9 did exactly what Illuminante11 described.

DX11 on the other hand forces me to choose my integrated Intel HD graphics and dedicated NVIDIA GeForce GT555M can't be chosen. That produced legit version of this error with log. But dedicated graphics card was switched on even before dolphin was started. Well my problem is that I can't choose my graphics card in DX11... so I apologize if this is already fixed somewhere on forums in which case I would like to be pointed at it or I would be grateful if someone could look into it.
Pages: 1 2