Searched refs:HAS_SWIZZLE (Results 1 – 3 of 3) sorted by relevance
/third_party/mesa3d/src/amd/vulkan/ |
D | radv_formats.c | 1038 #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/ |
D | r600_texture.c | 1651 #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/ |
D | si_texture.c | 2151 #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 …]
|