/external/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_formats.c | 63 #define SWIZ(x,y,z,w) { \ macro 74 FORMAT(R8G8B8A8_UNORM, RGBA8888, RGBA8888, SWIZ(X, Y, Z, W)), 75 FORMAT(R8G8B8X8_UNORM, RGBA8888, RGBA8888, SWIZ(X, Y, Z, 1)), 76 FORMAT(R8G8B8A8_SRGB, RGBA8888, RGBA8888, SWIZ(X, Y, Z, W)), 77 FORMAT(R8G8B8X8_SRGB, RGBA8888, RGBA8888, SWIZ(X, Y, Z, 1)), 79 FORMAT(B8G8R8A8_UNORM, RGBA8888, RGBA8888, SWIZ(Z, Y, X, W)), 80 FORMAT(B8G8R8X8_UNORM, RGBA8888, RGBA8888, SWIZ(Z, Y, X, 1)), 81 FORMAT(B8G8R8A8_SRGB, RGBA8888, RGBA8888, SWIZ(Z, Y, X, W)), 82 FORMAT(B8G8R8X8_SRGB, RGBA8888, RGBA8888, SWIZ(Z, Y, X, 1)), 84 FORMAT(B5G6R5_UNORM, RGB565, RGB565, SWIZ(X, Y, Z, 1)), [all …]
|
D | vc4_uniforms.c | 99 #define SWIZ(x,y,z,w) { \ macro
|
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_lowering.c | 99 #define SWIZ(x,y,z,w) TGSI_SWIZZLE_ ## x, TGSI_SWIZZLE_ ## y, \ macro 143 reg_src(&new_inst.Src[0], src, SWIZ(X, Y, Z, W)); in create_mov() 222 reg_src(&new_inst.Src[0], src0, SWIZ(_, Y, _, _)); in transform_dst() 223 reg_src(&new_inst.Src[1], src1, SWIZ(_, Y, _, _)); in transform_dst() 234 reg_src(&new_inst.Src[0], src0, SWIZ(_, _, Z, _)); in transform_dst() 245 reg_src(&new_inst.Src[0], src1, SWIZ(_, _, _, W)); in transform_dst() 256 reg_src(&new_inst.Src[0], &ctx->imm, SWIZ(Y, _, _, _)); in transform_dst() 291 reg_src(&new_inst.Src[0], src1, SWIZ(Y, Z, X, _)); in transform_xpd() 292 reg_src(&new_inst.Src[1], src0, SWIZ(Z, X, Y, _)); in transform_xpd() 301 reg_src(&new_inst.Src[0], src0, SWIZ(Y, Z, X, _)); in transform_xpd() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_tgsi_lower_yuv.c | 95 #define SWIZ(x,y,z,w) TGSI_SWIZZLE_ ## x, TGSI_SWIZZLE_ ## y, \ macro 266 reg_src(&inst.Src[0], &ctx->tmp[A].src, SWIZ(X, Y, Z, _)); in yuv_to_rgb() 267 reg_src(&inst.Src[1], &ctx->imm[3], SWIZ(X, Y, Z, _)); in yuv_to_rgb() 274 reg_src(&inst.Src[0], &ctx->tmp[A].src, SWIZ(X, Y, Z, W)); in yuv_to_rgb() 275 reg_src(&inst.Src[1], &ctx->imm[0], SWIZ(X, Y, Z, W)); in yuv_to_rgb() 281 reg_src(&inst.Src[0], &ctx->tmp[A].src, SWIZ(X, Y, Z, W)); in yuv_to_rgb() 282 reg_src(&inst.Src[1], &ctx->imm[1], SWIZ(X, Y, Z, W)); in yuv_to_rgb() 288 reg_src(&inst.Src[0], &ctx->tmp[A].src, SWIZ(X, Y, Z, W)); in yuv_to_rgb() 289 reg_src(&inst.Src[1], &ctx->imm[2], SWIZ(X, Y, Z, W)); in yuv_to_rgb() 295 reg_src(&inst.Src[0], &ctx->imm[3], SWIZ(_, _, _, W)); in yuv_to_rgb() [all …]
|
/external/mesa3d/src/mesa/program/ |
D | prog_to_nir.c | 60 #define SWIZ(X, Y, Z, W) \ macro 62 #define ptn_channel(b, src, ch) nir_swizzle(b, src, SWIZ(ch, ch, ch, ch), 1, true) 454 nir_swizzle(b, src[0], SWIZ(Y, Z, X, W), 3, true), in ptn_xpd() 455 nir_swizzle(b, src[1], SWIZ(Z, X, Y, W), 3, true)), in ptn_xpd() 457 nir_swizzle(b, src[1], SWIZ(Y, Z, X, W), 3, true), in ptn_xpd() 458 nir_swizzle(b, src[0], SWIZ(Z, X, Y, W), 3, true))), in ptn_xpd() 608 nir_src_for_ssa(nir_swizzle(b, src[0], SWIZ(X, Y, Z, W), in ptn_tex()
|
/external/mesa3d/src/gallium/auxiliary/nir/ |
D | tgsi_to_nir.c | 38 #define SWIZ(X, Y, Z, W) (unsigned[4]){ \ macro 93 nir_swizzle(b, src, SWIZ(x, y, z, w), 4, false) 95 nir_swizzle(b, src, SWIZ(swiz, swiz, swiz, swiz), 1, false) 1375 nir_src_for_ssa(nir_swizzle(b, src[0], SWIZ(X, Y, Z, W), in ttn_tex() 1421 nir_src_for_ssa(nir_swizzle(b, src[1], SWIZ(X, Y, Z, W), in ttn_tex() 1426 nir_src_for_ssa(nir_swizzle(b, src[2], SWIZ(X, Y, Z, W), in ttn_tex()
|