~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/compiler/nir/nir_gs_count_vertices.c

  • 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:
64
64
   int prmcnt_arr[4] = {-1, -1, -1, -1};
65
65
   bool cnt_found[4] = {false, false, false, false};
66
66
 
67
 
   nir_foreach_function(function, shader) {
68
 
      if (!function->impl)
69
 
         continue;
70
 
 
 
67
   nir_foreach_function_impl(impl, shader) {
71
68
      /* set_vertex_and_primitive_count intrinsics only appear in predecessors of the
72
69
       * end block.  So we don't need to walk all of them.
73
70
       */
74
 
      set_foreach(function->impl->end_block->predecessors, entry) {
 
71
      set_foreach(impl->end_block->predecessors, entry) {
75
72
         nir_block *block = (nir_block *) entry->key;
76
73
 
77
74
         nir_foreach_instr_reverse(instr, block) {