File: intel_tdf.h

package info (click to toggle)
linux 6.12.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,673,568 kB
  • sloc: ansic: 25,888,630; asm: 268,782; sh: 136,481; python: 64,809; makefile: 55,668; perl: 38,052; xml: 19,270; cpp: 5,893; yacc: 4,923; lex: 2,939; awk: 1,592; sed: 28; ruby: 25
file content (25 lines) | stat: -rw-r--r-- 718 bytes parent folder | download | duplicates (6)
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
/* SPDX-License-Identifier: MIT */
/*
 * Copyright © 2024 Intel Corporation
 */

#ifndef __INTEL_TDF_H__
#define __INTEL_TDF_H__

/*
 * TDF (Transient-Data-Flush) is needed for Xe2+ where special L3:XD caching can
 * be enabled through various PAT index modes. Idea is to use this caching mode
 * when for example rendering onto the display surface, with the promise that
 * KMD will ensure transient cache entries are always flushed by the time we do
 * the display flip, since display engine is never coherent with CPU/GPU caches.
 */

struct drm_i915_private;

#ifdef I915
static inline void intel_td_flush(struct drm_i915_private *i915) {}
#else
void intel_td_flush(struct drm_i915_private *i915);
#endif

#endif