Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.77 KB | None | 0 0
  1. [ 24.847811] HW.GPU <Error> video_core\gpu.cpp:CallMethod:148: Special buffer methods other than Bind are not implemented
  2. [ 24.847819] HW.GPU <Warning> video_core\engines\maxwell_dma.cpp:HandleCopy:37: Requested a DMA copy
  3. [ 24.847977] Render.OpenGL <Critical> video_core\renderer_opengl\renderer_opengl.cpp:DebugHandler:495: API ERROR 1282: GL_INVALID_OPERATION error generated. State(s) are invalid: program pipeline config.
  4. [ 24.848210] HW.GPU <Warning> video_core\shader\decode\memory.cpp:DecodeMemory:241: TEXS.NODEP implementation is incomplete
  5. [ 24.850576] Render.OpenGL <Error> video_core\renderer_opengl\gl_shader_util.cpp:LoadShader:44: Error compiling fragment shader:
  6. 0(99) : error C0000: syntax error, unexpected ';', expecting "::" at token ";"
  7. 0(101) : error C0000: syntax error, unexpected ';', expecting "::" at token ";"
  8.  
  9. [ 24.850810] Render.OpenGL <Error> video_core\renderer_opengl\gl_shader_util.h:LoadProgram:79: Error linking shader:
  10. Fragment info
  11. -------------
  12. 0(99) : error C0000: syntax error, unexpected ';', expecting "::" at token ";"
  13. 0(101) : error C0000: syntax error, unexpected ';', expecting "::" at token ";"
  14. (0) : error C2003: incompatible options for link
  15.  
  16. [ 24.850825] Render.OpenGL <Info> video_core\renderer_opengl\gl_shader_util.h:LogShaderSource:32: Shader source #version 430 core
  17. #define EMULATION_UBO_BINDING 2
  18. #define SAMPLER_BINDING_0 0
  19. #extension GL_ARB_separate_shader_objects : enable
  20.  
  21. // Shader Unique Id: FS9ae16a3b2f90404f
  22.  
  23. #define MAX_CONSTBUFFER_ELEMENTS 4096
  24. #define MAX_GLOBALMEMORY_ELEMENTS 16384
  25. #define ftoi floatBitsToInt
  26. #define ftou floatBitsToUint
  27. #define itof intBitsToFloat
  28. #define utof uintBitsToFloat
  29.  
  30. float fromHalf2(vec2 pair) {
  31. return utof(packHalf2x16(pair));
  32. }
  33.  
  34. vec2 toHalf2(float value) {
  35. return unpackHalf2x16(ftou(value));
  36. }
  37.  
  38. layout (location = 0) out vec4 FragColor0;
  39. layout (location = 1) out vec4 FragColor1;
  40. layout (location = 2) out vec4 FragColor2;
  41. layout (location = 3) out vec4 FragColor3;
  42. layout (location = 4) out vec4 FragColor4;
  43. layout (location = 5) out vec4 FragColor5;
  44. layout (location = 6) out vec4 FragColor6;
  45. layout (location = 7) out vec4 FragColor7;
  46.  
  47. layout (location = 0) in vec4 position;
  48.  
  49. layout (std140, binding = EMULATION_UBO_BINDING) uniform fs_config {
  50. vec4 viewport_flip;
  51. uvec4 config_pack; // instance_id, flip_stage, y_direction, padding
  52. uvec4 alpha_test;
  53. };
  54.  
  55. bool AlphaFunc(in float value) {
  56. float ref = uintBitsToFloat(alpha_test[2]);
  57. switch (alpha_test[1]) {
  58. case 1:
  59. return false;
  60. case 2:
  61. return value < ref;
  62. case 3:
  63. return value == ref;
  64. case 4:
  65. return value <= ref;
  66. case 5:
  67. return value > ref;
  68. case 6:
  69. return value != ref;
  70. case 7:
  71. return value >= ref;
  72. case 8:
  73. return true;
  74. default:
  75. return false;
  76. }
  77. }
  78.  
  79. float gpr_0_fragment = 0;
  80. float gpr_1_fragment = 0;
  81. float gpr_2_fragment = 0;
  82. float gpr_3_fragment = 0;
  83. float gpr_4_fragment = 0;
  84. float gpr_5_fragment = 0;
  85. float gpr_6_fragment = 0;
  86. float gpr_7_fragment = 0;
  87. float gpr_8_fragment = 0;
  88. float gpr_256_fragment = 0;
  89. float gpr_257_fragment = 0;
  90.  
  91. bool zero_flag_fragment = false;
  92. bool sign_flag_fragment = false;
  93. bool carry_flag_fragment = false;
  94. bool overflow_flag_fragment = false;
  95.  
  96.  
  97. layout (binding = SAMPLER_BINDING_0) uniform sampler2D sampler_0_fragment;
  98.  
  99. void execute_fragment() {
  100. uint jmp_to = 10u;
  101. uint flow_stack[20];
  102. uint flow_stack_top = 0u;
  103. while (true) {
  104. switch (jmp_to) {
  105. case 0xau: {
  106. // 11: MOV32_IMM (0x0103f0000007f003)
  107. gpr_3_fragment = utof(0x3f000000u);
  108. // 12: IPA (0xe003ff87cff7ff02)
  109. gpr_2_fragment = 1.0f;
  110. // 13: MUFU (0x5080000000470202)
  111. float tmp1 = (utof(0x3f800000u) / gpr_2_fragment);
  112. gpr_2_fragment = tmp1;
  113. // 15: IPA (0xe043ffb00027ff00)
  114. gpr_0_fragment = ;
  115. // 16: IPA (0xe043ffb04027ff01)
  116. gpr_1_fragment = ;
  117. // 17: TEXS (0xd832008ff0170000)
  118. gpr_256_fragment = texture(sampler_0_fragment, vec2(gpr_0_fragment, gpr_1_fragment)).x;
  119. gpr_257_fragment = texture(sampler_0_fragment, vec2(gpr_0_fragment, gpr_1_fragment)).y;
  120. gpr_0_fragment = gpr_256_fragment;
  121. gpr_1_fragment = gpr_257_fragment;
  122. // 19: FFMA_IMM (0x32a001c37f070004)
  123. float tmp2 = fma(gpr_0_fragment, utof(0x437f0000u), gpr_3_fragment);
  124. gpr_4_fragment = tmp2;
  125. // 20: FFMA_IMM (0x32a001c37f070105)
  126. float tmp3 = fma(gpr_1_fragment, utof(0x437f0000u), gpr_3_fragment);
  127. gpr_5_fragment = tmp3;
  128. // 21: F2F_R (0x5ca8148000470a04)
  129. float tmp4 = floor(gpr_4_fragment);
  130. gpr_4_fragment = tmp4;
  131. // 23: F2F_R (0x5ca8148000570a05)
  132. float tmp5 = floor(gpr_5_fragment);
  133. gpr_5_fragment = tmp5;
  134. // 24: FMUL_IMM (0x3868103d80070406)
  135. float tmp6 = (gpr_4_fragment * utof(0x3d800000u));
  136. gpr_6_fragment = tmp6;
  137. // 25: FMUL_IMM (0x3868103d80070507)
  138. float tmp7 = (gpr_5_fragment * utof(0x3d800000u));
  139. gpr_7_fragment = tmp7;
  140. // 27: F2F_R (0x5ca8148000670a03)
  141. float tmp8 = floor(gpr_6_fragment);
  142. gpr_3_fragment = tmp8;
  143. // 28: F2F_R (0x5ca8148000770a08)
  144. float tmp9 = floor(gpr_7_fragment);
  145. gpr_8_fragment = tmp9;
  146. // 29: FADD_R (0x5c58300000370602)
  147. float tmp10 = (-(gpr_3_fragment));
  148. float tmp11 = (gpr_6_fragment + tmp10);
  149. gpr_2_fragment = tmp11;
  150. // 31: FADD_R (0x5c58300000870700)
  151. float tmp12 = (-(gpr_8_fragment));
  152. float tmp13 = (gpr_7_fragment + tmp12);
  153. gpr_0_fragment = tmp13;
  154. // 32: FMUL32_IMM (0x1ea3d88888970301)
  155. float tmp14 = (gpr_3_fragment * utof(0x3d888889u));
  156. gpr_1_fragment = clamp(tmp14, utof(0u), utof(0x3f800000u));
  157. // 33: FMUL32_IMM (0x1ea3d88888970803)
  158. float tmp15 = (gpr_8_fragment * utof(0x3d888889u));
  159. gpr_3_fragment = clamp(tmp15, utof(0u), utof(0x3f800000u));
  160. // 35: FMUL32_IMM (0x1ea3f88888970202)
  161. float tmp16 = (gpr_2_fragment * utof(0x3f888889u));
  162. gpr_2_fragment = clamp(tmp16, utof(0u), utof(0x3f800000u));
  163. // 36: FMUL32_IMM (0x1ea3f88888970000)
  164. float tmp17 = (gpr_0_fragment * utof(0x3f888889u));
  165. gpr_0_fragment = clamp(tmp17, utof(0u), utof(0x3f800000u));
  166. // 37: EXIT (0xe30000000007000f)
  167. if (alpha_test[0] != 0) {
  168. if (!AlphaFunc(gpr_3_fragment)) discard;
  169. }
  170. FragColor0[0] = gpr_0_fragment;
  171. FragColor0[1] = gpr_1_fragment;
  172. FragColor0[2] = gpr_2_fragment;
  173. FragColor0[3] = gpr_3_fragment;
  174. return;
  175. }
  176. default: return;
  177. }
  178. }
  179. }
  180.  
  181. void main() {
  182. execute_fragment();
  183. }
  184.  
  185.  
  186. [ 24.851025] Render.OpenGL <Critical> video_core\renderer_opengl\renderer_opengl.cpp:DebugHandler:495: API ERROR 1282: GL_INVALID_OPERATION error generated. <program> object is not successfully linked.
  187. [ 24.851031] Render.OpenGL <Critical> video_core\renderer_opengl\renderer_opengl.cpp:DebugHandler:495: API ERROR 1282: GL_INVALID_OPERATION error generated. <program> object is not successfully linked.
  188. [ 24.851068] Render.OpenGL <Critical> video_core\renderer_opengl\renderer_opengl.cpp:DebugHandler:495: API ERROR 1282: GL_INVALID_OPERATION error generated. State(s) are invalid: program pipeline config.
  189. [ 24.851971] Render.OpenGL <Critical> video_core\renderer_opengl\renderer_opengl.cpp:DebugHandler:495: API ERROR 1282: GL_INVALID_OPERATION error generated. <program> object is not successfully linked.
  190. [ 24.851990] Render.OpenGL <Critical> video_core\renderer_opengl\renderer_opengl.cpp:DebugHandler:495: API ERROR 1282: GL_INVALID_OPERATION error generated. <program> object is not successfully linked.
  191. [ 24.852020] Render.OpenGL <Critical> video_core\renderer_opengl\renderer_opengl.cpp:DebugHandler:495: API ERROR 1282: GL_INVALID_OPERATION error generated. State(s) are invalid: program pipeline config.
  192. [ 24.852923] Render.OpenGL <Critical> video_core\renderer_opengl\renderer_opengl.cpp:DebugHandler:495: API ERROR 1282: GL_INVALID_OPERATION error generated. State(s) are invalid: program pipeline config.
  193. [ 24.853830] Render.OpenGL <Critical> video_core\renderer_opengl\renderer_opengl.cpp:DebugHandler:495: API ERROR 1282: GL_INVALID_OPERATION error generated. State(s) are invalid: program pipeline config.
  194. [ 24.854834] Render.OpenGL <Critical> video_core\renderer_opengl\renderer_opengl.cpp:DebugHandler:495: API ERROR 1282: GL_INVALID_OPERATION error generated. State(s) are invalid: program pipeline config.
  195. [ 24.855576] Render.OpenGL <Critical> video_core\renderer_opengl\renderer_opengl.cpp:DebugHandler:495: API ERROR 1282: GL_INVALID_OPERATION error generated. <program> object is not successfully linked.
  196. [ 24.855584] Render.OpenGL <Critical> video_core\renderer_opengl\renderer_opengl.cpp:DebugHandler:495: API ERROR 1282: GL_INVALID_OPERATION error generated. <program> object is not successfully linked.
  197. [ 24.855602] Render.OpenGL <Critical> video_core\renderer_opengl\renderer_opengl.cpp:DebugHandler:495: API ERROR 1282: GL_INVALID_OPERATION error generated. State(s) are invalid: program pipeline config.
  198. [ 24.856425] HW.GPU <Error> video_core\gpu.cpp:CallMethod:148: Special buffer methods other than Bind are not implemented
  199. [ 24.856430] HW.GPU <Error> video_core\gpu.cpp:CallMethod:148: Special buffer methods other than Bind are not implemented
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement