[Mesa-dev] [PATCH 08/16] RFC: nir: typedef'ify nir_deref_path

Rob Clark robdclark at gmail.com
Sat Apr 7 16:13:40 UTC 2018


For better or worse, the rest of nir follows the typedef struct pattern.
So I guess better to be consistent.

Signed-off-by: Rob Clark <robdclark at gmail.com>
---
 src/compiler/nir/nir_deref.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/compiler/nir/nir_deref.h b/src/compiler/nir/nir_deref.h
index 7597b777490..b7a9d4b0e63 100644
--- a/src/compiler/nir/nir_deref.h
+++ b/src/compiler/nir/nir_deref.h
@@ -31,7 +31,7 @@
 extern "C" {
 #endif
 
-struct nir_deref_path {
+typedef struct nir_deref_path {
    /** Short path so we can keep it on the stack most of the time. */
    nir_deref_instr *_short_path[7];
 
@@ -42,7 +42,7 @@ struct nir_deref_path {
     * element in the array is a NULL pointer which acts as a terminator.
     */
    nir_deref_instr **path;
-};
+} nir_deref_path;
 
 void nir_deref_path_init(struct nir_deref_path *path,
                          nir_deref_instr *deref, void *mem_ctx);
-- 
2.14.3



More information about the mesa-dev mailing list