Skip to content

Commit 093a3a3

Browse files
committed
drm/i915: Add plane damage clips property
This property will be used by PSR2 software tracking, adding it to GEN12+. Reviewed-by: Gwan-gyeong Mun <[email protected]> Signed-off-by: José Roberto de Souza <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 040e123 commit 093a3a3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

drivers/gpu/drm/i915/display/intel_display.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include <drm/drm_atomic.h>
3636
#include <drm/drm_atomic_helper.h>
3737
#include <drm/drm_atomic_uapi.h>
38+
#include <drm/drm_damage_helper.h>
3839
#include <drm/drm_dp_helper.h>
3940
#include <drm/drm_edid.h>
4041
#include <drm/drm_fourcc.h>
@@ -16496,6 +16497,9 @@ intel_cursor_plane_create(struct drm_i915_private *dev_priv,
1649616497
zpos = RUNTIME_INFO(dev_priv)->num_sprites[pipe] + 1;
1649716498
drm_plane_create_zpos_immutable_property(&cursor->base, zpos);
1649816499

16500+
if (INTEL_GEN(dev_priv) >= 12)
16501+
drm_plane_enable_fb_damage_clips(&cursor->base);
16502+
1649916503
drm_plane_helper_add(&cursor->base, &intel_plane_helper_funcs);
1650016504

1650116505
return cursor;

drivers/gpu/drm/i915/display/intel_sprite.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include <drm/drm_atomic_helper.h>
3535
#include <drm/drm_color_mgmt.h>
3636
#include <drm/drm_crtc.h>
37+
#include <drm/drm_damage_helper.h>
3738
#include <drm/drm_fourcc.h>
3839
#include <drm/drm_plane_helper.h>
3940
#include <drm/drm_rect.h>
@@ -3156,6 +3157,9 @@ skl_universal_plane_create(struct drm_i915_private *dev_priv,
31563157

31573158
drm_plane_create_zpos_immutable_property(&plane->base, plane_id);
31583159

3160+
if (INTEL_GEN(dev_priv) >= 12)
3161+
drm_plane_enable_fb_damage_clips(&plane->base);
3162+
31593163
drm_plane_helper_add(&plane->base, &intel_plane_helper_funcs);
31603164

31613165
return plane;

0 commit comments

Comments
 (0)