[Libre-soc-dev] Loading Vulkan Driver

vivek pandya vivekvpandya at gmail.com
Tue Aug 25 13:45:51 BST 2020


On Tue, Aug 25, 2020 at 2:57 AM Luke Kenneth Casson Leighton <lkcl at lkcl.net>
wrote:

>
>
> On Monday, August 24, 2020, Jacob Lifshay <programmerjake at gmail.com>
> wrote:
>
>> On Mon, Aug 24, 2020, 02:58 vivek pandya <vivekvpandya at gmail.com> wrote:
>>
>> >
>> >
>> > On Mon, Aug 24, 2020 at 3:26 PM apinheiro <apinheiro at igalia.com> wrote:
>> >
>> >> After that, our objective was trying to get a really basic Vulkan tests
>> >> working. As mentioned, we started with a real basic test that just did
>> a
>> >> clear, as in that way, we didn't need to bother with the compiler yet.
>> We
>> >> didn't save that test though. In any case, it was really simple, so it
>> >> should be easy to recreate.
>> >>
>> > Okay I will write a very simple test.
>> >
>>
>> If your looking for a simple test that just repeatedly clears the screen
>> to
>> different colors and displays it, check out the /test/testvulkan.c test in
>> libSDL that I originally wrote. It doesn't use any shaders.
>>
>> https://www.libsdl.org/download-2.0.php
>
>
> vivek i have asked cole to create a wiki page to track things like this,
> also a tutorial how to build the code.
>
> https://libre-soc.org/3d_gpu/mesa/?updated
>
> then more people can follow what you are doing, easily set up the build
> environment and help comment.
>
Sure I will add details about how to build the code, I use basically meson
and ninja commands,
My build directory located in mesa source here is my meson command to
configure (I know this does more work than require please add more options
if you find useful):
meson -Dbuildtype=debug -Dprefix=/home/vivek/install
-Dvulkan-drivers=libresoc ..

and then

ninja

ninja install.

I also have script to set few environment variables like

export
VK_ICD_FILENAMES=/home/vivek/install/share/vulkan/icd.d/libresoc_icd.x86_64.json
export VK_LOADER_DEBUG=warn
export LIBRESOC_TRACE=1

I am doing some experiments with extension and entrypoint generation code,
so those files will change.
I would request not to waste time on current code I have pushed.

To test the code I am sing simple tests built by
https://github.com/GameTechDev/IntroductionToVulkan

I am also using debug build for vulkan loader if any one interested in that
please look at
https://github.com/KhronosGroup/Vulkan-Loader/blob/master/BUILD.md

Thanks,
Vivek

>
> l.
>
>
>
> --
> ---
> crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68
>
>


More information about the Libre-soc-dev mailing list