[Mesa-dev] How to build mesa to run vulkan application on Intel HD graphics?
Dave Airlie
airlied at gmail.com
Wed Jul 24 02:52:40 UTC 2019
On Wed, 24 Jul 2019 at 11:55, Xu, Xing <xing.xu at intel.com> wrote:
>
> 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
For vulkan you have to set VK_ICD_FILENAMES and point at the
/tmp/install/share/vulkan/icd.d/intel_icd.x86_64.json
use vulkaninfo to debug.
Dave.
More information about the mesa-dev
mailing list