Mesa (main): pvr: csbgen: Add a missing @staticmethod decorator

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 8 09:22:02 UTC 2022


Module: Mesa
Branch: main
Commit: b813ca5d3b30e13a5350f2616bf1294dbd36d81e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b813ca5d3b30e13a5350f2616bf1294dbd36d81e

Author: Matt Coster <matt.coster at imgtec.com>
Date:   Mon May 23 09:48:39 2022 +0100

pvr: csbgen: Add a missing @staticmethod decorator

Signed-off-by: Matt Coster <matt.coster at imgtec.com>
Reviewed-by: Frank Binns <frank.binns at imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16884>

---

 src/imagination/csbgen/gen_pack_header.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/imagination/csbgen/gen_pack_header.py b/src/imagination/csbgen/gen_pack_header.py
index 501caccd9df..2626d1faeb8 100644
--- a/src/imagination/csbgen/gen_pack_header.py
+++ b/src/imagination/csbgen/gen_pack_header.py
@@ -505,6 +505,7 @@ class Condition(Node):
 
         return fields
 
+    @staticmethod
     def _is_valid_type(ty):
         types = {"if", "elif", "else", "endif"}
         return ty in types



More information about the mesa-commit mailing list