• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 809 810 811 812 813 ... 1189 Next »

Failed to create vertex shader?
View New Posts | View Today's Posts

Pages (2): 1 2 Next »
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Failed to create vertex shader?
08-12-2011, 03:38 AM
#1
MrNameless27
Unregistered
 
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?
Reply
08-12-2011, 03:59 AM
#2
neobrain Offline
"Wow, I made my code 1000x faster! That means I can make it 2048x slower now!"
**********
Developers (Some Administrators and Super Moderators)
Posts: 3,208
Threads: 50
Joined: Jun 2009
You didn't post the exact error message. You can copy it via ctrl+c.
My blog
Me on Twitter
My wishlist on Amazon.de
Find
Reply
08-12-2011, 04:07 AM
#3
MrNameless27
Unregistered
 
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;
}
Reply
08-12-2011, 05:44 AM
#4
Illuminante11
Unregistered
 
Question 
(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?
Reply
08-12-2011, 06:52 AM
#5
KneXX6
Unregistered
 
Same here. Got a single GTX460. Get the same error message as Nameless.
Reply
08-12-2011, 07:44 AM
#6
silveruniverse Offline
Spiteful
****
Posts: 557
Threads: 7
Joined: Sep 2009
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;
}
SilverUniverse on deviantART
[Image: sig.png]
Find
Reply
08-12-2011, 07:52 AM
#7
Illuminante11
Unregistered
 
Should we revert back to 7711, or just download 3.0?
Reply
08-12-2011, 07:52 AM (This post was last modified: 08-12-2011, 07:52 AM by Starscream.)
#8
Starscream Away
Above and Beyond
*******
Posts: 4,052
Threads: 213
Joined: Jun 2009
Fixed with r7714. You should still be using 3.0, though.
Asus Laptop: K53TA
OS: Windows 7 Home Premium, 64-Bit - SP1
CPU: AMD Llano A6-3400M, Quad-Core, 1.4GHz-2.6GHz (Overclocked)
GPU: AMD Radeon HD6650M, 1GB GDDR3 (Catalyst 13.1)
RAM: Samsung 4GB DDR3-1333










Find
Reply
08-12-2011, 08:18 AM
#9
Illuminante11
Unregistered
 
Are those releases beta's or something? Are they reliable?
Reply
08-12-2011, 08:30 AM
#10
Baloj
Unregistered
 
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.
Reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode