Home
last modified time | relevance | path

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

/external/mesa3d/src/amd/vulkan/
Dradv_formats.c950 #define HAS_SWIZZLE(chan,swz) (desc->swizzle[chan] == VK_SWIZZLE_##swz) in radv_translate_colorswap() macro
963 if (HAS_SWIZZLE(0,X)) in radv_translate_colorswap()
965 else if (HAS_SWIZZLE(3,X)) in radv_translate_colorswap()
969 if ((HAS_SWIZZLE(0,X) && HAS_SWIZZLE(1,Y)) || in radv_translate_colorswap()
970 (HAS_SWIZZLE(0,X) && HAS_SWIZZLE(1,NONE)) || in radv_translate_colorswap()
971 (HAS_SWIZZLE(0,NONE) && HAS_SWIZZLE(1,Y))) in radv_translate_colorswap()
973 else if ((HAS_SWIZZLE(0,Y) && HAS_SWIZZLE(1,X)) || in radv_translate_colorswap()
974 (HAS_SWIZZLE(0,Y) && HAS_SWIZZLE(1,NONE)) || in radv_translate_colorswap()
975 (HAS_SWIZZLE(0,NONE) && HAS_SWIZZLE(1,X))) in radv_translate_colorswap()
978 else if (HAS_SWIZZLE(0,X) && HAS_SWIZZLE(3,Y)) in radv_translate_colorswap()
[all …]
/external/mesa3d/src/gallium/drivers/r600/
Dr600_texture.c1668 #define HAS_SWIZZLE(chan,swz) (desc->swizzle[chan] == PIPE_SWIZZLE_##swz) in r600_translate_colorswap() macro
1678 if (HAS_SWIZZLE(0,X)) in r600_translate_colorswap()
1680 else if (HAS_SWIZZLE(3,X)) in r600_translate_colorswap()
1684 if ((HAS_SWIZZLE(0,X) && HAS_SWIZZLE(1,Y)) || in r600_translate_colorswap()
1685 (HAS_SWIZZLE(0,X) && HAS_SWIZZLE(1,NONE)) || in r600_translate_colorswap()
1686 (HAS_SWIZZLE(0,NONE) && HAS_SWIZZLE(1,Y))) in r600_translate_colorswap()
1688 else if ((HAS_SWIZZLE(0,Y) && HAS_SWIZZLE(1,X)) || in r600_translate_colorswap()
1689 (HAS_SWIZZLE(0,Y) && HAS_SWIZZLE(1,NONE)) || in r600_translate_colorswap()
1690 (HAS_SWIZZLE(0,NONE) && HAS_SWIZZLE(1,X))) in r600_translate_colorswap()
1693 else if (HAS_SWIZZLE(0,X) && HAS_SWIZZLE(3,Y)) in r600_translate_colorswap()
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_texture.c1972 #define HAS_SWIZZLE(chan, swz) (desc->swizzle[chan] == PIPE_SWIZZLE_##swz) in si_translate_colorswap() macro
1982 if (HAS_SWIZZLE(0, X)) in si_translate_colorswap()
1984 else if (HAS_SWIZZLE(3, X)) in si_translate_colorswap()
1988 if ((HAS_SWIZZLE(0, X) && HAS_SWIZZLE(1, Y)) || (HAS_SWIZZLE(0, X) && HAS_SWIZZLE(1, NONE)) || in si_translate_colorswap()
1989 (HAS_SWIZZLE(0, NONE) && HAS_SWIZZLE(1, Y))) in si_translate_colorswap()
1991 else if ((HAS_SWIZZLE(0, Y) && HAS_SWIZZLE(1, X)) || in si_translate_colorswap()
1992 (HAS_SWIZZLE(0, Y) && HAS_SWIZZLE(1, NONE)) || in si_translate_colorswap()
1993 (HAS_SWIZZLE(0, NONE) && HAS_SWIZZLE(1, X))) in si_translate_colorswap()
1996 else if (HAS_SWIZZLE(0, X) && HAS_SWIZZLE(3, Y)) in si_translate_colorswap()
1998 else if (HAS_SWIZZLE(0, Y) && HAS_SWIZZLE(3, X)) in si_translate_colorswap()
[all …]