vallium: initial import of the vulkan frontend
authorDave Airlie <airlied@redhat.com>
Fri, 19 Jun 2020 06:40:27 +0000 (16:40 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 17 Aug 2020 04:31:47 +0000 (14:31 +1000)
commitb38879f8c5f57b7f1802e433e33181bdf5e72aef
treeb6b37aced4e67d349febc75b84180c6a3eb20555
parent8004fa9c9501d91669ac51d32c9a9143286ca7ea
vallium: initial import of the vulkan frontend

This is the initial import of the vallium frontend for gallium.
This is only good enough to run the triangle and the gears demo
(wrongly) from Sascha demos.

Improvements are mostly on the llvmpipe side after this.

It contains an implementation of the Vulkan API which is mapped
onto the gallium API, and is suitable only for SOFTWARE drivers.

Command buffers are recordred into malloced memory, then later
they are played back against the gallium API. The command buffers
are mostly just Vulkan API marshalling but in some places the information is
processed before being put into the command buffer (renderpass stuff).

Execution happens on a separate "graphics" thread, againt the gallium API.

There is only a single queue which wraps a single gallium context.

Resources are allocated via the new resource/memory APIs.
Shaders are created via the context and bound/unbound in the
second thread.

(No HW for reasons - memory management, sw paths for lots of paths,
pointless CPU side queue)

v2: drop mesa_icd, drop cpp_args, drop extra flags, change meson config (Eric)
v2.1: use meson-gallium job

meson pieces:
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
overall:

Acked-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6082>
30 files changed:
.gitlab-ci.yml
meson.build
meson_options.txt
src/gallium/frontends/vallium/meson.build [new file with mode: 0644]
src/gallium/frontends/vallium/val_cmd_buffer.c [new file with mode: 0644]
src/gallium/frontends/vallium/val_conv.h [new file with mode: 0644]
src/gallium/frontends/vallium/val_descriptor_set.c [new file with mode: 0644]
src/gallium/frontends/vallium/val_device.c [new file with mode: 0644]
src/gallium/frontends/vallium/val_entrypoints_gen.py [new file with mode: 0644]
src/gallium/frontends/vallium/val_execute.c [new file with mode: 0644]
src/gallium/frontends/vallium/val_extensions.py [new file with mode: 0644]
src/gallium/frontends/vallium/val_formats.c [new file with mode: 0644]
src/gallium/frontends/vallium/val_image.c [new file with mode: 0644]
src/gallium/frontends/vallium/val_lower_input_attachments.c [new file with mode: 0644]
src/gallium/frontends/vallium/val_lower_vulkan_resource.c [new file with mode: 0644]
src/gallium/frontends/vallium/val_lower_vulkan_resource.h [new file with mode: 0644]
src/gallium/frontends/vallium/val_pass.c [new file with mode: 0644]
src/gallium/frontends/vallium/val_pipeline.c [new file with mode: 0644]
src/gallium/frontends/vallium/val_pipeline_cache.c [new file with mode: 0644]
src/gallium/frontends/vallium/val_private.h [new file with mode: 0644]
src/gallium/frontends/vallium/val_query.c [new file with mode: 0644]
src/gallium/frontends/vallium/val_util.c [new file with mode: 0644]
src/gallium/frontends/vallium/val_wsi.c [new file with mode: 0644]
src/gallium/frontends/vallium/val_wsi.h [new file with mode: 0644]
src/gallium/frontends/vallium/val_wsi_wayland.c [new file with mode: 0644]
src/gallium/frontends/vallium/val_wsi_x11.c [new file with mode: 0644]
src/gallium/meson.build
src/gallium/targets/vallium/meson.build [new file with mode: 0644]
src/gallium/targets/vallium/target.c [new file with mode: 0644]
src/gallium/targets/vallium/val_icd.py [new file with mode: 0644]