~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/intel/compiler/brw_vec4.cpp

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include "brw_vec4_builder.h"
29
29
#include "brw_vec4_vs.h"
30
30
#include "brw_dead_control_flow.h"
 
31
#include "brw_private.h"
31
32
#include "dev/intel_debug.h"
32
33
#include "program/prog_parameter.h"
33
34
#include "util/u_math.h"
1309
1310
}
1310
1311
 
1311
1312
void
1312
 
vec4_visitor::dump_instruction(const backend_instruction *be_inst) const
1313
 
{
1314
 
   dump_instruction(be_inst, stderr);
1315
 
}
1316
 
 
1317
 
void
1318
 
vec4_visitor::dump_instruction(const backend_instruction *be_inst, FILE *file) const
 
1313
vec4_visitor::dump_instruction_to_file(const backend_instruction *be_inst, FILE *file) const
1319
1314
{
1320
1315
   const vec4_instruction *inst = (const vec4_instruction *)be_inst;
1321
1316
 
2545
2540
   const struct brw_vs_prog_key *key = params->key;
2546
2541
   struct brw_vs_prog_data *prog_data = params->prog_data;
2547
2542
   const bool debug_enabled =
2548
 
      INTEL_DEBUG(params->debug_flag ? params->debug_flag : DEBUG_VS);
 
2543
      brw_should_print_shader(nir, params->debug_flag ? params->debug_flag : DEBUG_VS);
2549
2544
 
2550
2545
   prog_data->base.base.stage = MESA_SHADER_VERTEX;
2551
2546
   prog_data->base.base.ray_queries = nir->info.ray_queries;
2552
2547
   prog_data->base.base.total_scratch = 0;
2553
2548
 
2554
2549
   const bool is_scalar = compiler->scalar_stage[MESA_SHADER_VERTEX];
2555
 
   brw_nir_apply_key(nir, compiler, &key->base, 8, is_scalar);
 
2550
   brw_nir_apply_key(nir, compiler, &key->base, 8);
2556
2551
 
2557
2552
   const unsigned *assembly = NULL;
2558
2553
 
2561
2556
 
2562
2557
   brw_nir_lower_vs_inputs(nir, params->edgeflag_is_last, key->gl_attrib_wa_flags);
2563
2558
   brw_nir_lower_vue_outputs(nir);
2564
 
   brw_postprocess_nir(nir, compiler, is_scalar, debug_enabled,
 
2559
   brw_postprocess_nir(nir, compiler, debug_enabled,
2565
2560
                       key->base.robust_buffer_access);
2566
2561
 
2567
2562
   prog_data->base.clip_distance_mask =