File: intel_cmds_info.h

package info (click to toggle)
intel-gpu-tools 2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 62,024 kB
  • sloc: xml: 769,439; ansic: 348,692; python: 8,307; yacc: 2,781; perl: 1,196; sh: 1,178; lex: 487; asm: 227; makefile: 27; lisp: 11
file content (73 lines) | stat: -rw-r--r-- 1,614 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* SPDX-License-Identifier: MIT */
/*
 * Copyright © 2022 Intel Corporation
 */

#ifndef __INTEL_CMDS_INFO_H
#define __INTEL_CMDS_INFO_H

#include <stdint.h>

enum blt_tiling_type {
	T_LINEAR,
	T_XMAJOR,
	T_YMAJOR,
	T_TILE4,
	T_YFMAJOR,
	T_YSMAJOR,
	T_TILE64,
	__BLT_MAX_TILING
};

enum blt_memop_type {
	M_LINEAR,
	M_MATRIX,
};

enum blt_cmd_type {
	SRC_COPY,
	MEM_SET,
	MEM_COPY,
	XY_SRC_COPY,
	XY_FAST_COPY,
	XY_BLOCK_COPY,
	XY_COLOR_BLT,
	__BLT_MAX_CMD
};

struct blt_cmd_info {
	enum blt_cmd_type blt_cmd_type;
	uint32_t supported_tiling;

	uint32_t flags;
#define BLT_CMD_EXTENDED               (1 << 0)
#define BLT_CMD_SUPPORTS_COMPRESSION   (1 << 1)
};

struct render_tiling_info {
	uint32_t supported_tiling;
	uint32_t supported_compressed_tiling;
};

struct intel_cmds_info {
	struct blt_cmd_info const *blt_cmds[__BLT_MAX_CMD];
	struct render_tiling_info const *render_tilings;
};

extern const struct intel_cmds_info pre_gen6_cmds_info;
extern const struct intel_cmds_info gen6_cmds_info;
extern const struct intel_cmds_info gen8_cmds_info;
extern const struct intel_cmds_info gen11_cmds_info;
extern const struct intel_cmds_info gen12_cmds_info;
extern const struct intel_cmds_info gen12_dg2_cmds_info;
extern const struct intel_cmds_info gen12_mtl_cmds_info;
extern const struct intel_cmds_info gen12_pvc_cmds_info;
extern const struct intel_cmds_info xe2_cmds_info;

#define for_each_tiling(__tiling) \
	for (__tiling = T_LINEAR; __tiling < __BLT_MAX_TILING; __tiling++)

const struct blt_cmd_info *blt_get_cmd_info(const struct intel_cmds_info *cmds_info,
					    enum blt_cmd_type cmd);

#endif