[Mesa-dev] [MR] NIR shaders for st/mesa

Kenneth Graunke kenneth at whitecape.org
Fri Feb 1 07:43:56 UTC 2019


https://gitlab.freedesktop.org/mesa/mesa/merge_requests/189

Here's a series that ports st/mesa's built-in shaders for various things
from TGSI to NIR.  For drivers which prefer NIR, we use the new direct
versions rather than using tgsi_to_nir.

I've tested Piglit on radeonsi using R600_DEBUG=nir, and it appears
there are no regressions.  I've also used these patches in Iris.  I have
not tested them on vc4/v3d or freedreno, however.

 src/mesa/Makefile.sources                 |   1 +
 src/mesa/meson.build                      |   1 +
 src/mesa/state_tracker/st_cb_clear.c      |  80 +++++++++++--
 src/mesa/state_tracker/st_cb_drawpixels.c | 177 +++++++++++++++++++++++-----
 src/mesa/state_tracker/st_cb_drawtex.c    |  69 +++++++++--
 src/mesa/state_tracker/st_cb_readpixels.c |   1 +
 src/mesa/state_tracker/st_glsl_to_nir.cpp |  46 ++++----
 src/mesa/state_tracker/st_nir.h           |  18 +++
 src/mesa/state_tracker/st_nir_builtins.c  | 136 +++++++++++++++++++++
 src/mesa/state_tracker/st_pbo.c           | 190 +++++++++++++++++++++++++++++-
 10 files changed, 648 insertions(+), 71 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190131/88320403/attachment.sig>


More information about the mesa-dev mailing list