]> code.ossystems Code Review - openembedded-core.git/commit
piglit: add patch for lack of gbm_bo_map
authorDaniel Díaz <daniel.diaz@linaro.org>
Thu, 18 May 2017 18:22:36 +0000 (13:22 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 30 May 2017 09:14:32 +0000 (10:14 +0100)
commit2e0c8a510ee60d4ca97e58184c48995cd88a823f
treee202cd4f75d855ee023ff7bdbe8f3041f90d2753
parent02857bd952191e30830af54e21a675522ee3f830
piglit: add patch for lack of gbm_bo_map

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

Upstream-Status: Submitted [piglit@lists.freedesktop.org]

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]