File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 16
16
#include <drm/drm.h>
17
17
#include <drm/drmP.h>
18
18
#include <drm/drm_atomic.h>
19
+ #include <drm/drm_damage_helper.h>
19
20
#include <drm/drm_fb_helper.h>
20
21
#include <drm/drm_gem_framebuffer_helper.h>
21
22
#include <drm/drm_probe_helper.h>
25
26
#include "rockchip_drm_gem.h"
26
27
#include "rockchip_drm_psr.h"
27
28
28
- static int rockchip_drm_fb_dirty (struct drm_framebuffer * fb ,
29
- struct drm_file * file ,
30
- unsigned int flags , unsigned int color ,
31
- struct drm_clip_rect * clips ,
32
- unsigned int num_clips )
33
- {
34
- rockchip_drm_psr_flush_all (fb -> dev );
35
- return 0 ;
36
- }
37
-
38
29
static const struct drm_framebuffer_funcs rockchip_drm_fb_funcs = {
39
30
.destroy = drm_gem_fb_destroy ,
40
31
.create_handle = drm_gem_fb_create_handle ,
41
- .dirty = rockchip_drm_fb_dirty ,
32
+ .dirty = drm_atomic_helper_dirtyfb ,
42
33
};
43
34
44
35
static struct drm_framebuffer *
You can’t perform that action at this time.
0 commit comments