intel/brw: Rename brw_fs_validate to brw_validate

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32843>
This commit is contained in:
Caio Oliveira 2024-12-29 17:39:39 -08:00 committed by Marge Bot
parent d37cbfad66
commit 634daf2827
6 changed files with 8 additions and 8 deletions

View file

@ -1588,7 +1588,7 @@ brw_shader_phase_update(fs_visitor &s, enum brw_shader_phase phase)
{
assert(phase == s.phase + 1);
s.phase = phase;
brw_fs_validate(s);
brw_validate(s);
}
bool brw_should_print_shader(const nir_shader *shader, uint64_t debug_flag)

View file

@ -600,9 +600,9 @@ void nir_to_brw(fs_visitor *s);
void brw_shader_phase_update(fs_visitor &s, enum brw_shader_phase phase);
#ifndef NDEBUG
void brw_fs_validate(const fs_visitor &s);
void brw_validate(const fs_visitor &s);
#else
static inline void brw_fs_validate(const fs_visitor &s) {}
static inline void brw_validate(const fs_visitor &s) {}
#endif
void brw_calculate_cfg(fs_visitor &s);

View file

@ -17,7 +17,7 @@ brw_optimize(fs_visitor &s)
s.debug_optimizer(nir, "start", 0, 0);
/* Start by validating the shader we currently have. */
brw_fs_validate(s);
brw_validate(s);
/* Track how much non-SSA at this point. */
{
@ -37,7 +37,7 @@ brw_optimize(fs_visitor &s)
if (this_progress) \
s.debug_optimizer(nir, #pass, iteration, pass_num); \
\
brw_fs_validate(s); \
brw_validate(s); \
\
progress = progress || this_progress; \
this_progress; \

View file

@ -271,7 +271,7 @@ brw_validate_instruction_phase(const fs_visitor &s, fs_inst *inst)
}
void
brw_fs_validate(const fs_visitor &s)
brw_validate(const fs_visitor &s)
{
const intel_device_info *devinfo = s.devinfo;

View file

@ -54,7 +54,6 @@ libintel_compiler_brw_files = files(
'brw_fs_nir.cpp',
'brw_fs_reg_allocate.cpp',
'brw_fs_thread_payload.cpp',
'brw_fs_validate.cpp',
'brw_fs_visitor.cpp',
'brw_ir.h',
'brw_ir_allocator.h',
@ -112,6 +111,7 @@ libintel_compiler_brw_files = files(
'brw_schedule_instructions.cpp',
'brw_shader.cpp',
'brw_simd_selection.cpp',
'brw_validate.cpp',
'brw_vue_map.c',
'brw_workaround.cpp',
)

View file

@ -125,6 +125,6 @@ TEST_F(FSCombineConstantsTest, DoContainingDo)
* test is that the shader would be empty.
*/
ASSERT_GE(shader->cfg->num_blocks, original_num_blocks);
brw_fs_validate(*shader);
brw_validate(*shader);
}