Lines Matching defs:opts

449    const struct nir_to_dxil_options *opts;
1069 if (ctx->opts->environment == DXIL_ENVIRONMENT_GL) {
1278 if (ctx->opts->environment == DXIL_ENVIRONMENT_VULKAN)
1331 ctx->opts->environment == DXIL_ENVIRONMENT_GL));
1336 if (ctx->opts->environment == DXIL_ENVIRONMENT_CL &&
1494 if (ctx->opts->disable_math_refactoring)
2829 assert(ctx->opts->environment != DXIL_ENVIRONMENT_VULKAN);
2857 ctx->opts->environment == DXIL_ENVIRONMENT_VULKAN) {
2862 if (ctx->opts->environment == DXIL_ENVIRONMENT_GL &&
2882 if (ctx->opts->environment == DXIL_ENVIRONMENT_GL &&
2900 if (ctx->opts->environment == DXIL_ENVIRONMENT_VULKAN) {
3250 ctx->opts->interpolate_at_vertex &&
3251 ctx->opts->provoking_vertex != 0 &&
3302 vertex_id = dxil_module_get_int8_const(&ctx->mod, ctx->opts->provoking_vertex);
3917 if (ctx->opts->environment == DXIL_ENVIRONMENT_VULKAN) {
4453 if (ctx->opts->environment == DXIL_ENVIRONMENT_CL)
4470 unsigned binding_val = ctx->opts->environment == DXIL_ENVIRONMENT_GL ?
4502 if (ctx->opts->environment == DXIL_ENVIRONMENT_VULKAN &&
4513 unsigned descriptor_set = ctx->opts->environment == DXIL_ENVIRONMENT_VULKAN ?
4812 if (ctx->opts->environment != DXIL_ENVIRONMENT_VULKAN) {
4902 assert(ctx->opts->environment == DXIL_ENVIRONMENT_VULKAN);
4907 assert(ctx->opts->environment == DXIL_ENVIRONMENT_VULKAN);
5228 if (ctx->opts->environment != DXIL_ENVIRONMENT_GL) {
5236 bool has_ubo0 = !ctx->opts->no_ubo0;
5237 bool has_state_vars = ctx->opts->last_ubo_is_not_arrayed;
5376 emit_module(struct ntd_context *ctx, const struct nir_to_dxil_options *opts)
5402 if (ctx->opts->environment == DXIL_ENVIRONMENT_VULKAN) {
5411 if (ctx->opts->environment == DXIL_ENVIRONMENT_VULKAN) {
5449 if (!emit_globals(ctx, opts->num_kernel_globals))
5457 } else if (ctx->opts->environment == DXIL_ENVIRONMENT_VULKAN) {
5491 if (ctx->opts->environment == DXIL_ENVIRONMENT_VULKAN &&
5511 ctx->shader->info.clip_distance_array_size : ctx->opts->input_clip_size;
5573 const struct nir_to_dxil_options *opts = (const struct nir_to_dxil_options*)data;
5574 unsigned min_bit_size = opts->lower_int16 ? 32 : 16;
5587 optimize_nir(struct nir_shader *s, const struct nir_to_dxil_options *opts)
5597 NIR_PASS(progress, s, nir_lower_bit_size, lower_bit_size_callback, (void*)opts);
5599 if (opts->lower_int16)
5616 NIR_PASS(progress, s, dxil_nir_lower_upcast_phis, opts->lower_int16 ? 32 : 16);
5799 nir_to_dxil(struct nir_shader *s, const struct nir_to_dxil_options *opts,
5802 assert(opts);
5807 if (opts->shader_model_max < SHADER_MODEL_6_1) {
5812 if (opts->validator_version_max != NO_DXIL_VALIDATION &&
5813 opts->validator_version_max < dxil_validator_min_capable_version) {
5815 opts->validator_version_max >> 16,
5816 opts->validator_version_max & 0xffff);
5824 opts->validator_version_max == NO_DXIL_VALIDATION ||
5825 opts->validator_version_max > dxil_validator_max_capable_version ?
5826 dxil_validator_max_capable_version : opts->validator_version_max;
5832 ctx->opts = opts;
5884 optimize_nir(s, opts);
5898 if (!emit_module(ctx, opts)) {
5905 if ((ctx->mod.major_version << 16 | ctx->mod.minor_version) > opts->shader_model_max) {