Commit 7853b437 authored by Jani Nikula's avatar Jani Nikula

drm/i915/display: fix the uint*_t types that have crept in

Always prefer the kernel types over stdint types in i915.

Cc: Imre Deak <imre.deak@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: default avatarJosé Roberto de Souza <jose.souza@intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210113141158.25513-1-jani.nikula@intel.com
parent 702c08d6
...@@ -1954,7 +1954,7 @@ int intel_main_to_aux_plane(const struct drm_framebuffer *fb, int main_plane) ...@@ -1954,7 +1954,7 @@ int intel_main_to_aux_plane(const struct drm_framebuffer *fb, int main_plane)
bool bool
intel_format_info_is_yuv_semiplanar(const struct drm_format_info *info, intel_format_info_is_yuv_semiplanar(const struct drm_format_info *info,
uint64_t modifier) u64 modifier)
{ {
return info->is_yuv && return info->is_yuv &&
info->num_planes == (is_ccs_modifier(modifier) ? 4 : 2); info->num_planes == (is_ccs_modifier(modifier) ? 4 : 2);
......
...@@ -643,7 +643,7 @@ void intel_display_print_error_state(struct drm_i915_error_state_buf *e, ...@@ -643,7 +643,7 @@ void intel_display_print_error_state(struct drm_i915_error_state_buf *e,
bool bool
intel_format_info_is_yuv_semiplanar(const struct drm_format_info *info, intel_format_info_is_yuv_semiplanar(const struct drm_format_info *info,
uint64_t modifier); u64 modifier);
int intel_plane_compute_gtt(struct intel_plane_state *plane_state); int intel_plane_compute_gtt(struct intel_plane_state *plane_state);
u32 intel_plane_compute_aligned_offset(int *x, int *y, u32 intel_plane_compute_aligned_offset(int *x, int *y,
......
...@@ -545,7 +545,7 @@ struct intel_plane_state { ...@@ -545,7 +545,7 @@ struct intel_plane_state {
struct drm_framebuffer *fb; struct drm_framebuffer *fb;
u16 alpha; u16 alpha;
uint16_t pixel_blend_mode; u16 pixel_blend_mode;
unsigned int rotation; unsigned int rotation;
enum drm_color_encoding color_encoding; enum drm_color_encoding color_encoding;
enum drm_color_range color_range; enum drm_color_range color_range;
......
...@@ -676,7 +676,7 @@ static bool intel_fbc_hw_tracking_covers_screen(struct intel_crtc *crtc) ...@@ -676,7 +676,7 @@ static bool intel_fbc_hw_tracking_covers_screen(struct intel_crtc *crtc)
} }
static bool tiling_is_valid(struct drm_i915_private *dev_priv, static bool tiling_is_valid(struct drm_i915_private *dev_priv,
uint64_t modifier) u64 modifier)
{ {
switch (modifier) { switch (modifier) {
case DRM_FORMAT_MOD_LINEAR: case DRM_FORMAT_MOD_LINEAR:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment