[Piglit] ext_memory_object: Support for vulkan rendering
Topi Pohjolainen
topi.pohjolainen at gmail.com
Thu Nov 30 14:52:37 UTC 2017
In order to test memory sharing between Vulkan and GL one needs
to be able to write with one and read with the other. This series
introduces Vulkan rendering support taken from crucible.
There is work-in-progress test utilizing this. It setups the
pipeline and renders using GLSL shaders copied from
crucible/src/tests/func/shader/fragcoord.c
The test itself is only half way there. There is, however, quite
a bit in the Vulkan render support which I thought worth sharing.
CC: Jason Ekstrand <jason at jlekstrand.net>
CC: Andres Rodriguez <andresx7 at gmail.com>
Topi Pohjolainen (6):
framework: Check for vulkan availability
ext_memory_object: Add script for turning glsl into spirv c-array
ext_memory_object: Support for setting up vulkan device
ext_memory_object: Support for drawing with vulkan
ext_memory_object: Support for setting up vulkan framebuffer
ext_memory_object: WIP: Test render with vulkan and sample with gl
CMakeLists.txt | 2 +
tests/spec/ext_memory_object/CMakeLists.gl.txt | 20 +
.../compile_and_dump_glsl_as_spirv.py | 139 +++++
tests/spec/ext_memory_object/vk_common.c | 565 +++++++++++++++++++++
tests/spec/ext_memory_object/vk_common.h | 98 ++++
tests/spec/ext_memory_object/vk_fb.c | 300 +++++++++++
tests/spec/ext_memory_object/vk_fragcoord.fs | 8 +
tests/spec/ext_memory_object/vk_fragcoord.vs | 9 +
tests/spec/ext_memory_object/vk_render_gl_sample.c | 173 +++++++
9 files changed, 1314 insertions(+)
create mode 100644 tests/spec/ext_memory_object/compile_and_dump_glsl_as_spirv.py
create mode 100644 tests/spec/ext_memory_object/vk_common.c
create mode 100644 tests/spec/ext_memory_object/vk_common.h
create mode 100644 tests/spec/ext_memory_object/vk_fb.c
create mode 100644 tests/spec/ext_memory_object/vk_fragcoord.fs
create mode 100644 tests/spec/ext_memory_object/vk_fragcoord.vs
create mode 100644 tests/spec/ext_memory_object/vk_render_gl_sample.c
--
2.14.1
More information about the Piglit
mailing list