View: 24606|Reply: 65

Panfrost Mali-G610 : Error w Dolphin emulator - illegal use sampler2DMSArray

[Copy link]

2

threads

3

posts

16

credits

Novice

Rank: 1

credits
16
Published in 2023-3-3 01:32:20 | Show all floors |Read mode
This post was finally edited by fredrum at 2023-3-3 01:40

System information:

Hardware:  Orange Pi 5
OS: Armbian (23.02.2) aarch64
GPU:  Mali-G610
Kernel version: Linux orangepi5 5.10.110-rockchip-rk3588 #23.02.2 SMP Fri Feb 17 23:59:20 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

Mesa version:
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Panfrost (0xffffffff)
Device: Mali-G610 (Panfrost) (0xffffffff)
Version: 23.0.0
Accelerated: yes
Video memory: 7689MB
Unified memory: yes
Preferred profile: compat (0x2)
Max core profile version: 0.0
Max compat profile version: 3.0
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.1
OpenGL vendor string: Panfrost
OpenGL renderer string: Mali-G610 (Panfrost)
OpenGL version string: 3.0 Mesa 23.0.0-devel
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 23.0.0-devel
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

Desktop manager and compositor: Wayland



I built the HoT dolphin emulator. It went through and gave me executables.
Then I changed the config to use GLES like this,

nano ~./config/dolphin-emu/GFX.ini
adding
PreferGLES = True


The gui of dolphin runs fine.
I didn't change any settings from default except to make sure 'OpenGL' was selected as graphics backend.
When I try to run a game I only get a black screen and immediate crash followed by this error message,

----------
Failed to compile vs shader: /home/fred/.local/share/dolphin-emu/Dump/bad_vs_OGL_0.txt
Debug info (Panfrost, Mali-G610 (Panfrost), OpenGL ES 3.1 Mesa 23.0.0-devel):
0:36(17): error: illegal use of reserved word `sampler2DMSArray'
0:36(17): error: syntax error, unexpected ERROR_TOK
---------


When I read the file /home/fred/.local/share/dolphin-emu/Dump/bad_vs_OGL_0.txt
I see that it starts by announcing its a #version 310 es  which it seems this environment and gl drivers should be able to support?

Does anyone know how to build Dolphin on an Orange Pi 5 with Linux?

Cheers and thanks for all your hard work!

The shader text:
-----------------------------------
#version 310 es

#define FORCE_EARLY_Z layout(early_fragment_tests) in

#define ATTRIBUTE_LOCATION(x)
#define FRAGMENT_OUTPUT_LOCATION(x)
#define FRAGMENT_OUTPUT_LOCATION_INDEXED(x, y)
#define UBO_BINDING(packing, x) layout(packing, binding = x)
#define SAMPLER_BINDING(x) layout(binding = x)
#define TEXEL_BUFFER_BINDING(x) layout(binding = x)
#define SSBO_BINDING(x) layout(std430, binding = x)
#define IMAGE_BINDING(format, x) layout(format, binding = x)

#define VARYING_LOCATION(x)

#extension GL_OES_texture_buffer : enable
#extension GL_EXT_blend_func_extended : enable

#extension GL_EXT_shader_framebuffer_fetch: enable
#define FRAGMENT_INOUT inout

precision highp float;
precision highp int;
precision highp sampler2DArray;
precision highp usamplerBuffer;
precision highp sampler2DMSArray;
precision highp image2DArray;
#define API_OPENGL 1
#define float2 vec2
#define float3 vec3
#define float4 vec4
#define uint2 uvec2
#define uint3 uvec3
#define uint4 uvec4
#define int2 ivec2
#define int3 ivec3
#define int4 ivec4
#define frac fract
#define lerp mix
VARYING_LOCATION(0) out float3 v_tex0;
#define opos gl_Position
#define id gl_VertexID

void main()
{
...
}

2

threads

3

posts

16

credits

Novice

Rank: 1

credits
16
 Author| Published in 2023-3-3 09:36:40 | Show all floors
I got a reply on Mesa gitlab,

"Hi, sampler2DMSArray requires 3.20 es. This is a bug in the emulator.
On page 17 of the GLSL ES 3.10 spec its listed under The following are the keywords reserved for future use. Using them will result in an error:"

4

threads

7

posts

68

credits

Registered member

Rank: 2

credits
68
Published in 2023-9-13 06:03:51 | Show all floors
This post was finally edited by militen at 2023-9-14 02:40

This setup indicates that you have a modern ARM-based system with good graphics capabilities running a recent version of the Armbian operating system. You're using the Panfrost driver for your Mali-G610 GPU, which is an open-source driver that provides OpenGL support. This also works in the gaming world, for example I heard about Jackpot City Casino Canada from https://casinosanalyzer.ca/online-casinos/jackpotcitycasino.com it's a cool review. Additionally, you're using the Wayland display server as your desktop manager and compositor, which is known for its modern and efficient graphics handling. If you have any specific questions or need assistance with this setup, feel free to ask!
https://1x-slots.com.ar/ Con la creciente po

57

threads

61

posts

259

credits

Intermediate member

Rank: 3Rank: 3

credits
259
Published in 2023-10-19 16:53:33 | Show all floors
Don't miss a single moment of the action. With our https://stsprt.com/app/ live betting feature, you can place bets instantly as the game unfolds. Whether it's a last-minute goal, a crucial three-pointer, or a game-changing serve, you can bet on the outcome and add an extra level of excitement to your viewing experience.

3

threads

201

posts

571

credits

Senior member

Rank: 4

credits
571
Published in 2023-12-17 23:17:57 | Show all floors
As we delve deeper into the enchanting realms of this captivating digital gaming utopia, the tapestry of experiences unfolds with each game serving as a dynamic brushstroke, contributing to an evolving masterpiece. The commitment to providing a diverse array of games, spanning genres and eras, transforms the act of gaming into an immersive exploration through the https://kinogo-cc.online/ rich history and unfolding narrative of digital entertainment. In this virtual odyssey, the unsung hero remains the platform's intuitive design—an invisible guide ensuring users, whether seasoned or new, navigate the digital corridors effortlessly, turning each exploration into a seamless and joyous endeavor.
Published in 2024-1-25 00:03:01 | Show all floors
Hey, this day is too much good for me, since this time I am reading this enormous informative article here at my home. Thanks a lot for massive hard work.        moss-agate-engagement-ring
Published in 2024-1-26 19:20:15 | Show all floors
You have outdone yourself this time. It is probably the best, most short step by step guide that I have ever seen.        Yoga retreat in Mexico
Published in 2024-1-27 20:34:14 | Show all floors
Wow, this is really interesting reading.  I am glad I found this and got to read it.  Great job on this content.  I like it.        Basset Hound Pup
Published in 2024-1-29 19:18:06 | Show all floors
Your work is truly appreciated round the clock and the globe. It is incredibly a comprehensive and helpful blog.        Farsi font free download
Published in 2024-2-1 14:12:28 | Show all floors
Blogs ou should be reading… [...]Here is a Great Blog You Might Find Interesting that we Encourage You[...]……        https://hi88.cx/
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list