Home
last modified time | relevance | path

Searched refs:rebase_swizzle (Results 1 – 3 of 3) sorted by relevance

/external/mesa3d/src/mesa/main/
Dformat_utils.c72 uint8_t *rebase_swizzle, in compute_rebased_rgba_component_mapping() argument
77 if (rebase_swizzle) { in compute_rebased_rgba_component_mapping()
79 if (rebase_swizzle[i] > MESA_FORMAT_SWIZZLE_W) in compute_rebased_rgba_component_mapping()
80 rebased_src2rgba[i] = rebase_swizzle[i]; in compute_rebased_rgba_component_mapping()
82 rebased_src2rgba[i] = src2rgba[rebase_swizzle[i]]; in compute_rebased_rgba_component_mapping()
102 uint8_t *rebase_swizzle, uint8_t *src2dst) in compute_src2dst_component_mapping() argument
106 if (!rebase_swizzle) { in compute_src2dst_component_mapping()
118 } else if (rebase_swizzle[rgba2dst[i]] > MESA_FORMAT_SWIZZLE_W) { in compute_src2dst_component_mapping()
119 src2dst[i] = rebase_swizzle[rgba2dst[i]]; in compute_src2dst_component_mapping()
121 src2dst[i] = src2rgba[rebase_swizzle[rgba2dst[i]]]; in compute_src2dst_component_mapping()
[all …]
Dreadpix.c437 uint8_t rebase_swizzle[4]; in read_rgba_pixels() local
471 rebase_swizzle[0] = MESA_FORMAT_SWIZZLE_X; in read_rgba_pixels()
472 rebase_swizzle[1] = MESA_FORMAT_SWIZZLE_ZERO; in read_rgba_pixels()
473 rebase_swizzle[2] = MESA_FORMAT_SWIZZLE_ZERO; in read_rgba_pixels()
474 rebase_swizzle[3] = MESA_FORMAT_SWIZZLE_ONE; in read_rgba_pixels()
477 rebase_swizzle[0] = MESA_FORMAT_SWIZZLE_X; in read_rgba_pixels()
478 rebase_swizzle[1] = MESA_FORMAT_SWIZZLE_ZERO; in read_rgba_pixels()
479 rebase_swizzle[2] = MESA_FORMAT_SWIZZLE_ZERO; in read_rgba_pixels()
480 rebase_swizzle[3] = MESA_FORMAT_SWIZZLE_W; in read_rgba_pixels()
484 rebase_swizzle); in read_rgba_pixels()
[all …]
Dformat_utils.h238 size_t width, size_t height, uint8_t *rebase_swizzle);