Mesa (master): nir: add shader_info::io_lowered

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Aug 24 19:25:32 UTC 2020


Module: Mesa
Branch: master
Commit: 4d36dceeabcc59155f2fa4acaf171ce2f3d4418c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4d36dceeabcc59155f2fa4acaf171ce2f3d4418c

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Fri Aug 14 19:13:52 2020 -0400

nir: add shader_info::io_lowered

This will drive decisions in many NIR passes and st/mesa.

Reviewed-by: Eric Anholt <eric at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6442>

---

 src/compiler/shader_info.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h
index 8c632de5387..844815d39c1 100644
--- a/src/compiler/shader_info.h
+++ b/src/compiler/shader_info.h
@@ -193,6 +193,11 @@ typedef struct shader_info {
    /* Whether flrp has been lowered. */
    bool flrp_lowered:1;
 
+   /* Whether nir_lower_io has been called to lower derefs.
+    * nir_variables for inputs and outputs might not be present in the IR.
+    */
+   bool io_lowered:1;
+
    /* Whether the shader writes memory, including transform feedback. */
    bool writes_memory:1;
 



More information about the mesa-commit mailing list