mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00

- (Implicit) Fix the exec unnecessary implicit fencing (Matt Brost) Driver Changes: - Fix an inverted if statement (Colin) - Fixes around display d3cold vs non-d3cold runtime pm (Imre) - A couple of scheduling fixes (Matt Brost) - Increase a query timestamp witdh (Lucas) - Move a timestamp read (Lucas) - Tidy some code using multiple put_user() (Lucas) - Fix an ufence signaling error (Nirmoy) - Initialize the ufence.signalled field (Matt Auld) - Display fb alignement work (Juha-Pekka) - Disallow horisontal flip with tile4 + display20 (Juha-Pekka) - Extend a workaround (Shekhar) - Enlarge the global invalidation timeout (Shuicheng) -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRskUM7w1oG5rx2IZO4FpNVCsYGvwUCZxDYwwAKCRC4FpNVCsYG vzMDAQC5T0V+zIpFcKj8bRkBM/lfUJ0EvmG5lAK8V6dVhcyrQwEA7FZijh5L7GwU dXId22BOOqACQibkzw8HllKPQHYBQws= =Gb08 -----END PGP SIGNATURE----- Merge tag 'drm-xe-next-2024-10-17' of https://gitlab.freedesktop.org/drm/xe/kernel into drm-next UAPI Changes: - (Implicit) Fix the exec unnecessary implicit fencing (Matt Brost) Driver Changes: - Fix an inverted if statement (Colin) - Fixes around display d3cold vs non-d3cold runtime pm (Imre) - A couple of scheduling fixes (Matt Brost) - Increase a query timestamp witdh (Lucas) - Move a timestamp read (Lucas) - Tidy some code using multiple put_user() (Lucas) - Fix an ufence signaling error (Nirmoy) - Initialize the ufence.signalled field (Matt Auld) - Display fb alignement work (Juha-Pekka) - Disallow horisontal flip with tile4 + display20 (Juha-Pekka) - Extend a workaround (Shekhar) - Enlarge the global invalidation timeout (Shuicheng) Signed-off-by: Dave Airlie <airlied@redhat.com> From: Thomas Hellstrom <thomas.hellstrom@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/ZxDZaRRQAzrG1uir@fedora
107 lines
3.8 KiB
C
107 lines
3.8 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2020-2021 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_FB_H__
|
|
#define __INTEL_FB_H__
|
|
|
|
#include <linux/bits.h>
|
|
#include <linux/types.h>
|
|
|
|
struct drm_device;
|
|
struct drm_file;
|
|
struct drm_framebuffer;
|
|
struct drm_gem_object;
|
|
struct drm_i915_gem_object;
|
|
struct drm_i915_private;
|
|
struct drm_mode_fb_cmd2;
|
|
struct intel_fb_view;
|
|
struct intel_framebuffer;
|
|
struct intel_plane;
|
|
struct intel_plane_state;
|
|
|
|
#define INTEL_PLANE_CAP_NONE 0
|
|
#define INTEL_PLANE_CAP_CCS_RC BIT(0)
|
|
#define INTEL_PLANE_CAP_CCS_RC_CC BIT(1)
|
|
#define INTEL_PLANE_CAP_CCS_MC BIT(2)
|
|
#define INTEL_PLANE_CAP_TILING_X BIT(3)
|
|
#define INTEL_PLANE_CAP_TILING_Y BIT(4)
|
|
#define INTEL_PLANE_CAP_TILING_Yf BIT(5)
|
|
#define INTEL_PLANE_CAP_TILING_4 BIT(6)
|
|
#define INTEL_PLANE_CAP_NEED64K_PHYS BIT(7)
|
|
|
|
bool intel_fb_is_tiled_modifier(u64 modifier);
|
|
bool intel_fb_is_ccs_modifier(u64 modifier);
|
|
bool intel_fb_is_rc_ccs_cc_modifier(u64 modifier);
|
|
bool intel_fb_is_mc_ccs_modifier(u64 modifier);
|
|
bool intel_fb_needs_64k_phys(u64 modifier);
|
|
bool intel_fb_is_tile4_modifier(u64 modifier);
|
|
|
|
bool intel_fb_is_ccs_aux_plane(const struct drm_framebuffer *fb, int color_plane);
|
|
int intel_fb_rc_ccs_cc_plane(const struct drm_framebuffer *fb);
|
|
|
|
u64 *intel_fb_plane_get_modifiers(struct drm_i915_private *i915,
|
|
u8 plane_caps);
|
|
bool intel_fb_plane_supports_modifier(struct intel_plane *plane, u64 modifier);
|
|
|
|
const struct drm_format_info *
|
|
intel_fb_get_format_info(const struct drm_mode_fb_cmd2 *cmd);
|
|
|
|
bool
|
|
intel_format_info_is_yuv_semiplanar(const struct drm_format_info *info,
|
|
u64 modifier);
|
|
|
|
bool is_surface_linear(const struct drm_framebuffer *fb, int color_plane);
|
|
|
|
int main_to_ccs_plane(const struct drm_framebuffer *fb, int main_plane);
|
|
int skl_ccs_to_main_plane(const struct drm_framebuffer *fb, int ccs_plane);
|
|
int skl_main_to_aux_plane(const struct drm_framebuffer *fb, int main_plane);
|
|
|
|
unsigned int intel_tile_size(const struct drm_i915_private *i915);
|
|
unsigned int intel_tile_width_bytes(const struct drm_framebuffer *fb, int color_plane);
|
|
unsigned int intel_tile_height(const struct drm_framebuffer *fb, int color_plane);
|
|
unsigned int intel_tile_row_size(const struct drm_framebuffer *fb, int color_plane);
|
|
unsigned int intel_fb_align_height(const struct drm_framebuffer *fb,
|
|
int color_plane, unsigned int height);
|
|
|
|
void intel_fb_plane_get_subsampling(int *hsub, int *vsub,
|
|
const struct drm_framebuffer *fb,
|
|
int color_plane);
|
|
|
|
u32 intel_plane_adjust_aligned_offset(int *x, int *y,
|
|
const struct intel_plane_state *state,
|
|
int color_plane,
|
|
u32 old_offset, u32 new_offset);
|
|
u32 intel_plane_compute_aligned_offset(int *x, int *y,
|
|
const struct intel_plane_state *state,
|
|
int color_plane);
|
|
|
|
bool intel_fb_needs_pot_stride_remap(const struct intel_framebuffer *fb);
|
|
bool intel_fb_supports_90_270_rotation(const struct intel_framebuffer *fb);
|
|
|
|
int intel_fill_fb_info(struct drm_i915_private *i915, struct intel_framebuffer *fb);
|
|
void intel_fb_fill_view(const struct intel_framebuffer *fb, unsigned int rotation,
|
|
struct intel_fb_view *view);
|
|
int intel_plane_compute_gtt(struct intel_plane_state *plane_state);
|
|
|
|
int intel_framebuffer_init(struct intel_framebuffer *ifb,
|
|
struct drm_gem_object *obj,
|
|
struct drm_mode_fb_cmd2 *mode_cmd);
|
|
struct drm_framebuffer *
|
|
intel_framebuffer_create(struct drm_gem_object *obj,
|
|
struct drm_mode_fb_cmd2 *mode_cmd);
|
|
struct drm_framebuffer *
|
|
intel_user_framebuffer_create(struct drm_device *dev,
|
|
struct drm_file *filp,
|
|
const struct drm_mode_fb_cmd2 *user_mode_cmd);
|
|
|
|
bool intel_fb_modifier_uses_dpt(struct drm_i915_private *i915, u64 modifier);
|
|
bool intel_fb_uses_dpt(const struct drm_framebuffer *fb);
|
|
|
|
unsigned int intel_fb_modifier_to_tiling(u64 fb_modifier);
|
|
|
|
struct drm_gem_object *intel_fb_bo(const struct drm_framebuffer *fb);
|
|
|
|
#endif /* __INTEL_FB_H__ */
|