Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ 11.795607] Render.OpenGL <Error> video_core\renderer_opengl\gl_shader_util.cpp:LoadShader:44: Error compiling vertex shader:
- 0(112) : error C0000: syntax error, unexpected ';', expecting "::" at token ";"
- 0(126) : error C0000: syntax error, unexpected ';', expecting "::" at token ";"
- 0(145) : error C0000: syntax error, unexpected ';', expecting "::" at token ";"
- 0(150) : error C0000: syntax error, unexpected ';', expecting "::" at token ";"
- 0(155) : error C0000: syntax error, unexpected ';', expecting "::" at token ";"
- 0(160) : error C0000: syntax error, unexpected ';', expecting "::" at token ";"
- 0(165) : error C0000: syntax error, unexpected ';', expecting "::" at token ";"
- 0(170) : error C0000: syntax error, unexpected ';', expecting "::" at token ";"
- [ 11.796150] Render.OpenGL <Error> video_core/renderer_opengl/gl_shader_util.h:LoadProgram:79: Error linking shader:
- Vertex info
- -----------
- 0(112) : error C0000: syntax error, unexpected ';', expecting "::" at token ";"
- 0(126) : error C0000: syntax error, unexpected ';', expecting "::" at token ";"
- 0(145) : error C0000: syntax error, unexpected ';', expecting "::" at token ";"
- 0(150) : error C0000: syntax error, unexpected ';', expecting "::" at token ";"
- 0(155) : error C0000: syntax error, unexpected ';', expecting "::" at token ";"
- 0(160) : error C0000: syntax error, unexpected ';', expecting "::" at token ";"
- 0(165) : error C0000: syntax error, unexpected ';', expecting "::" at token ";"
- 0(170) : error C0000: syntax error, unexpected ';', expecting "::" at token ";"
- (0) : error C2003: incompatible options for link
- [ 11.796178] Render.OpenGL <Info> video_core/renderer_opengl/gl_shader_util.h:LogShaderSource:32: Shader source #version 430 core
- #define EMULATION_UBO_BINDING 0
- #define CBUF_BINDING_3 1
- #define CBUF_BINDING_4 2
- #extension GL_ARB_separate_shader_objects : enable
- // Shader Unique Id: VS9250918d009dbeef
- #define MAX_CONSTBUFFER_ELEMENTS 4096
- #define MAX_GLOBALMEMORY_ELEMENTS 16384
- #define ftoi floatBitsToInt
- #define ftou floatBitsToUint
- #define itof intBitsToFloat
- #define utof uintBitsToFloat
- float fromHalf2(vec2 pair) {
- return utof(packHalf2x16(pair));
- }
- vec2 toHalf2(float value) {
- return unpackHalf2x16(ftou(value));
- }
- layout (location = 0) out vec4 position;
- layout (std140, binding = EMULATION_UBO_BINDING) uniform vs_config {
- vec4 viewport_flip;
- uvec4 config_pack; // instance_id, flip_stage, y_direction, padding
- uvec4 alpha_test;
- };
- out gl_PerVertex {
- vec4 gl_Position;
- };
- float gpr_0_vertex = 0;
- float gpr_1_vertex = 0;
- float gpr_2_vertex = 0;
- float gpr_3_vertex = 0;
- float gpr_4_vertex = 0;
- float gpr_5_vertex = 0;
- float gpr_6_vertex = 0;
- float gpr_7_vertex = 0;
- float gpr_8_vertex = 0;
- float gpr_9_vertex = 0;
- float gpr_10_vertex = 0;
- float gpr_11_vertex = 0;
- float gpr_12_vertex = 0;
- float gpr_13_vertex = 0;
- float gpr_14_vertex = 0;
- float gpr_15_vertex = 0;
- float gpr_16_vertex = 0;
- float gpr_17_vertex = 0;
- float gpr_18_vertex = 0;
- float gpr_19_vertex = 0;
- bool zero_flag_vertex = false;
- bool sign_flag_vertex = false;
- bool carry_flag_vertex = false;
- bool overflow_flag_vertex = false;
- layout (location = 0) in vec4 input_attr_0_vertex;
- layout (location = 5) in vec4 input_attr_5_vertex;
- layout (location = 1) out vec4 output_attr_0_vertex;
- layout (location = 2) out vec4 output_attr_1_vertex;
- layout (location = 3) out vec4 output_attr_2_vertex;
- layout (location = 4) out vec4 output_attr_3_vertex;
- layout (location = 5) out vec4 output_attr_4_vertex;
- layout (std140, binding = CBUF_BINDING_3) uniform cbuf_block_3_vertex {
- vec4 cbuf_3_vertex[MAX_CONSTBUFFER_ELEMENTS];
- };
- layout (std140, binding = CBUF_BINDING_4) uniform cbuf_block_4_vertex {
- vec4 cbuf_4_vertex[MAX_CONSTBUFFER_ELEMENTS];
- };
- void execute_vertex() {
- uint jmp_to = 10u;
- uint flow_stack[20];
- uint flow_stack_top = 0u;
- while (true) {
- switch (jmp_to) {
- case 0xau: {
- // 11: MOV_C (0x4c98079004170001)
- gpr_1_vertex = cbuf_4_vertex[16][1];
- // 12: LD_A (0xefd87f800847ff0b)
- gpr_11_vertex = input_attr_0_vertex.y;
- // 13: MOV_C (0x4c98079004070000)
- gpr_0_vertex = cbuf_4_vertex[16][0];
- // 15: LD_A (0xefd87f800d07ff0d)
- gpr_13_vertex = input_attr_5_vertex.x;
- // 16: SHL_IMM (0x3848000000470101)
- precise float tmp1 = itof((ftoi(gpr_1_vertex) << ftou(utof(4u))));
- gpr_1_vertex = tmp1;
- // 17: LD_A (0xefd87f800807ff09)
- gpr_9_vertex = input_attr_0_vertex.x;
- // 19: MOV_C (0x4c98079004270011)
- gpr_17_vertex = cbuf_4_vertex[16][2];
- // 21: MOV_C (0x4c98079004370012)
- gpr_18_vertex = cbuf_4_vertex[16][3];
- // 23: LD_A (0xefd87f800887ff06)
- gpr_6_vertex = input_attr_0_vertex.z;
- // 24: SHL_IMM (0x3848000000470000)
- precise float tmp2 = itof((ftoi(gpr_0_vertex) << ftou(utof(4u))));
- gpr_0_vertex = tmp2;
- // 27: SHL_IMM (0x3848000000471111)
- precise float tmp3 = itof((ftoi(gpr_17_vertex) << ftou(utof(4u))));
- gpr_17_vertex = tmp3;
- // 28: LD_A (0xefd87f8000070505)
- gpr_5_vertex = ;
- // 29: SHL_IMM (0x3848000000471212)
- precise float tmp4 = itof((ftoi(gpr_18_vertex) << ftou(utof(4u))));
- gpr_18_vertex = tmp4;
- // 32: FMUL_C (0x4c68100c00470b0f)
- precise float tmp5 = (gpr_11_vertex * cbuf_3_vertex[1][0]);
- gpr_15_vertex = tmp5;
- // 35: FMUL_C (0x4c68100c00570b10)
- precise float tmp6 = (gpr_11_vertex * cbuf_3_vertex[1][1]);
- gpr_16_vertex = tmp6;
- // 37: FMUL_IMM (0x3868104000070d13)
- precise float tmp7 = (gpr_13_vertex * utof(0x40000000u));
- gpr_19_vertex = tmp7;
- // 39: LD_A (0xefd87f8000070404)
- gpr_4_vertex = ;
- // 40: FFMA_CR (0x49a0078c0007090d)
- precise float tmp8 = fma(gpr_9_vertex, cbuf_3_vertex[0][0], gpr_15_vertex);
- gpr_13_vertex = tmp8;
- // 43: FMUL_C (0x4c68100c00670b0f)
- precise float tmp9 = (gpr_11_vertex * cbuf_3_vertex[1][2]);
- gpr_15_vertex = tmp9;
- // 45: FMUL_C (0x4c68100c00770b0b)
- precise float tmp10 = (gpr_11_vertex * cbuf_3_vertex[1][3]);
- gpr_11_vertex = tmp10;
- // 48: FFMA_CR (0x49a0080c00170910)
- precise float tmp11 = fma(gpr_9_vertex, cbuf_3_vertex[0][1], gpr_16_vertex);
- gpr_16_vertex = tmp11;
- // 49: LD_A (0xefd87f800d87ff0a)
- gpr_10_vertex = input_attr_5_vertex.z;
- // 51: FFMA_CR (0x49a0078c0027090f)
- precise float tmp12 = fma(gpr_9_vertex, cbuf_3_vertex[0][2], gpr_15_vertex);
- gpr_15_vertex = tmp12;
- // 52: LD_A (0xefd87f8000070808)
- gpr_8_vertex = ;
- // 53: FFMA_CR (0x49a0058c00370909)
- precise float tmp13 = fma(gpr_9_vertex, cbuf_3_vertex[0][3], gpr_11_vertex);
- gpr_9_vertex = tmp13;
- // 55: LD_A (0xefd87f8000070202)
- gpr_2_vertex = ;
- // 56: FFMA_CR (0x49a0068c0087060d)
- precise float tmp14 = fma(gpr_6_vertex, cbuf_3_vertex[2][0], gpr_13_vertex);
- gpr_13_vertex = tmp14;
- // 57: LD_A (0xefd87f8000071401)
- gpr_1_vertex = ;
- // 59: FFMA_CR (0x49a0080c00970610)
- precise float tmp15 = fma(gpr_6_vertex, cbuf_3_vertex[2][1], gpr_16_vertex);
- gpr_16_vertex = tmp15;
- // 60: LD_A (0xefd87f8000070707)
- gpr_7_vertex = ;
- // 61: FFMA_CR (0x49a0078c00a7060f)
- precise float tmp16 = fma(gpr_6_vertex, cbuf_3_vertex[2][2], gpr_15_vertex);
- gpr_15_vertex = tmp16;
- // 63: LD_A (0xefd87f8000070000)
- gpr_0_vertex = ;
- // 64: FFMA_CR (0x49a0048c00b70606)
- precise float tmp17 = fma(gpr_6_vertex, cbuf_3_vertex[2][3], gpr_9_vertex);
- gpr_6_vertex = tmp17;
- // 65: LD_A (0xefd87f8000070303)
- gpr_3_vertex = ;
- // 67: FMUL_C (0x4c68101001470509)
- precise float tmp18 = (gpr_5_vertex * cbuf_4_vertex[5][0]);
- gpr_9_vertex = tmp18;
- // 68: LD_A (0xefd87f800d47ff0c)
- gpr_12_vertex = input_attr_5_vertex.y;
- // 69: FMUL_C (0x4c68101001570505)
- precise float tmp19 = (gpr_5_vertex * cbuf_4_vertex[5][1]);
- gpr_5_vertex = tmp19;
- // 71: LD_A (0xefd87f800dc7ff0e)
- gpr_14_vertex = input_attr_5_vertex.w;
- // 72: FMUL_IMM (0x3868104000070a11)
- precise float tmp20 = (gpr_10_vertex * utof(0x40000000u));
- gpr_17_vertex = tmp20;
- // 73: ST_A (0xeff07f800c07ff13)
- output_attr_4_vertex.x = gpr_19_vertex;
- // 75: FFMA_CR (0x49a0049001070409)
- precise float tmp21 = fma(gpr_4_vertex, cbuf_4_vertex[4][0], gpr_9_vertex);
- gpr_9_vertex = tmp21;
- // 76: ST_A (0xeff07f800c87ff11)
- output_attr_4_vertex.z = gpr_17_vertex;
- // 77: FFMA_CR (0x49a0029001170404)
- precise float tmp22 = fma(gpr_4_vertex, cbuf_4_vertex[4][1], gpr_5_vertex);
- gpr_4_vertex = tmp22;
- // 79: FMUL_C (0x4c6810100047080a)
- precise float tmp23 = (gpr_8_vertex * cbuf_4_vertex[1][0]);
- gpr_10_vertex = tmp23;
- // 80: FMUL_C (0x4c6810100247020b)
- precise float tmp24 = (gpr_2_vertex * cbuf_4_vertex[9][0]);
- gpr_11_vertex = tmp24;
- // 81: FMUL_C (0x4c68101003470105)
- precise float tmp25 = (gpr_1_vertex * cbuf_4_vertex[13][0]);
- gpr_5_vertex = tmp25;
- // 83: FMUL_C (0x4c68101000570808)
- precise float tmp26 = (gpr_8_vertex * cbuf_4_vertex[1][1]);
- gpr_8_vertex = tmp26;
- // 84: FMUL_C (0x4c68101002570202)
- precise float tmp27 = (gpr_2_vertex * cbuf_4_vertex[9][1]);
- gpr_2_vertex = tmp27;
- // 85: FMUL_C (0x4c68101003570101)
- precise float tmp28 = (gpr_1_vertex * cbuf_4_vertex[13][1]);
- gpr_1_vertex = tmp28;
- // 87: FFMA_CR (0x49a005100007070a)
- precise float tmp29 = fma(gpr_7_vertex, cbuf_4_vertex[0][0], gpr_10_vertex);
- gpr_10_vertex = tmp29;
- // 88: ST_A (0xeff07f800cc7ff0e)
- output_attr_4_vertex.w = gpr_14_vertex;
- // 89: FFMA_CR (0x49a005900207000b)
- precise float tmp30 = fma(gpr_0_vertex, cbuf_4_vertex[8][0], gpr_11_vertex);
- gpr_11_vertex = tmp30;
- // 91: FFMA_CR (0x49a0041000170707)
- precise float tmp31 = fma(gpr_7_vertex, cbuf_4_vertex[0][1], gpr_8_vertex);
- gpr_7_vertex = tmp31;
- // 92: FFMA_CR (0x49a0011002170000)
- precise float tmp32 = fma(gpr_0_vertex, cbuf_4_vertex[8][1], gpr_2_vertex);
- gpr_0_vertex = tmp32;
- // 93: FFMA_CR (0x49a0029003070305)
- precise float tmp33 = fma(gpr_3_vertex, cbuf_4_vertex[12][0], gpr_5_vertex);
- gpr_5_vertex = tmp33;
- // 95: FFMA_CR (0x49a0009003170301)
- precise float tmp34 = fma(gpr_3_vertex, cbuf_4_vertex[12][1], gpr_1_vertex);
- gpr_1_vertex = tmp34;
- // 96: FADD_C (0x4c58101000c70a0a)
- precise float tmp35 = (gpr_10_vertex + cbuf_4_vertex[3][0]);
- gpr_10_vertex = tmp35;
- // 97: FADD_C (0x4c58101001c70909)
- precise float tmp36 = (gpr_9_vertex + cbuf_4_vertex[7][0]);
- gpr_9_vertex = tmp36;
- // 99: FADD_C (0x4c58101000d70707)
- precise float tmp37 = (gpr_7_vertex + cbuf_4_vertex[3][1]);
- gpr_7_vertex = tmp37;
- // 100: FADD_C (0x4c58101001d70404)
- precise float tmp38 = (gpr_4_vertex + cbuf_4_vertex[7][1]);
- gpr_4_vertex = tmp38;
- // 101: FADD_C (0x4c58101002c70b0b)
- precise float tmp39 = (gpr_11_vertex + cbuf_4_vertex[11][0]);
- gpr_11_vertex = tmp39;
- // 103: FADD_C (0x4c58101002d70000)
- precise float tmp40 = (gpr_0_vertex + cbuf_4_vertex[11][1]);
- gpr_0_vertex = tmp40;
- // 104: FADD_C (0x4c58101003c70505)
- precise float tmp41 = (gpr_5_vertex + cbuf_4_vertex[15][0]);
- gpr_5_vertex = tmp41;
- // 105: FADD_C (0x4c58101003d70101)
- precise float tmp42 = (gpr_1_vertex + cbuf_4_vertex[15][1]);
- gpr_1_vertex = tmp42;
- // 107: FMUL_IMM (0x3868104000070c0c)
- precise float tmp43 = (gpr_12_vertex * utof(0x40000000u));
- gpr_12_vertex = tmp43;
- // 108: FADD_C (0x4c58100c00c70d0d)
- precise float tmp44 = (gpr_13_vertex + cbuf_3_vertex[3][0]);
- gpr_13_vertex = tmp44;
- // 109: ST_A (0xeff07f800c47ff0c)
- output_attr_4_vertex.y = gpr_12_vertex;
- // 111: FADD_C (0x4c58100c00d71010)
- precise float tmp45 = (gpr_16_vertex + cbuf_3_vertex[3][1]);
- gpr_16_vertex = tmp45;
- // 112: ST_A (0xeff07f800707ff0d)
- position.x = gpr_13_vertex;
- // 113: FADD_C (0x4c58100c00e70f0f)
- precise float tmp46 = (gpr_15_vertex + cbuf_3_vertex[3][2]);
- gpr_15_vertex = tmp46;
- // 115: ST_A (0xeff07f800747ff10)
- position.y = gpr_16_vertex;
- // 116: FADD_C (0x4c58100c00f70606)
- precise float tmp47 = (gpr_6_vertex + cbuf_3_vertex[3][3]);
- gpr_6_vertex = tmp47;
- // 117: ST_A (0xeff07f800787ff0f)
- position.z = gpr_15_vertex;
- // 119: FADD_R (0x5c58100000a7ff0a)
- precise float tmp48 = (0 + gpr_10_vertex);
- gpr_10_vertex = tmp48;
- // 120: ST_A (0xeff07f8007c7ff06)
- position.w = gpr_6_vertex;
- // 121: FADD_R (0x5c5810000077ff07)
- precise float tmp49 = (0 + gpr_7_vertex);
- gpr_7_vertex = tmp49;
- // 123: ST_A (0xeff07f800807ff0a)
- output_attr_0_vertex.x = gpr_10_vertex;
- // 124: FADD_R (0x5c5810000097ff09)
- precise float tmp50 = (0 + gpr_9_vertex);
- gpr_9_vertex = tmp50;
- // 125: ST_A (0xeff07f800847ff07)
- output_attr_0_vertex.y = gpr_7_vertex;
- // 127: FADD_R (0x5c5810000047ff04)
- precise float tmp51 = (0 + gpr_4_vertex);
- gpr_4_vertex = tmp51;
- // 128: ST_A (0xeff07f800907ff09)
- output_attr_1_vertex.x = gpr_9_vertex;
- // 129: FADD_R (0x5c58100000b7ff0b)
- precise float tmp52 = (0 + gpr_11_vertex);
- gpr_11_vertex = tmp52;
- // 131: ST_A (0xeff07f800947ff04)
- output_attr_1_vertex.y = gpr_4_vertex;
- // 132: FADD_R (0x5c5810000007ff00)
- precise float tmp53 = (0 + gpr_0_vertex);
- gpr_0_vertex = tmp53;
- // 133: ST_A (0xeff07f800a07ff0b)
- output_attr_2_vertex.x = gpr_11_vertex;
- // 135: FADD_R (0x5c5810000057ff05)
- precise float tmp54 = (0 + gpr_5_vertex);
- gpr_5_vertex = tmp54;
- // 136: ST_A (0xeff07f800a47ff00)
- output_attr_2_vertex.y = gpr_0_vertex;
- // 137: FADD_R (0x5c5810000017ff01)
- precise float tmp55 = (0 + gpr_1_vertex);
- gpr_1_vertex = tmp55;
- // 139: ST_A (0xeff07f800b07ff05)
- output_attr_3_vertex.x = gpr_5_vertex;
- // 140: ST_A (0xeff07f800b47ff01)
- output_attr_3_vertex.y = gpr_1_vertex;
- // 141: EXIT (0xe30000000007000f)
- return;
- }
- default: return;
- }
- }
- }
- void main() {
- position = vec4(0.0, 0.0, 0.0, 0.0);
- execute_vertex();
- // Check if the flip stage is VertexB
- // Config pack's second value is flip_stage
- if (config_pack[1] == 1) {
- // Viewport can be flipped, which is unsupported by glViewport
- position.xy *= viewport_flip.xy;
- }
- gl_Position = position;
- // TODO(bunnei): This is likely a hack, position.w should be interpolated as 1.0
- // For now, this is here to bring order in lieu of proper emulation
- if (config_pack[1] == 1) {
- position.w = 1.0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment