Home
last modified time | relevance | path

Searched refs:nr_channels (Results 1 – 25 of 59) sorted by relevance

123

/third_party/mesa3d/src/gallium/auxiliary/translate/
Dtranslate_sse.c485 for (i = 1; i < input_desc->nr_channels; ++i) { in translate_attr_convert()
492 for (i = 1; i < output_desc->nr_channels; ++i) { in translate_attr_convert()
500 for (i = 0; i < output_desc->nr_channels; ++i) { in translate_attr_convert()
512 for (i = 0; i < output_desc->nr_channels; ++i) { in translate_attr_convert()
514 && i >= input_desc->nr_channels) in translate_attr_convert()
518 for (i = 0; i < output_desc->nr_channels; ++i) { in translate_attr_convert()
532 input_desc->nr_channels >> 3); in translate_attr_convert()
584 input_desc->nr_channels >> 3); in translate_attr_convert()
634 && input_desc->nr_channels <= 3) { in translate_attr_convert()
641 input_desc->nr_channels); in translate_attr_convert()
[all …]
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_bld_blend_aos.c322 int nr_channels) in lp_build_blend_aos() argument
375 nr_channels == 1; in lp_build_blend_aos()
376 boolean alpha_only = nr_channels == 1 && alpha_swizzle == PIPE_SWIZZLE_X; in lp_build_blend_aos()
381 nr_channels); in lp_build_blend_aos()
386 nr_channels); in lp_build_blend_aos()
399 if (state->rgb_func != state->alpha_func && nr_channels > 1 && in lp_build_blend_aos()
419 nr_channels); in lp_build_blend_aos()
428 state->colormask, nr_channels, swizzle); in lp_build_blend_aos()
Dlp_bld_blend.h72 int nr_channels);
/third_party/mesa3d/src/amd/vulkan/
Dradv_formats.c58 if (desc->nr_channels == 4 && desc->channel[0].size == 10 && desc->channel[1].size == 10 && in radv_translate_buffer_dataformat()
63 for (i = 0; i < desc->nr_channels; i++) { in radv_translate_buffer_dataformat()
70 switch (desc->nr_channels) { in radv_translate_buffer_dataformat()
80 switch (desc->nr_channels) { in radv_translate_buffer_dataformat()
97 switch (desc->nr_channels) { in radv_translate_buffer_dataformat()
109 if (type != UTIL_FORMAT_TYPE_FLOAT && desc->nr_channels == 1) in radv_translate_buffer_dataformat()
332 for (i = 1; i < desc->nr_channels; i++) { in radv_translate_tex_dataformat()
338 switch (desc->nr_channels) { in radv_translate_tex_dataformat()
372 switch (desc->nr_channels) { in radv_translate_tex_dataformat()
382 switch (desc->nr_channels) { in radv_translate_tex_dataformat()
[all …]
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_texture.c314 for (i = 0; i < desc->nr_channels; i++) { in r300_translate_texformat()
321 for (i = 1; i < desc->nr_channels; i++) { in r300_translate_texformat()
327 switch (desc->nr_channels) { in r300_translate_texformat()
384 switch (desc->nr_channels) { in r300_translate_texformat()
393 switch (desc->nr_channels) { in r300_translate_texformat()
404 switch (desc->nr_channels) { in r300_translate_texformat()
418 switch (desc->nr_channels) { in r300_translate_texformat()
429 switch (desc->nr_channels) { in r300_translate_texformat()
618 switch (desc->nr_channels) { in r300_translate_out_fmt()
632 switch (desc->nr_channels) { in r300_translate_out_fmt()
[all …]
Dr300_state_inlines.h367 if (desc->nr_channels > 2) { in r300_translate_vertex_data_type()
374 result = R300_DATA_TYPE_FLOAT_1 + (desc->nr_channels - 1); in r300_translate_vertex_data_type()
389 if (desc->nr_channels > 2) { in r300_translate_vertex_data_type()
432 for (i = 0; i < desc->nr_channels; i++) { in r300_translate_vertex_data_swizzle()
Dr300_screen.c505 desc->nr_channels == 4 && in r300_is_blending_supported()
515 if (desc->nr_channels >= 3) in r300_is_blending_supported()
522 if (desc->nr_channels == 1) in r300_is_blending_supported()
/third_party/mesa3d/src/panfrost/lib/
Dpan_afbc.c167 if (desc->nr_channels != 3 && desc->nr_channels != 4) in panfrost_afbc_can_ytr()
/third_party/mesa3d/src/gallium/tests/unit/
Dtranslate_test.c190 for(i = 0; i < output_format_desc->nr_channels; ++i) in main()
221 for(i = 0; i < input_format_desc->nr_channels; ++i) in main()
234 …&& input_format_size * output_format_desc->nr_channels > output_format_size * input_format_desc->n… in main()
/third_party/mesa3d/src/util/format/
Du_format_parse.py157 chans = self.nr_channels()
203 def nr_channels(self): member in Format
204 nr_channels = 0
207 nr_channels += 1
208 return nr_channels
Du_format.c138 desc->nr_channels == 4 && in util_format_has_alpha1()
529 src_desc->nr_channels != dst_desc->nr_channels || in util_is_format_compatible()
603 for (chan = 0; chan < format_desc->nr_channels; ++chan) { in util_format_fits_8unorm()
Du_format_table.py209 print(" %u,\t/* nr_channels */" % (format.nr_channels(),))
Du_format.h168 unsigned nr_channels:3; member
811 desc->nr_channels == 4 && in util_format_is_rgbx_or_bgrx()
1444 return desc->nr_channels; in util_format_get_nr_components()
/third_party/mesa3d/src/panfrost/util/
Dpan_lower_framebuffer.c430 return d.size == 32 ? pan_unpack_pure_32(b, packed, desc->nr_channels) : in pan_unpack()
431 pan_unpack_pure_16(b, packed, desc->nr_channels); in pan_unpack()
434 return pan_unpack_pure_8(b, packed, desc->nr_channels); in pan_unpack()
481 pan_replicate(b, unpacked, desc->nr_channels) : in pan_pack()
482 pan_pack_pure_16(b, unpacked, desc->nr_channels); in pan_pack()
485 return pan_pack_pure_8(b, unpacked, desc->nr_channels); in pan_pack()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_cb_copyimage.c67 if (desc->nr_channels == 4 && in get_canonical_format()
104 switch (desc->nr_channels) { in get_canonical_format()
200 for (i = 0; i < desc->nr_channels; i++) in has_identity_swizzle()
345 d1->nr_channels != d2->nr_channels || in same_size_and_swizzle()
349 for (i = 0; i < d1->nr_channels; i++) { in same_size_and_swizzle()
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_blend.c286 if (desc->nr_channels < 4) { in nir_blend()
291 desc->nr_channels > 1 ? nir_channel(b, dst, 1) : zero, in nir_blend()
292 desc->nr_channels > 2 ? nir_channel(b, dst, 2) : zero, in nir_blend()
293 desc->nr_channels > 3 ? nir_channel(b, dst, 3) : one); in nir_blend()
/third_party/mesa3d/src/mesa/main/
Dformat_parser.py328 nr_channels = 0
331 nr_channels += 1
332 return nr_channels
/third_party/mesa3d/src/mesa/state_tracker/tests/
Dst_format.c92 if (desc->nr_channels > 1) { in main()
/third_party/mesa3d/src/gallium/drivers/r600/
Dr600_formats.h119 if (desc->channel[i].size == 8 && desc->nr_channels == 3) in r600_is_vertex_format_supported()
Dr600_state_common.c1428 if (j < desc->nr_channels) in r600_setup_buffer_constants()
1432 if (desc->nr_channels < 4) { in r600_setup_buffer_constants()
2926 for (i = 0; i < desc->nr_channels; i++) { in r600_translate_texformat()
2935 for (i = 1; i < desc->nr_channels; i++) { in r600_translate_texformat()
2944 switch(desc->nr_channels) { in r600_translate_texformat()
2999 switch (desc->nr_channels) { in r600_translate_texformat()
3009 switch (desc->nr_channels) { in r600_translate_texformat()
3024 switch (desc->nr_channels) { in r600_translate_texformat()
3037 switch (desc->nr_channels) { in r600_translate_texformat()
3054 switch (desc->nr_channels) { in r600_translate_texformat()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_format_soa.c323 for (chan = 0; chan < format_desc->nr_channels; ++chan) { in lp_build_unpack_rgba_soa()
652 for (i = 0; i < format_desc->nr_channels; i++) { in lp_build_fetch_rgba_soa()
672 for (i = 0; i < format_desc->nr_channels; i++) { in lp_build_fetch_rgba_soa()
998 for (chan = 0; chan < format_desc->nr_channels; ++chan) { in lp_build_pack_rgba_soa()
1064 for (unsigned i = 0; i < format_desc->nr_channels; i++) { in lp_build_store_rgba_soa()
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_formats.c151 if (desc->nr_channels == 1 && vk_format_is_int(vk_format)) in image_format_features()
208 desc->nr_channels == 1 && in buffer_format_features()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_clear.c174 if (desc->nr_channels == 3) in vi_alpha_is_on_msb()
177 if (sscreen->info.chip_class >= GFX10 && desc->nr_channels == 1) in vi_alpha_is_on_msb()
216 if (desc->nr_channels == 3) in vi_get_fast_clear_parameters()
219 alpha_channel = desc->nr_channels - 1; in vi_get_fast_clear_parameters()
Dsi_state.c1579 switch (desc->nr_channels) { in si_translate_colorformat()
1755 if (desc->nr_channels != 4 && desc->nr_channels != 1) in si_translate_texformat()
1872 for (i = 1; i < desc->nr_channels; i++) { in si_translate_texformat()
1878 switch (desc->nr_channels) { in si_translate_texformat()
1909 switch (desc->nr_channels) { in si_translate_texformat()
1919 switch (desc->nr_channels) { in si_translate_texformat()
1929 switch (desc->nr_channels) { in si_translate_texformat()
1939 switch (desc->nr_channels) { in si_translate_texformat()
2106 if (desc->nr_channels == 4 && desc->channel[0].size == 10 && desc->channel[1].size == 10 && in si_translate_buffer_dataformat()
2111 for (i = 0; i < desc->nr_channels; i++) { in si_translate_buffer_dataformat()
[all …]
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_format.c216 if (desc->nr_channels != 4) in zink_format_is_voidable_rgba_variant()

123