[Mesa-dev] How to build mesa to run vulkan application on Intel HD graphics?
Xu, Xing
xing.xu at intel.com
Wed Jul 24 01:55:10 UTC 2019
Hi, I tried to add some logs as below in file ./src/vulkan/wsi/wsi_common_x11.c (x11_queue_present):
printf("%s,%d\n",__FUNCTION__,__LINE__);
assert(0);
but got nothing(no logs and assert didn't happen) when I run my application.
Here is how I build run my applications:
1), Build install
meson configure builddir -Dvulkan-drivers=intel
ninja -C builddir/
meson configure builddir -Dprefix=/tmp/install
sudo ninja -C builddir/ install
2), Run
export LD_LIBRARY_PATH=/tmp/install/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH
export LIBGL_DRIVERS_PATH=/tmp/install/lib/x86_64-linux-gnu/dri
./angle_end2end_tests
Do you have any hints how to see the add logs or make the assert happen?
Also I notice' d that there are soft links between libvulkan.so under /usr/lib:
ls -l /usr/lib/x86_64-linux-gnu/libvulkan*
/usr/lib/x86_64-linux-gnu/libvulkan_intel.so
/usr/lib/x86_64-linux-gnu/libvulkan_radeon.so
/usr/lib/x86_64-linux-gnu/libvulkan.so -> libvulkan.so.1
/usr/lib/x86_64-linux-gnu/libvulkan.so.1 -> libvulkan.so.1.1.70
/usr/lib/x86_64-linux-gnu/libvulkan.so.1.1.70
but no libvulkan.so under /tmp/install. Here are the detail structure for /tmp/install:
ls /tmp/install/lib/x86_64-linux-gnu/ -l
dri
libEGL.so -> libEGL.so.1
libEGL.so.1 -> libEGL.so.1.0.0
libEGL.so.1.0.0
libgbm.so -> libgbm.so.1
libgbm.so.1 -> libgbm.so.1.0.0
libgbm.so.1.0.0
libglapi.so -> libglapi.so.0
libglapi.so.0 -> libglapi.so.0.0.0
libglapi.so.0.0.0
libGLESv1_CM.so -> libGLESv1_CM.so.1
libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.1.0
libGLESv1_CM.so.1.1.0
libGLESv2.so -> libGLESv2.so.2
libGLESv2.so.2 -> libGLESv2.so.2.0.0
libGLESv2.so.2.0.0
libGL.so -> libGL.so.1
libGL.so.1 -> libGL.so.1.2.0
libGL.so.1.2.0
libvulkan_intel.so
libxatracker.so -> libxatracker.so.2
libxatracker.so.2 -> libxatracker.so.2.5.0
libxatracker.so.2.5.0
pkgconfig
vdpau
Regards,
Xing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190724/9dd3affa/attachment-0001.html>
More information about the mesa-dev
mailing list