Home
last modified time | relevance | path

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

/third_party/mesa3d/src/amd/vulkan/
Dradv_formats.c1038 #define HAS_SWIZZLE(chan, swz) (desc->swizzle[chan] == PIPE_SWIZZLE_##swz) in radv_translate_colorswap() macro
1051 if (HAS_SWIZZLE(0, X)) in radv_translate_colorswap()
1053 else if (HAS_SWIZZLE(3, X)) in radv_translate_colorswap()
1057 if ((HAS_SWIZZLE(0, X) && HAS_SWIZZLE(1, Y)) || (HAS_SWIZZLE(0, X) && HAS_SWIZZLE(1, NONE)) || in radv_translate_colorswap()
1058 (HAS_SWIZZLE(0, NONE) && HAS_SWIZZLE(1, Y))) in radv_translate_colorswap()
1060 else if ((HAS_SWIZZLE(0, Y) && HAS_SWIZZLE(1, X)) || in radv_translate_colorswap()
1061 (HAS_SWIZZLE(0, Y) && HAS_SWIZZLE(1, NONE)) || in radv_translate_colorswap()
1062 (HAS_SWIZZLE(0, NONE) && HAS_SWIZZLE(1, X))) in radv_translate_colorswap()
1065 else if (HAS_SWIZZLE(0, X) && HAS_SWIZZLE(3, Y)) in radv_translate_colorswap()
1067 else if (HAS_SWIZZLE(0, Y) && HAS_SWIZZLE(3, X)) in radv_translate_colorswap()
[all …]
/third_party/mesa3d/src/gallium/drivers/r600/
Dr600_texture.c1651 #define HAS_SWIZZLE(chan,swz) (desc->swizzle[chan] == PIPE_SWIZZLE_##swz) in r600_translate_colorswap() macro
1661 if (HAS_SWIZZLE(0,X)) in r600_translate_colorswap()
1663 else if (HAS_SWIZZLE(3,X)) in r600_translate_colorswap()
1667 if ((HAS_SWIZZLE(0,X) && HAS_SWIZZLE(1,Y)) || in r600_translate_colorswap()
1668 (HAS_SWIZZLE(0,X) && HAS_SWIZZLE(1,NONE)) || in r600_translate_colorswap()
1669 (HAS_SWIZZLE(0,NONE) && HAS_SWIZZLE(1,Y))) in r600_translate_colorswap()
1671 else if ((HAS_SWIZZLE(0,Y) && HAS_SWIZZLE(1,X)) || in r600_translate_colorswap()
1672 (HAS_SWIZZLE(0,Y) && HAS_SWIZZLE(1,NONE)) || in r600_translate_colorswap()
1673 (HAS_SWIZZLE(0,NONE) && HAS_SWIZZLE(1,X))) in r600_translate_colorswap()
1676 else if (HAS_SWIZZLE(0,X) && HAS_SWIZZLE(3,Y)) in r600_translate_colorswap()
[all …]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_texture.c2151 #define HAS_SWIZZLE(chan, swz) (desc->swizzle[chan] == PIPE_SWIZZLE_##swz) in si_translate_colorswap() macro
2165 if (HAS_SWIZZLE(0, X)) in si_translate_colorswap()
2167 else if (HAS_SWIZZLE(3, X)) in si_translate_colorswap()
2171 if ((HAS_SWIZZLE(0, X) && HAS_SWIZZLE(1, Y)) || (HAS_SWIZZLE(0, X) && HAS_SWIZZLE(1, NONE)) || in si_translate_colorswap()
2172 (HAS_SWIZZLE(0, NONE) && HAS_SWIZZLE(1, Y))) in si_translate_colorswap()
2174 else if ((HAS_SWIZZLE(0, Y) && HAS_SWIZZLE(1, X)) || in si_translate_colorswap()
2175 (HAS_SWIZZLE(0, Y) && HAS_SWIZZLE(1, NONE)) || in si_translate_colorswap()
2176 (HAS_SWIZZLE(0, NONE) && HAS_SWIZZLE(1, X))) in si_translate_colorswap()
2179 else if (HAS_SWIZZLE(0, X) && HAS_SWIZZLE(3, Y)) in si_translate_colorswap()
2181 else if (HAS_SWIZZLE(0, Y) && HAS_SWIZZLE(3, X)) in si_translate_colorswap()
[all …]