Lines Matching defs:min
125 /* Store the min/max index in a separate context. This is not supported yet, but
126 * the DDK seems to put all min/max search jobs at the beginning of the job chain
129 * min/max and draw contexts would prevent such optimizations (draw contexts are
134 uint32_t min;
264 offsetof(struct min_max_context, min));
841 nir_ssa_def *min = get_min_max_ctx_field(builder, min);
845 * the min/max search job.
849 nir_local_variable_create(b->impl, glsl_uint_type(), "min");
850 nir_store_var(b, min_var, min, 1);
873 min = nir_load_var(b, min_var);
884 min = nir_umin(b, min,
891 nir_store_var(b, min_var, min, 1);
901 min = nir_load_var(b, min_var);
909 min = nir_umin(b, min,
916 nir_store_var(b, min_var, min, 1);
920 min = nir_load_var(b, min_var);
924 builder->jobs.base_vertex_offset = nir_ineg(b, min);
925 builder->jobs.offset_start = nir_iadd(b, min, builder->draw.index_bias);
926 builder->instance_size.raw = nir_iadd_imm(b, nir_usub_sat(b, max, min), 1);
1003 /* Search the min/max index in the range covered by the indirect draw call */
1019 nir_local_variable_create(b->impl, glsl_uint_type(), "min");
1320 ctx->min = UINT32_MAX;