~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/microsoft/spirv_to_dxil/spirv_to_dxil.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
   };
65
65
 
66
66
   const struct spirv_to_nir_options *spirv_opts = dxil_spirv_nir_get_spirv_options();
67
 
   struct nir_shader_compiler_options nir_options = *dxil_get_nir_compiler_options();
 
67
   nir_shader_compiler_options nir_options;
 
68
   const unsigned supported_bit_sizes = 16 | 32 | 64;
 
69
   dxil_get_nir_compiler_options(&nir_options, conf->shader_model_max, supported_bit_sizes, supported_bit_sizes);
68
70
   // We will manually handle base_vertex when vertex_id and instance_id have
69
71
   // have been already converted to zero-base.
70
72
   nir_options.lower_base_vertex = !conf->zero_based_vertex_instance_id;
71
 
   nir_options.lower_helper_invocation = opts.shader_model_max < SHADER_MODEL_6_6;
72
73
 
73
74
   nir_shader *nir = spirv_to_nir(
74
75
      words, word_count, (struct nir_spirv_specialization *)specializations,