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.c766 #define HAS_SWIZZLE(chan,swz) (desc->swizzle[chan] == VK_SWIZZLE_##swz) in radv_translate_colorswap() macro
776 if (HAS_SWIZZLE(0,X)) in radv_translate_colorswap()
778 else if (HAS_SWIZZLE(3,X)) in radv_translate_colorswap()
782 if ((HAS_SWIZZLE(0,X) && HAS_SWIZZLE(1,Y)) || in radv_translate_colorswap()
783 (HAS_SWIZZLE(0,X) && HAS_SWIZZLE(1,NONE)) || in radv_translate_colorswap()
784 (HAS_SWIZZLE(0,NONE) && HAS_SWIZZLE(1,Y))) in radv_translate_colorswap()
786 else if ((HAS_SWIZZLE(0,Y) && HAS_SWIZZLE(1,X)) || in radv_translate_colorswap()
787 (HAS_SWIZZLE(0,Y) && HAS_SWIZZLE(1,NONE)) || in radv_translate_colorswap()
788 (HAS_SWIZZLE(0,NONE) && HAS_SWIZZLE(1,X))) in radv_translate_colorswap()
791 else if (HAS_SWIZZLE(0,X) && HAS_SWIZZLE(3,Y)) in radv_translate_colorswap()
[all …]
/external/mesa3d/src/gallium/drivers/r600/
Dr600_texture.c1662 #define HAS_SWIZZLE(chan,swz) (desc->swizzle[chan] == PIPE_SWIZZLE_##swz) in r600_translate_colorswap() macro
1672 if (HAS_SWIZZLE(0,X)) in r600_translate_colorswap()
1674 else if (HAS_SWIZZLE(3,X)) in r600_translate_colorswap()
1678 if ((HAS_SWIZZLE(0,X) && HAS_SWIZZLE(1,Y)) || in r600_translate_colorswap()
1679 (HAS_SWIZZLE(0,X) && HAS_SWIZZLE(1,NONE)) || in r600_translate_colorswap()
1680 (HAS_SWIZZLE(0,NONE) && HAS_SWIZZLE(1,Y))) in r600_translate_colorswap()
1682 else if ((HAS_SWIZZLE(0,Y) && HAS_SWIZZLE(1,X)) || in r600_translate_colorswap()
1683 (HAS_SWIZZLE(0,Y) && HAS_SWIZZLE(1,NONE)) || in r600_translate_colorswap()
1684 (HAS_SWIZZLE(0,NONE) && HAS_SWIZZLE(1,X))) in r600_translate_colorswap()
1687 else if (HAS_SWIZZLE(0,X) && HAS_SWIZZLE(3,Y)) in r600_translate_colorswap()
[all …]
/external/mesa3d/src/gallium/drivers/radeon/
Dr600_texture.c2066 #define HAS_SWIZZLE(chan,swz) (desc->swizzle[chan] == PIPE_SWIZZLE_##swz) in si_translate_colorswap() macro
2076 if (HAS_SWIZZLE(0,X)) in si_translate_colorswap()
2078 else if (HAS_SWIZZLE(3,X)) in si_translate_colorswap()
2082 if ((HAS_SWIZZLE(0,X) && HAS_SWIZZLE(1,Y)) || in si_translate_colorswap()
2083 (HAS_SWIZZLE(0,X) && HAS_SWIZZLE(1,NONE)) || in si_translate_colorswap()
2084 (HAS_SWIZZLE(0,NONE) && HAS_SWIZZLE(1,Y))) in si_translate_colorswap()
2086 else if ((HAS_SWIZZLE(0,Y) && HAS_SWIZZLE(1,X)) || in si_translate_colorswap()
2087 (HAS_SWIZZLE(0,Y) && HAS_SWIZZLE(1,NONE)) || in si_translate_colorswap()
2088 (HAS_SWIZZLE(0,NONE) && HAS_SWIZZLE(1,X))) in si_translate_colorswap()
2091 else if (HAS_SWIZZLE(0,X) && HAS_SWIZZLE(3,Y)) in si_translate_colorswap()
[all …]