Home
last modified time | relevance | path

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

/third_party/mesa3d/src/mesa/main/
Dformat_utils.c83 uint8_t *rebase_swizzle, in compute_rebased_rgba_component_mapping() argument
88 if (rebase_swizzle) { in compute_rebased_rgba_component_mapping()
90 if (rebase_swizzle[i] > MESA_FORMAT_SWIZZLE_W) in compute_rebased_rgba_component_mapping()
91 rebased_src2rgba[i] = rebase_swizzle[i]; in compute_rebased_rgba_component_mapping()
93 rebased_src2rgba[i] = src2rgba[rebase_swizzle[i]]; in compute_rebased_rgba_component_mapping()
113 uint8_t *rebase_swizzle, uint8_t *src2dst) in compute_src2dst_component_mapping() argument
117 if (!rebase_swizzle) { in compute_src2dst_component_mapping()
129 } else if (rebase_swizzle[rgba2dst[i]] > MESA_FORMAT_SWIZZLE_W) { in compute_src2dst_component_mapping()
130 src2dst[i] = rebase_swizzle[rgba2dst[i]]; in compute_src2dst_component_mapping()
132 src2dst[i] = src2rgba[rebase_swizzle[rgba2dst[i]]]; in compute_src2dst_component_mapping()
[all …]
Dreadpix.c452 uint8_t rebase_swizzle[4]; in read_rgba_pixels() local
486 rebase_swizzle[0] = MESA_FORMAT_SWIZZLE_X; in read_rgba_pixels()
487 rebase_swizzle[1] = MESA_FORMAT_SWIZZLE_ZERO; in read_rgba_pixels()
488 rebase_swizzle[2] = MESA_FORMAT_SWIZZLE_ZERO; in read_rgba_pixels()
489 rebase_swizzle[3] = MESA_FORMAT_SWIZZLE_ONE; in read_rgba_pixels()
492 rebase_swizzle[0] = MESA_FORMAT_SWIZZLE_X; in read_rgba_pixels()
493 rebase_swizzle[1] = MESA_FORMAT_SWIZZLE_ZERO; in read_rgba_pixels()
494 rebase_swizzle[2] = MESA_FORMAT_SWIZZLE_ZERO; in read_rgba_pixels()
495 rebase_swizzle[3] = MESA_FORMAT_SWIZZLE_W; in read_rgba_pixels()
499 rebase_swizzle); in read_rgba_pixels()
[all …]
Dformat_utils.h65 size_t width, size_t height, uint8_t *rebase_swizzle);