Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Failed to compile pixel 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 /home/raidzero/.dolphin-emu/Dump/bad_ps_0000.txt along with this error message at the forums.
- Debug info (7000):
- (0) : warning C6502: Profile option 'NumInstructionSlots' value (-1) too small; clamped to 0
- (0) : warning C6502: Profile option 'NumTexInstructionSlots' value (-1) too small; clamped to 0
- (0) : warning C6502: Profile option 'NumMathInstructionSlots' value (-1) too small; clamped to 0
- (0) : warning C6502: Profile option 'MaxTexIndirections' value (-1) too small; clamped to 1
- (0) : warning C6503: Profile option 'MaxDrawBuffers' value (8) too large; clamped to 4
- (0) : warning C6502: Profile option 'NumInstructionSlots' value (-1) too small; clamped to 0
- (0) : warning C6502: Profile option 'NumTexInstructionSlots' value (-1) too small; clamped to 0
- (0) : warning C6502: Profile option 'NumMathInstructionSlots' value (-1) too small; clamped to 0
- (0) : warning C6502: Profile option 'MaxTexIndirections' value (-1) too small; clamped to 1
- (0) : warning C6503: Profile option 'MaxDrawBuffers' value (8) too large; clamped to 4
- (0) : error C6002: Instruction limit of 0 exceeded; 10 instructions needed to compile program
- 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 /home/raidzero/.dolphin-emu/Dump/bad_vs_0000.txt along with this error message at the forums.
- Debug info (7000):
- (0) : warning C6502: Profile option 'MaxInstructions' value (-1) too small; clamped to 16
- (0) : warning C6503: Profile option 'NumTemps' value (320) too large; clamped to 32
- (0) : warning C6502: Profile option 'MaxInstructions' value (-1) too small; clamped to 16
- (0) : warning C6503: Profile option 'NumTemps' value (320) too large; clamped to 32
- (0) : error C6002: Instruction limit of 16 exceeded; 41 instructions needed to compile program
- cat ~/.dolphin-emu/Dump/bad_ps_0000.txt
- uniform samplerRECT samp0 : register(s0);
- void main(
- out float4 ocol0 : COLOR0,
- in float2 uv0 : TEXCOORD0)
- {
- float2 uv1 = float2(uv0.x + 1.0f, uv0.y);
- float3 c0 = texRECT(samp0, uv0).rgb;
- float3 c1 = texRECT(samp0, uv1).rgb;
- float3 y_const = float3(0.257f,0.504f,0.098f);
- float3 u_const = float3(-0.148f,-0.291f,0.439f);
- float3 v_const = float3(0.439f,-0.368f,-0.071f);
- float4 const3 = float4(0.0625f,0.5f,0.0625f,0.5f);
- float3 c01 = (c0 + c1) * 0.5f;
- ocol0 = float4(dot(c1,y_const),dot(c01,u_const),dot(c0,y_const),dot(c01, v_const)) + const3;
- }
- cat ~/.dolphin-emu/Dump/bad_vs_0000.txt
- //Vertex Shader: comp:a000,
- typedef struct { float4 T0, T1, T2; float4 N0, N1, N2; } s_cpnmtx;
- typedef struct { float4 t; } FLT4;
- typedef struct { FLT4 T[24]; } s_ctexmtx;
- typedef struct { FLT4 T[64]; } s_ctrmtx;
- typedef struct { FLT4 T[32]; } s_cnmtx;
- typedef struct { FLT4 T[64]; } s_cpostmtx;
- typedef struct { float4 col; float4 cosatt; float4 distatt; float4 pos; float4 dir; } Light;
- typedef struct { Light lights[8]; } s_clights;
- typedef struct { float4 C0, C1, C2, C3; } s_cmtrl;
- typedef struct { float4 T0, T1, T2, T3; } s_cproj;
- struct VS_OUTPUT {
- float4 pos : POSITION;
- float4 colors_0 : COLOR0;
- float4 colors_1 : COLOR1;
- float3 tex0 : TEXCOORD0;
- float3 tex1 : TEXCOORD1;
- float4 clipPos : TEXCOORD2;
- float4 Normal : TEXCOORD3;
- };
- uniform s_ctrmtx ctrmtx : register(c78);
- uniform s_ctexmtx ctexmtx : register(c54);
- uniform s_cnmtx cnmtx : register(c142);
- uniform s_cpnmtx cpnmtx : register(c0);
- uniform s_cpostmtx cpostmtx : register(c174);
- uniform s_clights clights : register(c14);
- uniform s_cmtrl cmtrl : register(c10);
- uniform s_cproj cproj : register(c6);
- uniform float4 cDepth : register(c238);
- VS_OUTPUT main(
- float4 color0 : COLOR0,
- float2 tex0 : TEXCOORD0,
- float4 rawpos : POSITION) {
- VS_OUTPUT o;
- float4 pos = float4(dot(cpnmtx.T0, rawpos), dot(cpnmtx.T1, rawpos), dot(cpnmtx.T2, rawpos), 1.0f);
- float3 _norm0 = float3(0.0f, 0.0f, 0.0f);
- o.pos = float4(dot(cproj.T0, pos), dot(cproj.T1, pos), dot(cproj.T2, pos), dot(cproj.T3, pos));
- float4 mat, lacc;
- float3 ldir, h;
- float dist, dist2, attn;
- {
- mat = color0;
- lacc = float4(1.0f, 1.0f, 1.0f, 1.0f);
- mat.w = cmtrl.C2.w;
- 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);
- {
- 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.T[0].t), dot(coord, ctexmtx.T[1].t), 1);
- float4 P0 = cpostmtx.T[61].t;
- float4 P1 = cpostmtx.T[62].t;
- float4 P2 = cpostmtx.T[63].t;
- 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);
- }
- {
- coord = float4(0.0f, 0.0f, 1.0f, 1.0f);
- o.tex1.xyz = float3(dot(coord, ctexmtx.T[3].t), dot(coord, ctexmtx.T[4].t), 1);
- float4 P0 = cpostmtx.T[61].t;
- float4 P1 = cpostmtx.T[62].t;
- float4 P2 = cpostmtx.T[63].t;
- o.tex1.xyz = float3(dot(P0.xyz, o.tex1.xyz) + P0.w, dot(P1.xyz, o.tex1.xyz) + P1.w, dot(P2.xyz, o.tex1.xyz) + P2.w);
- }
- o.clipPos = float4(pos.x,pos.y,o.pos.z,o.pos.w);
- o.Normal = float4(_norm0.x,_norm0.y,_norm0.z,pos.z);
- o.colors_0 = color0;
- o.pos.z = o.pos.w + o.pos.z * 2.0f;
- o.pos.z = o.pos.z * 1048575.0f/1048576.0f;
- return o;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement