drm/i915/skl: Remove duplicated mem calls for PLANE_CURSOR.
Subsystems (2)
PATCH 1/1 drm/i915/skl: Remove duplicated mem calls for PLANE_CURSOR.
These calls are unneeded because the previous memset/memcmp already handles PLANE_CURSOR too, so no need to treat it in a special way.
---
drivers/gpu/drm/i915/intel_pm.c +0 -6
@@ -2916,8 +2916,6 @@ skl_allocate_pipe_ddb(struct intel_crtc_state *cstate, alloc_size =skl_ddb_entry_size (alloc);if (alloc_size ==0 ) {memset (ddb->plane[pipe],0 ,sizeof (ddb->plane[pipe])); -memset (&ddb->plane[pipe][PLANE_CURSOR ],0 , -sizeof (ddb->plane[pipe][PLANE_CURSOR ]));return ; }
@@ -3070,10 +3068,6 @@ static bool skl_ddb_allocation_changed(const struct skl_ddb_allocation *new_ddb, sizeof(new_ddb->plane[pipe])))return true; -if (memcmp (&new_ddb->plane[pipe][PLANE_CURSOR ], &cur_ddb->plane[pipe][PLANE_CURSOR ], -sizeof (new_ddb->plane[pipe][PLANE_CURSOR ]))) -return true; -return false; }
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 10 lines · Maarten Lankhorst
These calls are unneeded because the previous memset/memcmp already handles
PLANE_CURSORtoo, so no need to treat it in a special way.Signed-off-by Maarten Lankhorst <[email protected]>---
drivers/gpu/drm/i915/intel_pm.c +0
-0
drivers/gpu/drm/i915/intel_pm.c skl_allocate_pipe_ddb(struct intel_crtc_state *cstate, · line 2920
Quoted 5 lines
drivers/gpu/drm/i915/intel_pm.c +0
-2@@ -2916,8 +2916,6 @@ skl_allocate_pipe_ddb(struct intel_crtc_state *cstate, alloc_size =skl_ddb_entry_size (alloc);if (alloc_size ==0 ) {memset (ddb->plane[pipe],0 ,sizeof (ddb->plane[pipe])); -memset (&ddb->plane[pipe][PLANE_CURSOR ],0 , -sizeof (ddb->plane[pipe][PLANE_CURSOR ]));
This hunk is good, the other is made obsolete by
http://lists.freedesktop.org/archives/intel-gfx/2015-October/078803.html
Quoted 19 lines
drivers/gpu/drm/i915/intel_pm.c +0
-4return ; }@@ -3070,10 +3068,6 @@ static bool skl_ddb_allocation_changed(const struct skl_ddb_allocation *new_ddb, sizeof(new_ddb->plane[pipe])))return true; -if (memcmp (&new_ddb->plane[pipe][PLANE_CURSOR ], &cur_ddb->plane[pipe][PLANE_CURSOR ], -sizeof (new_ddb->plane[pipe][PLANE_CURSOR ]))) -return true; -return false; }_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 6 lines
Ville Syrjälä Intel OTC _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx