Home
last modified time | relevance | path

Searched refs:first_non_void (Results 1 – 5 of 5) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_format.c155 unsigned first_non_void = util_format_get_first_non_void_channel(format); in zink_decompose_vertex_format() local
157 assert(first_non_void == 0); in zink_decompose_vertex_format()
166 return unorm_formats[desc->channel[first_non_void].size >> 4]; in zink_decompose_vertex_format()
173 return snorm_formats[desc->channel[first_non_void].size >> 4]; in zink_decompose_vertex_format()
183 switch (desc->channel[first_non_void].type) { in zink_decompose_vertex_format()
185 …return uint_formats[desc->channel[first_non_void].pure_integer][desc->channel[first_non_void].size… in zink_decompose_vertex_format()
187 …return sint_formats[desc->channel[first_non_void].pure_integer][desc->channel[first_non_void].size… in zink_decompose_vertex_format()
189 … return desc->channel[first_non_void].size == 16 ? PIPE_FORMAT_R16_FLOAT : PIPE_FORMAT_R32_FLOAT; in zink_decompose_vertex_format()
/third_party/mesa3d/src/amd/vulkan/
Dradv_formats.c42 radv_translate_buffer_dataformat(const struct util_format_description *desc, int first_non_void) in radv_translate_buffer_dataformat() argument
52 if (first_non_void < 0) in radv_translate_buffer_dataformat()
54 type = desc->channel[first_non_void].type; in radv_translate_buffer_dataformat()
64 if (desc->channel[first_non_void].size != desc->channel[i].size) in radv_translate_buffer_dataformat()
68 switch (desc->channel[first_non_void].size) { in radv_translate_buffer_dataformat()
94 if (type != UTIL_FORMAT_TYPE_FLOAT && !desc->channel[first_non_void].pure_integer) in radv_translate_buffer_dataformat()
117 radv_translate_buffer_numformat(const struct util_format_description *desc, int first_non_void) in radv_translate_buffer_numformat() argument
124 if (first_non_void < 0) in radv_translate_buffer_numformat()
127 switch (desc->channel[first_non_void].type) { in radv_translate_buffer_numformat()
129 if (desc->channel[first_non_void].normalized) in radv_translate_buffer_numformat()
[all …]
Dradv_image.c720 int first_non_void; in radv_make_buffer_descriptor() local
723 first_non_void = vk_format_get_first_non_void_channel(vk_format); in radv_make_buffer_descriptor()
756 num_format = radv_translate_buffer_numformat(desc, first_non_void); in radv_make_buffer_descriptor()
757 data_format = radv_translate_buffer_dataformat(desc, first_non_void); in radv_make_buffer_descriptor()
1124 int first_non_void; in si_make_texture_descriptor() local
1142 first_non_void = vk_format_get_first_non_void_channel(vk_format); in si_make_texture_descriptor()
1144 num_format = radv_translate_tex_numformat(vk_format, desc, first_non_void); in si_make_texture_descriptor()
1149 data_format = radv_translate_tex_dataformat(vk_format, desc, first_non_void); in si_make_texture_descriptor()
Dradv_private.h2319 int first_non_void);
2321 int first_non_void);
2329 int first_non_void);
2334 int first_non_void);
2336 int first_non_void);
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state.c1682 int first_non_void = util_format_get_first_non_void_channel(format); in si_translate_colorformat() local
1685 if (first_non_void >= 0 && first_non_void <= 3 && in si_translate_colorformat()
1686 (desc->channel[first_non_void].type == UTIL_FORMAT_TYPE_UNSIGNED || in si_translate_colorformat()
1687 desc->channel[first_non_void].type == UTIL_FORMAT_TYPE_SIGNED) && in si_translate_colorformat()
1688 !desc->channel[first_non_void].normalized && in si_translate_colorformat()
1689 !desc->channel[first_non_void].pure_integer) in si_translate_colorformat()
1821 int first_non_void) in si_translate_texformat() argument
1980 if (first_non_void < 0 || first_non_void > 3) in si_translate_texformat()
1984 if ((desc->channel[first_non_void].type == UTIL_FORMAT_TYPE_UNSIGNED || in si_translate_texformat()
1985 desc->channel[first_non_void].type == UTIL_FORMAT_TYPE_SIGNED) && in si_translate_texformat()
[all …]