[Piglit] ext_memory_object: Support for vulkan rendering

2017-11-30 Thread Topi Pohjolainen
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 fro

[Piglit] [PATCH 1/6] framework: Check for vulkan availability

2017-11-30 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4259ec832..04bc656ed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -173,6 +173,8 @@ ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Windows") endif()

[Piglit] [PATCH 2/6] ext_memory_object: Add script for turning glsl into spirv c-array

2017-11-30 Thread Topi Pohjolainen
This stripped down version of glsl_scraper.py found in crucible. Signed-off-by: Topi Pohjolainen --- .../compile_and_dump_glsl_as_spirv.py | 139 + 1 file changed, 139 insertions(+) create mode 100644 tests/spec/ext_memory_object/compile_and_dump_glsl_as_spirv.

[Piglit] [PATCH 4/6] ext_memory_object: Support for drawing with vulkan

2017-11-30 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/spec/ext_memory_object/vk_common.c | 320 +++ tests/spec/ext_memory_object/vk_common.h | 35 2 files changed, 355 insertions(+) diff --git a/tests/spec/ext_memory_object/vk_common.c b/tests/spec/ext_memory_object/vk_com

[Piglit] [PATCH 3/6] ext_memory_object: Support for setting up vulkan device

2017-11-30 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/spec/ext_memory_object/vk_common.c | 245 +++ tests/spec/ext_memory_object/vk_common.h | 38 + 2 files changed, 283 insertions(+) create mode 100644 tests/spec/ext_memory_object/vk_common.c create mode 100644 tests/spec/

[Piglit] [PATCH 6/6] ext_memory_object: WIP: Test render with vulkan and sample with gl

2017-11-30 Thread Topi Pohjolainen
Currently only the vulkan rendering part is implemented. Signed-off-by: Topi Pohjolainen --- tests/spec/ext_memory_object/CMakeLists.gl.txt | 20 +++ tests/spec/ext_memory_object/vk_fragcoord.fs | 8 + tests/spec/ext_memory_object/vk_fragcoord.vs | 9 ++ tests/spec/ext_memor

[Piglit] [PATCH 5/6] ext_memory_object: Support for setting up vulkan framebuffer

2017-11-30 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/spec/ext_memory_object/vk_common.h | 25 +++ tests/spec/ext_memory_object/vk_fb.c | 300 +++ 2 files changed, 325 insertions(+) create mode 100644 tests/spec/ext_memory_object/vk_fb.c diff --git a/tests/spec/ext_memory_o