mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-08 07:38:10 +00:00
drm/vkms: Move format arrays to vkms_plane.c
No need to have them multiple times. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Cc: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com> Cc: Haneen Mohammed <hamohammed.sa@gmail.com> Cc: Daniel Vetter <daniel@ffwll.ch> Reviewed-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com> Tested-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com> Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190606222751.32567-5-daniel.vetter@ffwll.ch
This commit is contained in:
parent
8a08e50cee
commit
b6b3821fac
2 changed files with 8 additions and 8 deletions
|
@ -20,14 +20,6 @@
|
||||||
|
|
||||||
extern bool enable_cursor;
|
extern bool enable_cursor;
|
||||||
|
|
||||||
static const u32 vkms_formats[] = {
|
|
||||||
DRM_FORMAT_XRGB8888,
|
|
||||||
};
|
|
||||||
|
|
||||||
static const u32 vkms_cursor_formats[] = {
|
|
||||||
DRM_FORMAT_ARGB8888,
|
|
||||||
};
|
|
||||||
|
|
||||||
struct vkms_crc_data {
|
struct vkms_crc_data {
|
||||||
struct drm_framebuffer fb;
|
struct drm_framebuffer fb;
|
||||||
struct drm_rect src, dst;
|
struct drm_rect src, dst;
|
||||||
|
|
|
@ -6,6 +6,14 @@
|
||||||
#include <drm/drm_atomic_helper.h>
|
#include <drm/drm_atomic_helper.h>
|
||||||
#include <drm/drm_gem_framebuffer_helper.h>
|
#include <drm/drm_gem_framebuffer_helper.h>
|
||||||
|
|
||||||
|
static const u32 vkms_formats[] = {
|
||||||
|
DRM_FORMAT_XRGB8888,
|
||||||
|
};
|
||||||
|
|
||||||
|
static const u32 vkms_cursor_formats[] = {
|
||||||
|
DRM_FORMAT_ARGB8888,
|
||||||
|
};
|
||||||
|
|
||||||
static struct drm_plane_state *
|
static struct drm_plane_state *
|
||||||
vkms_plane_duplicate_state(struct drm_plane *plane)
|
vkms_plane_duplicate_state(struct drm_plane *plane)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue