]> code.ossystems Code Review - openembedded-core.git/commit
piglit: add patch for lack of gbm_bo_map
authorDaniel Díaz <daniel.diaz@linaro.org>
Wed, 7 Jun 2017 14:51:20 +0000 (09:51 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 12 Jun 2017 16:03:12 +0000 (17:03 +0100)
commit484db109df742aafa8efc41dc3a8d31386d9b2a3
tree739f653f9ac837b96b0e25be84ecb2b3f60264fb
parent5bfa4ccdba64d814cc480f22ccd8c493d87d36e7
piglit: add patch for lack of gbm_bo_map

[Backported from master.]

[Piglit Bug #100978] -- https://bugs.freedesktop.org/show_bug.cgi?id=100978

When linking against Mali 450 r6, errors like the following
can be seen:
  ../../../../lib/libpiglitutil_gl.so.0: undefined reference to `gbm_bo_unmap'
  ../../../../lib/libpiglitutil_gl.so.0: undefined reference to `gbm_bo_map'
  collect2: error: ld returned 1 exit status
  make[2]: *** [bin/point-sprite] Error 1

This is due to gbm_bo_map() and gbm_bo_unmap() being recently
added but not yet implemented by all graphics drivers.

Instead of relying on GBM's version, actually try to link
against those symbols.

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/piglit/piglit/0001-CMake-define-GBM_BO_MAP-only-when-symbol-is-found.patch [new file with mode: 0644]
meta/recipes-graphics/piglit/piglit_git.bb