]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: s/int/u32/ for aux_offset/alignment
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 8 Oct 2020 10:16:08 +0000 (13:16 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 9 Oct 2020 18:12:13 +0000 (21:12 +0300)
ggtt offsets/alignments are u32 everywhere else. Don't use
a signed int for them here.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201008101608.8652-3-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/display/intel_display.c

index 85f8b08017038f80f797d81a31934d28c1858111..19bed7a9119253a36179589e4541c1fb5e3717b1 100644 (file)
@@ -4026,8 +4026,8 @@ static int skl_check_nv12_aux_surface(struct intel_plane_state *plane_state)
 
        if (is_ccs_modifier(fb->modifier)) {
                int ccs_plane = main_to_ccs_plane(fb, uv_plane);
-               int aux_offset = plane_state->color_plane[ccs_plane].offset;
-               int alignment = intel_surf_alignment(fb, uv_plane);
+               u32 aux_offset = plane_state->color_plane[ccs_plane].offset;
+               u32 alignment = intel_surf_alignment(fb, uv_plane);
 
                if (offset > aux_offset)
                        offset = intel_plane_adjust_aligned_offset(&x, &y,