ROCKNIX / distribution

Other
314 stars 56 forks source link

Change default UI shader from slangp to glslp for RK3326 #248

Closed amd343 closed 2 months ago

amd343 commented 2 months ago

Setting default shaders in ES was not working and I noticed Vulkan was not being used anymore in multiple emulators (in May 17 release, using RG351P)

sydarn commented 2 months ago

RK3326 never had vulkan, and we now have 2GPU drivers: libmali (only GLES) and panfrost (GLES and GL). GLSLP shaders are on compatible with GL afaiu, and slangp with GLES, GL and Vulkan. So having default to slangp makes sense as glslp isn't compatible with libmali.

amd343 commented 2 months ago

My mistake, my video driver was set to gl and while on gl, I can only use glslp shaders. I've set to glcore and now I could use slangp.

sydarn commented 2 months ago

Yeah, the issue is that we default to gl driver. I am overlooking these settings for all devices now. Thanks for bringing it up!

sydarn commented 2 months ago

@amd343 are you using panfrost? I tried GLCore today with libmali, but the menu is a rainbow spectra. As if some color conversion or something is messed up. It does work fine with panfrost though.

Btw reopening, cause we problable should switch to glslp shaders due to GL core not being on option due to above mentioned reason.

amd343 commented 2 months ago

Yes, I had to change GPU driver to panfrost

sydarn commented 2 months ago

Thank you, I think this is the best solution for now at least.