ext_image_dma_buf_import: Include image_common.h from sample_common.c
commita0a000d34c38dccdf25803d8fe4073f1da34bff7
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 15 May 2015 02:09:46 +0000 (15 11:09 +0900)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 15 May 2015 10:07:12 +0000 (15 11:07 +0100)
tree78be70e41f1c105a1e4829540615bf7fbadbb804
parentf9a6d9749ec9c64652b3816b49df7da356baa265
ext_image_dma_buf_import: Include image_common.h from sample_common.c

Fixes build failure against current Mesa Git master:

.../sample_common.c.o: In function `sample_and_destroy_img':
.../sample_common.c:107: undefined reference to `eglDestroyImageKHR'
.../sample_common.c.o: In function `sample_buffer':
.../sample_common.c:128: undefined reference to `eglCreateImageKHR'
collect2: error: ld returned 1 exit status

The functions are/should be retrieved at runtime via eglGetProcAddress.
Latest Mesa master enforces this, by no longer providing the symbols
statically. This issue originates with the unfortunate removal of
image_common.h with

commit ec8feb99a81434db6bca66abac07a7822935ed8e
Author: Chad Versace <chad.versace@linux.intel.com>
Date:   Fri Sep 20 11:16:10 2013 -0700

    ext_image_dma_buf_import: Cleanup up #includes

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90458
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
[Emil Velikov: Add some context in the commit message.]
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
tests/spec/ext_image_dma_buf_import/sample_common.c