Advertisement
Guest User

Untitled

a guest
Feb 13th, 2013
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.43 KB | None | 0 0
  1. Failed to compile pixel shader!
  2. This usually happens when trying to use Dolphin with an outdated GPU or integrated GPU like the Intel GMA series.
  3.  
  4. 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.
  5.  
  6. Debug info (7000):
  7. (0) : warning C6502: Profile option 'NumInstructionSlots' value (-1) too small; clamped to 0
  8. (0) : warning C6502: Profile option 'NumTexInstructionSlots' value (-1) too small; clamped to 0
  9. (0) : warning C6502: Profile option 'NumMathInstructionSlots' value (-1) too small; clamped to 0
  10. (0) : warning C6502: Profile option 'MaxTexIndirections' value (-1) too small; clamped to 1
  11. (0) : warning C6503: Profile option 'MaxDrawBuffers' value (8) too large; clamped to 4
  12. (0) : warning C6502: Profile option 'NumInstructionSlots' value (-1) too small; clamped to 0
  13. (0) : warning C6502: Profile option 'NumTexInstructionSlots' value (-1) too small; clamped to 0
  14. (0) : warning C6502: Profile option 'NumMathInstructionSlots' value (-1) too small; clamped to 0
  15. (0) : warning C6502: Profile option 'MaxTexIndirections' value (-1) too small; clamped to 1
  16. (0) : warning C6503: Profile option 'MaxDrawBuffers' value (8) too large; clamped to 4
  17. (0) : error C6002: Instruction limit of 0 exceeded; 10 instructions needed to compile program
  18.  
  19. Failed to compile vertex shader!
  20. This usually happens when trying to use Dolphin with an outdated GPU or integrated GPU like the Intel GMA series.
  21.  
  22. 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.
  23.  
  24. Debug info (7000):
  25. (0) : warning C6502: Profile option 'MaxInstructions' value (-1) too small; clamped to 16
  26. (0) : warning C6503: Profile option 'NumTemps' value (320) too large; clamped to 32
  27. (0) : warning C6502: Profile option 'MaxInstructions' value (-1) too small; clamped to 16
  28. (0) : warning C6503: Profile option 'NumTemps' value (320) too large; clamped to 32
  29. (0) : error C6002: Instruction limit of 16 exceeded; 41 instructions needed to compile program
  30.  
  31.  
  32. cat ~/.dolphin-emu/Dump/bad_ps_0000.txt
  33. uniform samplerRECT samp0 : register(s0);
  34. void main(
  35. out float4 ocol0 : COLOR0,
  36. in float2 uv0 : TEXCOORD0)
  37. {
  38. float2 uv1 = float2(uv0.x + 1.0f, uv0.y);
  39. float3 c0 = texRECT(samp0, uv0).rgb;
  40. float3 c1 = texRECT(samp0, uv1).rgb;
  41. float3 y_const = float3(0.257f,0.504f,0.098f);
  42. float3 u_const = float3(-0.148f,-0.291f,0.439f);
  43. float3 v_const = float3(0.439f,-0.368f,-0.071f);
  44. float4 const3 = float4(0.0625f,0.5f,0.0625f,0.5f);
  45. float3 c01 = (c0 + c1) * 0.5f;
  46. ocol0 = float4(dot(c1,y_const),dot(c01,u_const),dot(c0,y_const),dot(c01, v_const)) + const3;
  47. }
  48.  
  49.  
  50. cat ~/.dolphin-emu/Dump/bad_vs_0000.txt
  51. //Vertex Shader: comp:a000,
  52. typedef struct { float4 T0, T1, T2; float4 N0, N1, N2; } s_cpnmtx;
  53. typedef struct { float4 t; } FLT4;
  54. typedef struct { FLT4 T[24]; } s_ctexmtx;
  55. typedef struct { FLT4 T[64]; } s_ctrmtx;
  56. typedef struct { FLT4 T[32]; } s_cnmtx;
  57. typedef struct { FLT4 T[64]; } s_cpostmtx;
  58. typedef struct { float4 col; float4 cosatt; float4 distatt; float4 pos; float4 dir; } Light;
  59. typedef struct { Light lights[8]; } s_clights;
  60. typedef struct { float4 C0, C1, C2, C3; } s_cmtrl;
  61. typedef struct { float4 T0, T1, T2, T3; } s_cproj;
  62. struct VS_OUTPUT {
  63. float4 pos : POSITION;
  64. float4 colors_0 : COLOR0;
  65. float4 colors_1 : COLOR1;
  66. float3 tex0 : TEXCOORD0;
  67. float3 tex1 : TEXCOORD1;
  68. float4 clipPos : TEXCOORD2;
  69. float4 Normal : TEXCOORD3;
  70. };
  71. uniform s_ctrmtx ctrmtx : register(c78);
  72. uniform s_ctexmtx ctexmtx : register(c54);
  73. uniform s_cnmtx cnmtx : register(c142);
  74. uniform s_cpnmtx cpnmtx : register(c0);
  75. uniform s_cpostmtx cpostmtx : register(c174);
  76. uniform s_clights clights : register(c14);
  77. uniform s_cmtrl cmtrl : register(c10);
  78. uniform s_cproj cproj : register(c6);
  79. uniform float4 cDepth : register(c238);
  80. VS_OUTPUT main(
  81. float4 color0 : COLOR0,
  82. float2 tex0 : TEXCOORD0,
  83. float4 rawpos : POSITION) {
  84. VS_OUTPUT o;
  85. float4 pos = float4(dot(cpnmtx.T0, rawpos), dot(cpnmtx.T1, rawpos), dot(cpnmtx.T2, rawpos), 1.0f);
  86. float3 _norm0 = float3(0.0f, 0.0f, 0.0f);
  87. o.pos = float4(dot(cproj.T0, pos), dot(cproj.T1, pos), dot(cproj.T2, pos), dot(cproj.T3, pos));
  88. float4 mat, lacc;
  89. float3 ldir, h;
  90. float dist, dist2, attn;
  91. {
  92. mat = color0;
  93. lacc = float4(1.0f, 1.0f, 1.0f, 1.0f);
  94. mat.w = cmtrl.C2.w;
  95. lacc.w = 1.0f;
  96. o.colors_0 = mat * saturate(lacc);
  97. }
  98. o.colors_1 = o.colors_0;
  99. float4 coord = float4(0.0f, 0.0f, 1.0f, 1.0f);
  100. {
  101. coord = float4(0.0f, 0.0f, 1.0f, 1.0f);
  102. coord = float4(tex0.x, tex0.y, 1.0f, 1.0f);
  103. o.tex0.xyz = float3(dot(coord, ctexmtx.T[0].t), dot(coord, ctexmtx.T[1].t), 1);
  104. float4 P0 = cpostmtx.T[61].t;
  105. float4 P1 = cpostmtx.T[62].t;
  106. float4 P2 = cpostmtx.T[63].t;
  107. 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);
  108. }
  109. {
  110. coord = float4(0.0f, 0.0f, 1.0f, 1.0f);
  111. o.tex1.xyz = float3(dot(coord, ctexmtx.T[3].t), dot(coord, ctexmtx.T[4].t), 1);
  112. float4 P0 = cpostmtx.T[61].t;
  113. float4 P1 = cpostmtx.T[62].t;
  114. float4 P2 = cpostmtx.T[63].t;
  115. 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);
  116. }
  117. o.clipPos = float4(pos.x,pos.y,o.pos.z,o.pos.w);
  118. o.Normal = float4(_norm0.x,_norm0.y,_norm0.z,pos.z);
  119. o.colors_0 = color0;
  120. o.pos.z = o.pos.w + o.pos.z * 2.0f;
  121. o.pos.z = o.pos.z * 1048575.0f/1048576.0f;
  122. return o;
  123. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement