[Mesa-dev] [PATCH 2/2] cube-tex: Include <libdrm/drm_fourcc.h>

Fabio Estevam festevam at gmail.com
Mon Mar 13 13:32:54 UTC 2017


The following error is observed on sparc64:

cube-tex.c: In function ‘init_tex_nv12_2img’:
cube-tex.c:350:29: error: ‘DRM_FORMAT_R8’ undeclared (first use in this function)
   EGL_LINUX_DRM_FOURCC_EXT, DRM_FORMAT_R8,
                             ^
cube-tex.c:350:29: note: each undeclared identifier is reported only once for each function it appears in
cube-tex.c:359:29: error: ‘DRM_FORMAT_GR88’ undeclared (first use in this function)
   EGL_LINUX_DRM_FOURCC_EXT, DRM_FORMAT_GR88,

Include <libdrm/drm_fourcc.h> to fix it.

Signed-off-by: Fabio Estevam <festevam at gmail.com>>
---
 cube-tex.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cube-tex.c b/cube-tex.c
index 1e7741d..1fc388b 100644
--- a/cube-tex.c
+++ b/cube-tex.c
@@ -25,6 +25,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <libdrm/drm_fourcc.h>
 
 #include "common.h"
 #include "esUtil.h"
-- 
2.7.4



More information about the mesa-dev mailing list