/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 | 100 #define SWIZ(x,y,z,w) { \ macro
|
/external/mesa3d/src/gallium/drivers/lima/ |
D | lima_format.c | 71 #define SWIZ(x,y,z,w) { \ macro 91 LIMA_TEXEL_FORMAT(R8G8B8A8_UNORM, RGBA_8888, true, SWIZ(X, Y, Z, W)), 92 LIMA_TEXEL_FORMAT(B8G8R8A8_UNORM, RGBA_8888, false, SWIZ(X, Y, Z, W)), 93 LIMA_TEXEL_FORMAT(R8G8B8A8_SRGB, RGBA_8888, true, SWIZ(X, Y, Z, W)), 94 LIMA_TEXEL_FORMAT(B8G8R8A8_SRGB, RGBA_8888, false, SWIZ(X, Y, Z, W)), 95 LIMA_TEXEL_FORMAT(R8G8B8X8_UNORM, RGBX_8888, true, SWIZ(X, Y, Z, W)), 96 LIMA_TEXEL_FORMAT(B8G8R8X8_UNORM, RGBX_8888, false, SWIZ(X, Y, Z, W)), 97 LIMA_TEXEL_FORMAT(B5G6R5_UNORM, BGR_565, false, SWIZ(X, Y, Z, W)), 98 LIMA_TEXEL_FORMAT(B5G5R5A1_UNORM, BGRA_5551, false, SWIZ(X, Y, Z, W)), 99 LIMA_TEXEL_FORMAT(B4G4R4A4_UNORM, BGRA_4444, false, SWIZ(X, Y, Z, W)), [all …]
|
/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() 294 reg_src(&new_inst.Src[0], src0, SWIZ(X, Y, Z, W)); in transform_lrp() 295 reg_src(&new_inst.Src[1], src2, SWIZ(X, Y, Z, W)); in transform_lrp() 296 reg_src(&new_inst.Src[2], src2, SWIZ(X, Y, Z, W)); in transform_lrp() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_tgsi_lower_yuv.c | 94 #define SWIZ(x,y,z,w) TGSI_SWIZZLE_ ## x, TGSI_SWIZZLE_ ## y, \ macro 265 reg_src(&inst.Src[0], &ctx->tmp[A].src, SWIZ(X, Y, Z, _)); in yuv_to_rgb() 266 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() 283 reg_src(&inst.Src[0], &ctx->tmp[A].src, SWIZ(X, Y, Z, W)); in yuv_to_rgb() 284 reg_src(&inst.Src[1], &ctx->imm[1], SWIZ(X, Y, Z, W)); in yuv_to_rgb() 292 reg_src(&inst.Src[0], &ctx->tmp[A].src, SWIZ(X, Y, Z, W)); in yuv_to_rgb() 293 reg_src(&inst.Src[1], &ctx->imm[2], SWIZ(X, Y, Z, W)); in yuv_to_rgb() 301 reg_src(&inst.Src[0], &ctx->imm[3], SWIZ(_, _, _, W)); in yuv_to_rgb() [all …]
|
/external/mesa3d/src/gallium/drivers/v3d/ |
D | v3dx_format_table.c | 31 #define SWIZ(x,y,z,w) { \ macro 48 #define SWIZ_X001 SWIZ(X, 0, 0, 1) 49 #define SWIZ_XY01 SWIZ(X, Y, 0, 1) 50 #define SWIZ_XYZ1 SWIZ(X, Y, Z, 1) 51 #define SWIZ_XYZW SWIZ(X, Y, Z, W) 52 #define SWIZ_YZWX SWIZ(Y, Z, W, X) 53 #define SWIZ_YZW1 SWIZ(Y, Z, W, 1) 54 #define SWIZ_ZYXW SWIZ(Z, Y, X, W) 55 #define SWIZ_ZYX1 SWIZ(Z, Y, X, 1) 56 #define SWIZ_XXXY SWIZ(X, X, X, Y) [all …]
|
/external/mesa3d/src/broadcom/vulkan/ |
D | v3dv_formats.c | 33 #define SWIZ(x,y,z,w) { \ macro 50 #define SWIZ_X001 SWIZ(X, 0, 0, 1) 51 #define SWIZ_XY01 SWIZ(X, Y, 0, 1) 52 #define SWIZ_XYZ1 SWIZ(X, Y, Z, 1) 53 #define SWIZ_XYZW SWIZ(X, Y, Z, W) 54 #define SWIZ_YZWX SWIZ(Y, Z, W, X) 55 #define SWIZ_YZW1 SWIZ(Y, Z, W, 1) 56 #define SWIZ_ZYXW SWIZ(Z, Y, X, W) 57 #define SWIZ_ZYX1 SWIZ(Z, Y, X, 1) 58 #define SWIZ_XXXY SWIZ(X, X, X, Y) [all …]
|
/external/mesa3d/src/mesa/program/ |
D | prog_to_nir.c | 63 #define SWIZ(X, Y, Z, W) \ macro 409 nir_swizzle(b, src[0], SWIZ(Y, Z, X, W), 3), in ptn_xpd() 410 nir_swizzle(b, src[1], SWIZ(Z, X, Y, W), 3)), in ptn_xpd() 412 nir_swizzle(b, src[1], SWIZ(Y, Z, X, W), 3), in ptn_xpd() 413 nir_swizzle(b, src[0], SWIZ(Z, X, Y, W), 3))), in ptn_xpd() 564 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 | 44 #define SWIZ(X, Y, Z, W) (unsigned[4]){ \ macro 98 nir_swizzle(b, src, SWIZ(x, y, z, w), 4) 651 load = nir_swizzle(b, load, SWIZ(X, Y, Y, Y), 4); in ttn_src_for_file_and_index() 653 load = nir_swizzle(b, load, SWIZ(X, Y, Z, Z), 4); in ttn_src_for_file_and_index() 1459 nir_src_for_ssa(nir_swizzle(b, src[0], SWIZ(X, Y, Z, W), in ttn_tex() 1516 nir_src_for_ssa(nir_swizzle(b, src[1], SWIZ(X, Y, Z, W), in ttn_tex() 1521 nir_src_for_ssa(nir_swizzle(b, src[2], SWIZ(X, Y, Z, W), in ttn_tex() 1713 instr->src[i++] = nir_src_for_ssa(nir_swizzle(b, src[1], SWIZ(X, Y, Z, W), in ttn_mem() 1769 instr->src[3] = nir_src_for_ssa(nir_swizzle(b, src[1], SWIZ(X, Y, Z, W), in ttn_mem()
|