Skip to content

Commit

Permalink
add UMP version of panfrost
Browse files Browse the repository at this point in the history
currently not working and probably won't work for a while
  • Loading branch information
SolDev69 committed Jan 2, 2024
1 parent 87c5194 commit eb83538
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ public static String loadGraphicsLibrary(){
renderLibrary = "libOSMesa_pan.so"; break;
case "vulkan_zink_legacy":
renderLibrary = "libOSMesa_znL.so"; break;
case "malihw_panfrost-new":
case "vulkan_zink":
case "swrast":
case "virgl":
Expand Down
2 changes: 1 addition & 1 deletion app_pojavlauncher/src/main/jni/egl_bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ int pojavInitOpenGL() {
setenv("MESA_LOADER_DRIVER_OVERRIDE","zink",1);
setenv("GALLIUM_DRIVER","zink",1);
set_osm_bridge_tbl();
} else if (strcmp(renderer, "malihw_panfrost") == 0) {
} else if (strcmp(renderer, "malihw_panfrost") == 0 || strcmp(renderer, "malihw_panfrost-new") == 0) {
pojav_environ->config_renderer = RENDERER_VK_ZINK;
setenv("GALLIUM_DRIVER", "panfrost", 1);
setenv("PAN_DEBUG","gofaster",1);
Expand Down
8 changes: 0 additions & 8 deletions app_pojavlauncher/src/main/res/values-en-rGB/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,6 @@
<string name="mcl_setting_renderer_gles2_4">Holy GL4ES - (all versions, fast)</string>
<string name="mcl_setting_renderer_vulkan_zink">Zink (Vulkan) - (all versions, mid)</string>
<string name="mcl_setting_renderer_angle">ANGLE (Vulkan) - (1.17+ only, fast)</string>
<string name="mcl_setting_renderer_angle_new">Updated ANGLE (Vulkan) - (1.17+ only, mid)</string>
<string name="mcl_setting_renderer_panfrost">Panfrost (Mali Gx10 only) - (all versions, mid)</string>
<string name="mcl_setting_renderer_freedreno">Freedreno (Adreno) - (all versions, mid)</string>
<string name="mcl_setting_renderer_softpipe">softpipe (CPU) - (all versions, very slow)</string>

<string name="mcl_setting_renderer_virgl">virglrenderer (NOT IMPLEMENTED!) - (all versions, mid)</string>
<string name="mcl_setting_renderer_vulkan_zink_legacy">Legacy Zink (UNSUPPORTED AND BROKEN!) - (all versions, slow)</string>
<string name="mcl_setting_renderer_vgpu">vgpu - (up to 1.16.5, fast)</string>

<string name="mcl_setting_veroption_release">Release</string>
<string name="mcl_setting_veroption_snapshot">Snapshot</string>
Expand Down
1 change: 1 addition & 0 deletions app_pojavlauncher/src/main/res/values/headings_array.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
<item>virgl</item> <!-- virglrenderer with OpenGL ES 3 -->
<item>vulkan_zink_legacy</item>
<item>vgpu</item>
<item>malihw_panfrost-new</item>
</string-array>
<string-array name="download_source_names">
<item>@string/global_default</item>
Expand Down
2 changes: 1 addition & 1 deletion app_pojavlauncher/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@
<string name="mcl_setting_renderer_panfrost">Panfrost (Mali Gx10 only) - (all versions, mid)</string>
<string name="mcl_setting_renderer_freedreno">Freedreno (Adreno) - (all versions, mid)</string>
<string name="mcl_setting_renderer_softpipe">softpipe (CPU) - (all versions, very slow)</string>

<string name="mcl_setting_renderer_virgl">virglrenderer (NOT IMPLEMENTED!) - (all versions, mid)</string>
<string name="mcl_setting_renderer_vulkan_zink_legacy">Legacy Zink (UNSUPPORTED AND BROKEN!) - (all versions, slow)</string>
<string name="mcl_setting_renderer_panfrost_new">Panfrost UMP (BROKEN!) - (all versions, mid)</string>
<string name="mcl_setting_renderer_vgpu">vgpu - (up to 1.16.5, fast)</string>

<string name="mcl_setting_veroption_release">Release</string>
Expand Down

0 comments on commit eb83538

Please sign in to comment.