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.c1027 #define HAS_SWIZZLE(chan, swz) (desc->swizzle[chan] == PIPE_SWIZZLE_##swz) in radv_translate_colorswap() macro
1040 if (HAS_SWIZZLE(0, X)) in radv_translate_colorswap()
1042 else if (HAS_SWIZZLE(3, X)) in radv_translate_colorswap()
1046 if ((HAS_SWIZZLE(0, X) && HAS_SWIZZLE(1, Y)) || (HAS_SWIZZLE(0, X) && HAS_SWIZZLE(1, NONE)) || in radv_translate_colorswap()
1047 (HAS_SWIZZLE(0, NONE) && HAS_SWIZZLE(1, Y))) in radv_translate_colorswap()
1049 else if ((HAS_SWIZZLE(0, Y) && HAS_SWIZZLE(1, X)) || in radv_translate_colorswap()
1050 (HAS_SWIZZLE(0, Y) && HAS_SWIZZLE(1, NONE)) || in radv_translate_colorswap()
1051 (HAS_SWIZZLE(0, NONE) && HAS_SWIZZLE(1, X))) in radv_translate_colorswap()
1054 else if (HAS_SWIZZLE(0, X) && HAS_SWIZZLE(3, Y)) in radv_translate_colorswap()
1056 else if (HAS_SWIZZLE(0, Y) && HAS_SWIZZLE(3, X)) in radv_translate_colorswap()
[all …]
/third_party/mesa3d/src/gallium/drivers/r600/
Dr600_texture.c1655 #define HAS_SWIZZLE(chan,swz) (desc->swizzle[chan] == PIPE_SWIZZLE_##swz) in r600_translate_colorswap() macro
1665 if (HAS_SWIZZLE(0,X)) in r600_translate_colorswap()
1667 else if (HAS_SWIZZLE(3,X)) in r600_translate_colorswap()
1671 if ((HAS_SWIZZLE(0,X) && HAS_SWIZZLE(1,Y)) || in r600_translate_colorswap()
1672 (HAS_SWIZZLE(0,X) && HAS_SWIZZLE(1,NONE)) || in r600_translate_colorswap()
1673 (HAS_SWIZZLE(0,NONE) && HAS_SWIZZLE(1,Y))) in r600_translate_colorswap()
1675 else if ((HAS_SWIZZLE(0,Y) && HAS_SWIZZLE(1,X)) || in r600_translate_colorswap()
1676 (HAS_SWIZZLE(0,Y) && HAS_SWIZZLE(1,NONE)) || in r600_translate_colorswap()
1677 (HAS_SWIZZLE(0,NONE) && HAS_SWIZZLE(1,X))) in r600_translate_colorswap()
1680 else if (HAS_SWIZZLE(0,X) && HAS_SWIZZLE(3,Y)) in r600_translate_colorswap()
[all …]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_texture.c2065 #define HAS_SWIZZLE(chan, swz) (desc->swizzle[chan] == PIPE_SWIZZLE_##swz) in si_translate_colorswap() macro
2075 if (HAS_SWIZZLE(0, X)) in si_translate_colorswap()
2077 else if (HAS_SWIZZLE(3, X)) in si_translate_colorswap()
2081 if ((HAS_SWIZZLE(0, X) && HAS_SWIZZLE(1, Y)) || (HAS_SWIZZLE(0, X) && HAS_SWIZZLE(1, NONE)) || in si_translate_colorswap()
2082 (HAS_SWIZZLE(0, NONE) && HAS_SWIZZLE(1, Y))) in si_translate_colorswap()
2084 else if ((HAS_SWIZZLE(0, Y) && HAS_SWIZZLE(1, X)) || in si_translate_colorswap()
2085 (HAS_SWIZZLE(0, Y) && HAS_SWIZZLE(1, NONE)) || in si_translate_colorswap()
2086 (HAS_SWIZZLE(0, NONE) && HAS_SWIZZLE(1, X))) in si_translate_colorswap()
2089 else if (HAS_SWIZZLE(0, X) && HAS_SWIZZLE(3, Y)) in si_translate_colorswap()
2091 else if (HAS_SWIZZLE(0, Y) && HAS_SWIZZLE(3, X)) in si_translate_colorswap()
[all …]