utils: Move DRM_FORMATS defines to piglit_drm_dma_buf.h.
commit5a87c57f9ba6581f2c091d7065c3c2cc1b001f2a
authorVinson Lee <vlee@freedesktop.org>
Mon, 3 Oct 2016 21:34:23 +0000 (3 14:34 -0700)
committerVinson Lee <vlee@freedesktop.org>
Mon, 3 Oct 2016 22:56:59 +0000 (3 15:56 -0700)
tree09e19884d037a26ecb9230a75e36b65e9783f15f
parentad38b44dd01588ce3e6ce6592f65f45654502820
utils: Move DRM_FORMATS defines to piglit_drm_dma_buf.h.

This patch fixes this build error.

transcode-nv12-as-r8-gr88.c: In function ‘create_textures’:
transcode-nv12-as-r8-gr88.c:178:7: error: ‘DRM_FORMAT_R8’ undeclared (first use in this function)
       DRM_FORMAT_R8, r8_pixels);
       ^

Fixes: 0222f5db00fd ("dmabuf: fix YUV tests for drivers other than intel")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97951
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
tests/util/piglit-framework-gl/piglit_drm_dma_buf.c
tests/util/piglit-framework-gl/piglit_drm_dma_buf.h