brw: Use the new gen based generator

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41413>
This commit is contained in:
Caio Oliveira 2026-04-22 15:14:03 -07:00 committed by Marge Bot
parent a20f7432a6
commit 24e8921b3d
12 changed files with 16 additions and 16 deletions

View file

@ -5,7 +5,7 @@
#include "brw_analysis.h"
#include "brw_shader.h"
#include "brw_generator.h"
#include "brw_to_binary.h"
#include "brw_nir.h"
#include "brw_cfg.h"
#include "brw_private.h"

View file

@ -6,7 +6,7 @@
#include "brw_shader.h"
#include "brw_analysis.h"
#include "brw_builder.h"
#include "brw_generator.h"
#include "brw_to_binary.h"
#include "brw_nir.h"
#include "brw_cfg.h"
#include "brw_private.h"

View file

@ -7,7 +7,7 @@
#include "brw_shader.h"
#include "brw_analysis.h"
#include "brw_builder.h"
#include "brw_generator.h"
#include "brw_to_binary.h"
#include "brw_nir.h"
#include "brw_cfg.h"
#include "brw_private.h"

View file

@ -6,7 +6,7 @@
#include "brw_eu.h"
#include "brw_shader.h"
#include "brw_builder.h"
#include "brw_generator.h"
#include "brw_to_binary.h"
#include "intel_prim.h"
#include "brw_nir.h"
#include "brw_private.h"

View file

@ -7,7 +7,7 @@
#include "brw_compiler.h"
#include "brw_shader.h"
#include "brw_builder.h"
#include "brw_generator.h"
#include "brw_to_binary.h"
#include "brw_nir.h"
#include "brw_private.h"
#include "compiler/nir/nir_builder.h"

View file

@ -8,7 +8,7 @@
#include "brw_nir.h"
#include "brw_shader.h"
#include "brw_builder.h"
#include "brw_generator.h"
#include "brw_to_binary.h"
#include "brw_private.h"
#include "dev/intel_debug.h"

View file

@ -6,7 +6,7 @@
#include "brw_cfg.h"
#include "brw_eu.h"
#include "brw_shader.h"
#include "brw_generator.h"
#include "brw_to_binary.h"
#include "brw_nir.h"
#include "brw_private.h"
#include "intel_nir.h"

View file

@ -4,7 +4,7 @@
*/
#include "brw_shader.h"
#include "brw_generator.h"
#include "brw_to_binary.h"
#include "brw_eu.h"
#include "brw_nir.h"
#include "brw_private.h"

View file

@ -21,6 +21,8 @@
#include "util/mesa-blake3.h"
#include "util/half_float.h"
namespace old {
static gen_opcode
brw_opcode_to_gen(enum opcode op)
{
@ -1645,6 +1647,8 @@ brw_generator::get_assembly()
return brw_get_program(p, &prog_data->program_size);
}
} /* namespace old */
/* After program generation, go back and update the UIP and JIP of
* BREAK, CONT, ENDIF and HALT instructions to their correct locations.
*/

View file

@ -7,6 +7,8 @@
#include "brw_shader.h"
namespace old {
/* Translates BRW IR to actual EU assembly code. */
class brw_generator
{
@ -74,3 +76,5 @@ private:
mesa_shader_stage stage;
void *mem_ctx;
};
} /* namespace old */

View file

@ -21,8 +21,6 @@
#include "util/half_float.h"
#include "util/os_file.h"
namespace gen {
static gen_opcode
brw_opcode_to_gen(enum opcode op)
{
@ -2383,5 +2381,3 @@ brw_generator::append_reloc(const intel_shader_reloc &r)
relocs = reralloc(mem_ctx, relocs, intel_shader_reloc, num_relocs + 1);
relocs[num_relocs++] = r;
}
} /* namespace gen */

View file

@ -10,8 +10,6 @@
#include "brw_shader.h"
#include "gen/gen.h"
namespace gen {
class brw_generator
{
public:
@ -140,5 +138,3 @@ private:
void append_reloc(const intel_shader_reloc &r);
};
} /* namespace gen */