8

I'm trying to learn Vulkan, so I install the Mesa Vulkan drivers and development files.

I downloaded some examples. I compiled the examples and tried to execute one. But when I run the file from terminal, it gave one warning and error:

WARNING: Haswell Vulkan support is incomplete
Error: No DRI3 support

I ask it from the person who wrote the example program, he said I have to enable the DRI3 for the running program. How can I do it in Ubuntu 16.04?

When I open the file "/etc/X11/xorg.conf", I see this:

Section "Device"
    Identifier "Default Card 0"
    BusID "PCI:0@0:2:0"
EndSection

What I need to do?

My environment: I'm using Intel Core i5 and Intel Haswell GPU.

George Udosen
  • 37,534

1 Answers1

5

Open this file: /etc/X11/xorg.conf.d/20-intel.conf as root and make the device section look like this

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "DRI"    "3"
EndSection

This is from the Arch wiki for Vulkan.

Mark Kirby
  • 18,949
  • 19
  • 79
  • 116