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 <drm_fourcc.h> to fix it.

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

diff --git a/cube-tex.c b/cube-tex.c
index 1e7741d..61d6c78 100644
--- a/cube-tex.c
+++ b/cube-tex.c
@@ -22,6 +22,7 @@
  */
 
 #include <assert.h>
+#include <drm_fourcc.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-- 
2.7.4

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to