Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Legend of heroes prophecy of moonlight witch problem
12-08-2021, 06:14 AM
Post: #15
RE: Legend of heroes prophecy of moonlight witch problem
panfrost dev said "this is our problem, not PPSSPP's". But it's interesting to see results.

Applied change vec4->highp as you suggested and recompiled. Song of the Ocean yields shader compiler error:
Code:
00:23:643 idle0        E[G3D]: OpenGL/GLQueueRunner.cpp:235 Could not link program:
error: linking with uncompiled/unspecialized shader
00:23:643 idle0        E[G3D]: OpenGL/GLQueueRunner.cpp:236 VS desc:
00000000:0000001a THR C Tex
00:23:643 idle0        E[G3D]: OpenGL/GLQueueRunner.cpp:237 FS desc:
00000000:02800022 Tex TexAlpha 2x StenToAlphaDual StenUniform TFuncMod  (failed)
00:23:643 idle0        E[G3D]: OpenGL/GLQueueRunner.cpp:238 VS:
#version 310 es
// Mali-G52 (Panfrost) - GLSL 310
precision highp float;
#define gl_VertexIndex gl_VertexID
#define splat3(x) vec3(x)
#define mul(x, y) ((x) * (y))
in vec4 position;
in vec2 texcoord;
in lowp vec4 color0;
uniform mat4 u_proj_through;
uniform lowp float u_rotation;
out lowp vec4 v_color0;
out mediump vec3 v_texcoord;
void main() {
  v_texcoord = vec3(texcoord, 1.0);
  v_color0 = color0;
  vec4 outPos = mul(u_proj_through, vec4(position.xyz, 1.0));
  gl_Position = outPos;
}


00:23:643 idle0        E[G3D]: OpenGL/GLQueueRunner.cpp:239 FS:
#version 310 es
#extension GL_EXT_blend_func_extended : require
#extension GL_EXT_shader_framebuffer_fetch : require
// Mali-G52 (Panfrost) - GLSL 310
#define DISCARD discard
precision lowp float;
precision highp int;
#define splat3(x) vec3(x)
#define mul(x, y) ((x) * (y))
uniform sampler2D tex;
uniform float u_stencilReplaceValue;
in lowp vec4 v_color0;
in mediump vec3 v_texcoord;
out highp fragColor0;
out highp fragColor1;
void main() {
  vec4 t = texture(tex, v_texcoord.xy);
  vec4 p = v_color0;
  vec4 v = p * t;
  v.rgb = clamp(v.rgb * 2.0, 0.0, 1.0);
  fragColor0 = vec4(v.rgb, u_stencilReplaceValue);
  fragColor1 = vec4(0.0, 0.0, 0.0, v.a);
}

Thanks for the suggestion tho Smile This points me to code to study.[/code]
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Legend of heroes prophecy of moonlight witch problem - clort78 - 12-08-2021 06:14 AM

Forum Jump: