summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drm_gem_atomic_helper.c
blob: 906cd703a33d555e2ee6b16c6325408b8ebd06f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Public domain. */

#include <drm/drm_plane.h>
#include <drm/drm_framebuffer.h>
#include <drm/drm_atomic_uapi.h>
#include <drm/drm_gem.h>
#include <linux/dma-resv.h>

int
drm_gem_plane_helper_prepare_fb(struct drm_plane *dp,
    struct drm_plane_state *dps)
{
	if (dps->fb != NULL) {
		struct drm_gem_object *obj = dps->fb->obj[0];
		drm_atomic_set_fence_for_plane(dps,
		    dma_resv_get_excl_unlocked(obj->resv));
		
	}

	return 0;
}