|
@@ -9,6 +9,7 @@
|
|
|
|
|
|
#include <drm/drm_atomic_helper.h>
|
|
#include <drm/drm_atomic_helper.h>
|
|
#include <drm/drm_crtc_helper.h>
|
|
#include <drm/drm_crtc_helper.h>
|
|
|
|
+#include <drm/drm_gem_framebuffer_helper.h>
|
|
#include <drm/drm_modes.h>
|
|
#include <drm/drm_modes.h>
|
|
#include <drm/tinydrm/tinydrm.h>
|
|
#include <drm/tinydrm/tinydrm.h>
|
|
|
|
|
|
@@ -144,7 +145,7 @@ EXPORT_SYMBOL(tinydrm_display_pipe_update);
|
|
* @pipe: Simple display pipe
|
|
* @pipe: Simple display pipe
|
|
* @plane_state: Plane state
|
|
* @plane_state: Plane state
|
|
*
|
|
*
|
|
- * This function uses drm_fb_cma_prepare_fb() to check if the plane FB has an
|
|
|
|
|
|
+ * This function uses drm_gem_fb_prepare_fb() to check if the plane FB has an
|
|
* dma-buf attached, extracts the exclusive fence and attaches it to plane
|
|
* dma-buf attached, extracts the exclusive fence and attaches it to plane
|
|
* state for the atomic helper to wait on. Drivers can use this as their
|
|
* state for the atomic helper to wait on. Drivers can use this as their
|
|
* &drm_simple_display_pipe_funcs->prepare_fb callback.
|
|
* &drm_simple_display_pipe_funcs->prepare_fb callback.
|
|
@@ -152,7 +153,7 @@ EXPORT_SYMBOL(tinydrm_display_pipe_update);
|
|
int tinydrm_display_pipe_prepare_fb(struct drm_simple_display_pipe *pipe,
|
|
int tinydrm_display_pipe_prepare_fb(struct drm_simple_display_pipe *pipe,
|
|
struct drm_plane_state *plane_state)
|
|
struct drm_plane_state *plane_state)
|
|
{
|
|
{
|
|
- return drm_fb_cma_prepare_fb(&pipe->plane, plane_state);
|
|
|
|
|
|
+ return drm_gem_fb_prepare_fb(&pipe->plane, plane_state);
|
|
}
|
|
}
|
|
EXPORT_SYMBOL(tinydrm_display_pipe_prepare_fb);
|
|
EXPORT_SYMBOL(tinydrm_display_pipe_prepare_fb);
|
|
|
|
|