openpvrsgx-devgroup / linux_openpvrsgx

This is about shaping existing GPL Linux kernel drivers for the PVR/SGX5 architecture so that they can become accepted into drivers/staging. It is NOT about reverse engineering or user-space components (firmware and libraries). Just the device driver. There may also be some glue code here for interfacing to the processor of the SoC (OMAP, Sunxi, Poulsbo, Cedarview, jz4780).
Other
42 stars 19 forks source link

GPU crash?! #4

Closed MightyM17 closed 3 years ago

MightyM17 commented 3 years ago

I was trying Sway with pmOS and the gpu and i got the following output - https://paste.ubuntu.com/p/9qxDDqkhgK/ The last error is [ERROR] [GLES2] OpenGLES 2.0 API generated error code 0x500(GL_INVALID_ENUM) which makes me think that the gpu has crashed, can this be solved?

xc-racer99 commented 3 years ago

You need the patch to wlroots from https://gitlab.com/postmarketOS/pmaports/uploads/db492f801c142af6ed80bf7afa91acff/0001-render-Don-t-use-GL_EXT_unpack_subimage-when-not-ava.patch

Basically wlroots uses an extension without checking for it (newer versions require the extension), and there's also a bug in the PowerVR code (I think) related to the border method that this patch also fixes (that's the GL_INVALID_ENUM that you're seeing).

MightyM17 commented 3 years ago

Thanks a lot again @xc-racer99 this worked flawlessly :smile:

MightyM17 commented 2 years ago

Hey @xc-racer99, the patch does not seem to work for the newer 0.14.0 wlroots. The seem to have changed fmt->bpp to drm_fmt->bpp but even that leads to errors for me.

xc-racer99 commented 2 years ago

Have a peek at what @tmlind has to say at https://gitlab.com/postmarketOS/pmaports/-/issues/932#note_665411953 - his updated patches are way more likely to work :)

MightyM17 commented 2 years ago

Thats great! Thanks

MightyM17 commented 2 years ago

Have a peek at what @tmlind has to say at https://gitlab.com/postmarketOS/pmaports/-/issues/932#note_665411953 - his updated patches are way more likely to work :)

Hey @xc-racer99 they dont seem to work for me, get the same GLES error :(

xc-racer99 commented 2 years ago

Hey @xc-racer99 they dont seem to work for me, get the same GLES error :(

Sorry, I don't really have the time for work on this at the moment. Basically what is happening is that the PowerVR drivers don't support GL_EXT_unpack_subimage - so this causes issues that should be solved by https://github.com/tmlind/wlroots/commit/2ec83ab4f11b1f574d565bd04bbef2e55f154d76 Additionally, the GL_INVALID_ENUM errors were caused by some GL_CLAMP not being supported by PowerVR, I don't remember details offhand.