From 5afa14f4a612af335c119d444a60c52cde492f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 3 May 2026 01:11:05 -0400 Subject: [PATCH] nir/tests: don't leave "namespace {" unclosed in nir_opt_varyings_tests.h --- src/compiler/nir/tests/nir_opt_varyings_test.h | 2 ++ src/compiler/nir/tests/opt_varyings_tests_bicm_binary_alu.cpp | 2 ++ src/compiler/nir/tests/opt_varyings_tests_bicm_sysval.cpp | 2 ++ src/compiler/nir/tests/opt_varyings_tests_dead_input.cpp | 2 ++ src/compiler/nir/tests/opt_varyings_tests_dead_output.cpp | 2 ++ src/compiler/nir/tests/opt_varyings_tests_dedup.cpp | 2 ++ src/compiler/nir/tests/opt_varyings_tests_prop_const.cpp | 2 ++ src/compiler/nir/tests/opt_varyings_tests_prop_ubo.cpp | 2 ++ src/compiler/nir/tests/opt_varyings_tests_prop_uniform.cpp | 2 ++ src/compiler/nir/tests/opt_varyings_tests_prop_uniform_expr.cpp | 2 ++ 10 files changed, 20 insertions(+) diff --git a/src/compiler/nir/tests/nir_opt_varyings_test.h b/src/compiler/nir/tests/nir_opt_varyings_test.h index b62e4c60547..73ab9d56c5c 100644 --- a/src/compiler/nir/tests/nir_opt_varyings_test.h +++ b/src/compiler/nir/tests/nir_opt_varyings_test.h @@ -664,3 +664,5 @@ movable_across_interp(nir_builder *b, nir_op op, unsigned interp[3], return false; } } + +} diff --git a/src/compiler/nir/tests/opt_varyings_tests_bicm_binary_alu.cpp b/src/compiler/nir/tests/opt_varyings_tests_bicm_binary_alu.cpp index 35b7034b19e..72cb5525ff5 100644 --- a/src/compiler/nir/tests/opt_varyings_tests_bicm_binary_alu.cpp +++ b/src/compiler/nir/tests/opt_varyings_tests_bicm_binary_alu.cpp @@ -8,6 +8,8 @@ #include "nir_opt_varyings_test.h" +namespace { + class nir_opt_varyings_test_bicm_binary_alu : public nir_opt_varyings_test {}; diff --git a/src/compiler/nir/tests/opt_varyings_tests_bicm_sysval.cpp b/src/compiler/nir/tests/opt_varyings_tests_bicm_sysval.cpp index 5cd2a1de3e8..8f3707e5225 100644 --- a/src/compiler/nir/tests/opt_varyings_tests_bicm_sysval.cpp +++ b/src/compiler/nir/tests/opt_varyings_tests_bicm_sysval.cpp @@ -6,6 +6,8 @@ #include "nir_opt_varyings_test.h" +namespace { + static bool shader_contains_sysval(nir_builder *b, nir_intrinsic_op op) { diff --git a/src/compiler/nir/tests/opt_varyings_tests_dead_input.cpp b/src/compiler/nir/tests/opt_varyings_tests_dead_input.cpp index 2cc801b4233..4b29c41a31c 100644 --- a/src/compiler/nir/tests/opt_varyings_tests_dead_input.cpp +++ b/src/compiler/nir/tests/opt_varyings_tests_dead_input.cpp @@ -6,6 +6,8 @@ #include "nir_opt_varyings_test.h" +namespace { + class nir_opt_varyings_test_dead_input : public nir_opt_varyings_test {}; diff --git a/src/compiler/nir/tests/opt_varyings_tests_dead_output.cpp b/src/compiler/nir/tests/opt_varyings_tests_dead_output.cpp index c55cc1465e5..b02a271c92a 100644 --- a/src/compiler/nir/tests/opt_varyings_tests_dead_output.cpp +++ b/src/compiler/nir/tests/opt_varyings_tests_dead_output.cpp @@ -6,6 +6,8 @@ #include "nir_opt_varyings_test.h" +namespace { + class nir_opt_varyings_test_dead_output : public nir_opt_varyings_test {}; diff --git a/src/compiler/nir/tests/opt_varyings_tests_dedup.cpp b/src/compiler/nir/tests/opt_varyings_tests_dedup.cpp index ebceb76f4b0..d7d614270a7 100644 --- a/src/compiler/nir/tests/opt_varyings_tests_dedup.cpp +++ b/src/compiler/nir/tests/opt_varyings_tests_dedup.cpp @@ -6,6 +6,8 @@ #include "nir_opt_varyings_test.h" +namespace { + class nir_opt_varyings_test_dedup : public nir_opt_varyings_test {}; diff --git a/src/compiler/nir/tests/opt_varyings_tests_prop_const.cpp b/src/compiler/nir/tests/opt_varyings_tests_prop_const.cpp index 958ba352589..bbe23953f89 100644 --- a/src/compiler/nir/tests/opt_varyings_tests_prop_const.cpp +++ b/src/compiler/nir/tests/opt_varyings_tests_prop_const.cpp @@ -6,6 +6,8 @@ #include "nir_opt_varyings_test.h" +namespace { + class nir_opt_varyings_test_prop_const : public nir_opt_varyings_test {}; diff --git a/src/compiler/nir/tests/opt_varyings_tests_prop_ubo.cpp b/src/compiler/nir/tests/opt_varyings_tests_prop_ubo.cpp index ecd0c6e60be..0677752bfe6 100644 --- a/src/compiler/nir/tests/opt_varyings_tests_prop_ubo.cpp +++ b/src/compiler/nir/tests/opt_varyings_tests_prop_ubo.cpp @@ -6,6 +6,8 @@ #include "nir_opt_varyings_test.h" +namespace { + class nir_opt_varyings_test_prop_ubo : public nir_opt_varyings_test {}; diff --git a/src/compiler/nir/tests/opt_varyings_tests_prop_uniform.cpp b/src/compiler/nir/tests/opt_varyings_tests_prop_uniform.cpp index 0382fc800c0..9af7a62d201 100644 --- a/src/compiler/nir/tests/opt_varyings_tests_prop_uniform.cpp +++ b/src/compiler/nir/tests/opt_varyings_tests_prop_uniform.cpp @@ -6,6 +6,8 @@ #include "nir_opt_varyings_test.h" +namespace { + class nir_opt_varyings_test_prop_uniform : public nir_opt_varyings_test {}; diff --git a/src/compiler/nir/tests/opt_varyings_tests_prop_uniform_expr.cpp b/src/compiler/nir/tests/opt_varyings_tests_prop_uniform_expr.cpp index 15e8d4208bf..d049ef99431 100644 --- a/src/compiler/nir/tests/opt_varyings_tests_prop_uniform_expr.cpp +++ b/src/compiler/nir/tests/opt_varyings_tests_prop_uniform_expr.cpp @@ -6,6 +6,8 @@ #include "nir_opt_varyings_test.h" +namespace { + class nir_opt_varyings_test_prop_uniform_expr : public nir_opt_varyings_test {};