Lines Matching defs:options

307              const nir_lower_tex_options *options)
337 if (options->scale_factors[tex->texture_index])
339 options->scale_factors[tex->texture_index]);
348 const nir_lower_tex_options *options,
354 assert((options->bt709_external & options->bt2020_external) == 0);
355 if (options->yuv_full_range_external & (1u << texture_index)) {
356 if (options->bt709_external & (1u << texture_index)) {
359 } else if (options->bt2020_external & (1u << texture_index)) {
367 if (options->bt709_external & (1u << texture_index)) {
370 } else if (options->bt2020_external & (1u << texture_index)) {
402 const nir_lower_tex_options *options,
407 nir_ssa_def *y = sample_plane(b, tex, 0, options);
408 nir_ssa_def *uv = sample_plane(b, tex, 1, options);
415 options,
421 const nir_lower_tex_options *options,
426 nir_ssa_def *y = sample_plane(b, tex, 0, options);
427 nir_ssa_def *u = sample_plane(b, tex, 1, options);
428 nir_ssa_def *v = sample_plane(b, tex, 2, options);
435 options,
441 const nir_lower_tex_options *options,
446 nir_ssa_def *y = sample_plane(b, tex, 0, options);
447 nir_ssa_def *xuxv = sample_plane(b, tex, 1, options);
454 options,
460 const nir_lower_tex_options *options,
465 nir_ssa_def *y = sample_plane(b, tex, 0, options);
466 nir_ssa_def *uxvx = sample_plane(b, tex, 1, options);
473 options,
479 const nir_lower_tex_options *options,
484 nir_ssa_def *ayuv = sample_plane(b, tex, 0, options);
491 options,
497 const nir_lower_tex_options *options,
502 nir_ssa_def *y41x = sample_plane(b, tex, 0, options);
509 options,
515 const nir_lower_tex_options *options,
520 nir_ssa_def *xyuv = sample_plane(b, tex, 0, options);
527 options,
533 const nir_lower_tex_options *options,
538 nir_ssa_def *yuv = sample_plane(b, tex, 0, options);
545 options,
551 const nir_lower_tex_options *options,
556 nir_ssa_def *yuv = sample_plane(b, tex, 0, options);
563 options,
1037 const nir_lower_tex_options *options)
1043 switch (options->lower_tex_packing[tex->sampler_index]) {
1363 const nir_lower_tex_options *options,
1373 bool lower_txp = !!(options->lower_txp & (1 << tex->sampler_dim));
1378 if ((1 << tex->sampler_index) & options->saturate_r)
1380 if ((1 << tex->sampler_index) & options->saturate_t)
1382 if ((1 << tex->sampler_index) & options->saturate_s)
1389 (options->lower_txp_array && tex->is_array)) {
1393 if ((tex->op == nir_texop_txf && options->lower_txf_offset) ||
1396 options->lower_rect_offset) ||
1397 (options->lower_offset_filter &&
1398 options->lower_offset_filter(instr, options->callback_data))) {
1402 if ((tex->sampler_dim == GLSL_SAMPLER_DIM_RECT) && options->lower_rect &&
1424 if (texture_mask & options->lower_y_uv_external) {
1425 lower_y_uv_external(b, tex, options, texture_index);
1429 if (texture_mask & options->lower_y_u_v_external) {
1430 lower_y_u_v_external(b, tex, options, texture_index);
1434 if (texture_mask & options->lower_yx_xuxv_external) {
1435 lower_yx_xuxv_external(b, tex, options, texture_index);
1439 if (texture_mask & options->lower_xy_uxvx_external) {
1440 lower_xy_uxvx_external(b, tex, options, texture_index);
1444 if (texture_mask & options->lower_ayuv_external) {
1445 lower_ayuv_external(b, tex, options, texture_index);
1449 if (texture_mask & options->lower_xyuv_external) {
1450 lower_xyuv_external(b, tex, options, texture_index);
1454 if (texture_mask & options->lower_yuv_external) {
1455 lower_yuv_external(b, tex, options, texture_index);
1459 if ((1 << tex->texture_index) & options->lower_yu_yv_external) {
1460 lower_yu_yv_external(b, tex, options, texture_index);
1464 if ((1 << tex->texture_index) & options->lower_y41x_external) {
1465 lower_y41x_external(b, tex, options, texture_index);
1474 if (tex->op == nir_texop_tg4 && options->lower_tg4_broadcom_swizzle) {
1479 if ((texture_mask & options->swizzle_result) &&
1482 swizzle_result(b, tex, options->swizzles[tex->texture_index]);
1487 if ((texture_mask & options->lower_srgb) &&
1499 options->lower_txb_shadow_clamp) {
1504 if (options->lower_tex_packing[tex->sampler_index] !=
1509 lower_tex_packing(b, tex, options);
1513 if (options->lower_array_layer_round_even && tex->is_array &&
1519 (options->lower_txd ||
1520 (options->lower_txd_shadow && tex->is_shadow) ||
1521 (options->lower_txd_shadow_clamp && tex->is_shadow && has_min_lod) ||
1522 (options->lower_txd_offset_clamp && has_offset && has_min_lod) ||
1523 (options->lower_txd_clamp_bindless_sampler && has_min_lod &&
1525 (options->lower_txd_clamp_if_sampler_index_not_lt_16 &&
1527 (options->lower_txd_cube_map &&
1529 (options->lower_txd_3d &&
1531 (options->lower_txd_array && tex->is_array))) {
1554 if (options->lower_invalid_implicit_lod &&
1562 if (options->lower_txs_lod && tex->op == nir_texop_txs) {
1567 if (options->lower_txs_cube_array && tex->op == nir_texop_txs &&
1579 options->lower_tg4_offsets) {
1584 if (options->lower_to_fragment_fetch_amd && tex->op == nir_texop_txf_ms) {
1590 if (options->lower_to_fragment_fetch_amd && tex->op == nir_texop_samples_identical) {
1596 if (options->lower_lod_zero_width && tex->op == nir_texop_lod) {
1608 const nir_lower_tex_options *options,
1616 progress |= nir_lower_tex_block(block, &builder, options, compiler_options);
1625 nir_lower_tex(nir_shader *shader, const nir_lower_tex_options *options)
1631 progress |= nir_lower_tex_impl(function->impl, options, shader->options);