Skip to content

WIP: [RFC] etnaviv nir compiler

Jonathan Marek requested to merge flto/mesa:etna into master

Hi,

I have started working on a NIR based compiler for etnaviv (I'm aware this conflicts with what @austriancoder has been working on). Some parts are taken from the work done last year by pengutronix (https://patchwork.freedesktop.org/series/44282/). I only have a GC2000 and GC3000 for testing (and a GC7000Lite I haven't started using yet), but there shouldn't be any issues running this on a different GPU version.

There is still some work to be done to maximize performance, but it is in good shape. It fixes bugs with the current TGSI compiler and passes essentially all dEQP-GLES2.functional.shaders.* tests (https://gitlab.freedesktop.org/snippets/596). There is also a performance improvement in many glmark scenes (https://gitlab.freedesktop.org/snippets/597, note: this isn't up to date).

Update: in the current version the known regressions are missing GL_TEXTURE_RECTANGLE lowering and the terrain scene in glmark is not rendering 100% correctly.

Edited by Jonathan Marek

Merge request reports