blob: ac82b7d20a1319a2a9a9f0b02c01743e436d4455 (
plain)
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
|
#ifndef __INTEL_AUX_PGTABLE_H__
#define __INTEL_AUX_PGTABLE_H__
#include "intel_bufmgr.h"
struct igt_buf;
struct intel_batchbuffer;
struct aux_pgtable_info {
int buf_count;
const struct igt_buf *bufs[2];
uint64_t buf_pin_offsets[2];
drm_intel_bo *pgtable_bo;
};
drm_intel_bo *
intel_aux_pgtable_create(drm_intel_bufmgr *bufmgr,
const struct igt_buf **bufs, int buf_count);
void
gen12_aux_pgtable_init(struct aux_pgtable_info *info,
drm_intel_bufmgr *bufmgr,
const struct igt_buf *src_buf,
const struct igt_buf *dst_buf);
void
gen12_aux_pgtable_cleanup(struct aux_pgtable_info *info);
uint32_t
gen12_create_aux_pgtable_state(struct intel_batchbuffer *batch,
drm_intel_bo *aux_pgtable_bo);
void
gen12_emit_aux_pgtable_state(struct intel_batchbuffer *batch, uint32_t state,
bool render);
#endif
|