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

Rob Clark robdclark at gmail.com
Mon Mar 13 14:20:24 UTC 2017


On Mon, Mar 13, 2017 at 9:32 AM, Fabio Estevam <festevam at gmail.com> wrote:
> 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.

btw, I think it should just be <drm_fourcc.h> if we had the correct
libdrm CFLAGS.. I ran into that issue last week, and that was one of
the things on my list to look at this week.

BR,
-R

>
> 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