[Piglit] [v4 10/11] ext_memory_object: Add helper for image type support

2017-12-22 Thread Topi Pohjolainen
-off-by: Topi Pohjolainen --- tests/spec/ext_memory_object/common.c| 39 tests/spec/ext_memory_object/common.h| 7 ++ tests/spec/ext_memory_object/vk_common.c | 15 tests/spec/ext_memory_object/vk_common.h | 3 +++ 4 files changed, 64

[Piglit] [v4 06/11] ext_memory_object: Support for setting up vulkan framebuffer

2017-12-22 Thread Topi Pohjolainen
edrik) v4: - check also memoryTypeBits and VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT (Andres) - unify allocation code paths (Andres) CC: Andres Rodriguez Signed-off-by: Topi Pohjolainen --- tests/spec/ext_memory_object/vk_common.c | 13 ++ tests/spec/ext_memory_object/vk_common.h | 53 ++

[Piglit] [v3 08/11] ext_memory_object: Support for importing vulkan memory

2017-12-21 Thread Topi Pohjolainen
v2: - s/get_fd/vk_get_memory_fd/ (Andres) - check for glImportMemoryFdEXT() failure (Andres) Signed-off-by: Topi Pohjolainen --- tests/spec/ext_memory_object/common.c| 72 tests/spec/ext_memory_object/common.h| 8 tests/spec

[Piglit] [v3 07/11] ext_memory_object: Add tex layout command line

2017-12-21 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/spec/ext_memory_object/common.c| 71 tests/spec/ext_memory_object/common.h| 39 ++ tests/spec/ext_memory_object/vk_common.h | 9 3 files changed, 119 insertions(+) create mode 100644 tests

[Piglit] [v3 03/11] ext_memory_object: Add script for turning glsl into spirv c-array

2017-12-21 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

[Piglit] [v3 02/11] framework: HACK: Read glslc path from env

2017-12-21 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c90109907..767b90add 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -174,6 +174,7 @@ ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Windows&quo

[Piglit] [v3 11/11] ext_memory_object: Test render with vulkan and sample with gl

2017-12-21 Thread Topi Pohjolainen
uses hardcoded values of VK_FORMAT_R8G8B8A8_UNORM and VK_IMAGE_TILING_LINEAR respectively, v2: - pipeline setup moved into common code - check for vkGetImageMemoryRequirements2KHR() (Fredrik) - check that image type is supported by the device (Fredrik) Signed-off-by: Topi

[Piglit] [v3 01/11] framework: Check for vulkan availability

2017-12-21 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..c90109907 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -173,6 +173,8 @@ ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Windows")

[Piglit] [v3 05/11] ext_memory_object: Support for drawing with vulkan

2017-12-21 Thread Topi Pohjolainen
v2: - do not leak mapped vertex buffer (Andres) - fix typo mem_regs -> mem_reqs (Andres) - vk_alloc_mem() with VkMemoryDedicatedAllocateInfoKHR (Fredrik) - pass struct vk_core as argument instead of using static CC: Andres Rodriguez Signed-off-by: Topi Pohjolainen --- tests/s

[Piglit] [v3 09/11] ext_memory_object: Support for creating simple vulkan pipelines

2017-12-21 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/spec/ext_memory_object/vk_common.c | 58 tests/spec/ext_memory_object/vk_common.h | 17 ++ 2 files changed, 75 insertions(+) diff --git a/tests/spec/ext_memory_object/vk_common.c b/tests/spec/ext_memory_object

[Piglit] [v3 06/11] ext_memory_object: Support for setting up vulkan framebuffer

2017-12-21 Thread Topi Pohjolainen
) (Fredrik) Signed-off-by: Topi Pohjolainen --- tests/spec/ext_memory_object/vk_common.c | 13 ++ tests/spec/ext_memory_object/vk_common.h | 53 + tests/spec/ext_memory_object/vk_fb.c | 346 +++ 3 files changed, 412 insertions(+) create mode 100644

[Piglit] v3: ext_memory_object: Test sampling memory exported from Vulkan

2017-12-21 Thread Topi Pohjolainen
Here is a revision taking into account feedback from Andres and Fredrik. Many thanks for both, I hope I didn't miss anything. CC: Andres Rodriguez CC: Fredrik Hoeglund CC: Jason Ekstrand Topi Pohjolainen (11): framework: Check for vulkan availability framework: HACK: Read glslc path

[Piglit] [v3 04/11] ext_memory_object: Support for setting up vulkan device

2017-12-21 Thread Topi Pohjolainen
using static variables at all. This was actually on my todo list, just forgot it. CC: Andres Rodriguez Signed-off-by: Topi Pohjolainen --- tests/spec/ext_memory_object/vk_common.c | 236 +++ tests/spec/ext_memory_object/vk_common.h | 48 +++ 2 files changed

[Piglit] [v3 10/11] ext_memory_object: Add helper for image type support

2017-12-21 Thread Topi Pohjolainen
CC: Fredrik Hoeglund Signed-off-by: Topi Pohjolainen --- tests/spec/ext_memory_object/common.c| 24 tests/spec/ext_memory_object/common.h| 4 tests/spec/ext_memory_object/vk_common.c | 15 +++ tests/spec/ext_memory_object/vk_common.h | 3

[Piglit] [v2 7/7] ext_memory_object: Test render with vulkan and sample with gl

2017-12-18 Thread Topi Pohjolainen
uses hardcoded values of VK_FORMAT_R8G8B8A8_UNORM and VK_IMAGE_TILING_LINEAR respectively, Signed-off-by: Topi Pohjolainen --- tests/spec/ext_memory_object/CMakeLists.gl.txt | 18 ++ .../ext_memory_object/vk_export_image_as_tex.c | 262 + tests/spec

[Piglit] [v2 5/7] ext_memory_object: Add tex layout command line

2017-12-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/spec/ext_memory_object/common.c | 71 +++ tests/spec/ext_memory_object/common.h | 45 ++ 2 files changed, 116 insertions(+) create mode 100644 tests/spec/ext_memory_object/common.c create mode 100644

[Piglit] [v2 6/7] ext_memory_object: Support for importing vulkan memory

2017-12-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/spec/ext_memory_object/common.c| 71 tests/spec/ext_memory_object/common.h| 8 tests/spec/ext_memory_object/vk_common.c | 12 ++ tests/spec/ext_memory_object/vk_common.h | 3 ++ 4 files changed, 94

[Piglit] [v2 3/7] ext_memory_object: Support for drawing with vulkan

2017-12-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/spec/ext_memory_object/vk_common.c | 322 +++ tests/spec/ext_memory_object/vk_common.h | 38 2 files changed, 360 insertions(+) diff --git a/tests/spec/ext_memory_object/vk_common.c b/tests/spec/ext_memory_object

[Piglit] [v2 4/7] ext_memory_object: Support for setting up vulkan framebuffer

2017-12-18 Thread Topi Pohjolainen
v2: Store image size in order to know how much memory to import, see glImportMemoryFdEXT(). Signed-off-by: Topi Pohjolainen --- tests/spec/ext_memory_object/vk_common.h | 34 tests/spec/ext_memory_object/vk_fb.c | 304 +++ 2 files changed, 338

[Piglit] [v2 2/7] ext_memory_object: Support for setting up vulkan device

2017-12-18 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] v2: ext_memory_object: Test sampling memory exported from Vulkan

2017-12-18 Thread Topi Pohjolainen
thing else than trying to read that from the buffer object (see the Intel driver hook). Piglit work can be found in: git://people.freedesktop.org/~tpohjola/piglit:external_objects CC: Jason Ekstrand CC: Andres Rodriguez Topi Pohjolainen (7): ext_memory_object: Add script for turning glsl

[Piglit] [v2 1/7] ext_memory_object: Add script for turning glsl into spirv c-array

2017-12-18 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

[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

[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

[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

[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] ext_memory_object: Support for vulkan rendering

2017-11-30 Thread Topi Pohjolainen
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 CC: Andres Rodriguez Topi Pohjolainen (6): framework: Check for vulkan availability

[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")

[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

[Piglit] [PATCH 14/17] ext_framebuffer_multisample: clip-and-scissor also against RGBA16F/32F

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/all.py| 10 ++ .../clip-and-scissor-blit.cpp | 17 ++--- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/tests/all.py b/tests/all.py index

[Piglit] [PATCH 06/17] ext_framebuffer_multisample: blit-flipped also against RGBA16F/32F

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/all.py| 8 +--- tests/spec/ext_framebuffer_multisample/blit-flipped.cpp | 16 +--- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/tests/all.py b/tests/all.py index 98b78ea89

[Piglit] [PATCH 09/17] ext_framebuffer_multisample: color clear also against RGBA16F/32F

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/spec/ext_framebuffer_multisample/clear.cpp | 31 ++-- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/tests/spec/ext_framebuffer_multisample/clear.cpp b/tests/spec/ext_framebuffer_multisample/clear.cpp index cb6c2e1a6

[Piglit] [PATCH 08/17] ext_framebuffer_multisample: blit-multiple-rt also against RGBA16F/32F

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/all.py | 5 + .../blit-multiple-render-targets.cpp | 10 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/all.py b/tests/all.py index

[Piglit] [PATCH 11/17] ext_framebuffer_multisample: sample-alpha- also against RGBA16F/32F

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- .../sample-alpha-to-coverage.cpp | 41 +++--- 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/tests/spec/ext_framebuffer_multisample/sample-alpha-to-coverage.cpp b/tests/spec/ext_framebuffer_multisample

[Piglit] [PATCH 15/17] ext_framebuffer_multisample: sample-coverage also against RGBA16F/32F

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/all.py | 10 ++ tests/spec/ext_framebuffer_multisample/sample-coverage.cpp | 14 +- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/tests/all.py b/tests/all.py index

[Piglit] [PATCH 16/17] ext_framebuffer_multisample: int-draw-buffers also against 8/16/32/UI

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/all.py | 8 +--- tests/spec/ext_framebuffer_multisample/draw-buffers-common.cpp | 7 ++- .../int-draw-buffers-alpha-to-coverage.cpp | 10 ++ .../int-draw-buffers

[Piglit] [PATCH 07/17] ext_framebuffer_multisample: blit-mismatched also against RGBA16F/32F

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/all.py | 13 ++- .../blit-mismatched-formats.cpp| 27 +++--- .../blit-mismatched-samples.cpp| 16 +++-- .../blit-mismatched-sizes.cpp

[Piglit] [PATCH 17/17] ext_framebuffer_multisample: Use full value range for integer formats

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- .../draw-buffers-common.cpp| 39 -- tests/util/sized-internalformats.h | 8 + 2 files changed, 36 insertions(+), 11 deletions(-) diff --git a/tests/spec/ext_framebuffer_multisample/draw-buffers

[Piglit] [PATCH 05/17] ext_framebuffer_multisample: more tests against GL_RGBA16F/32F

2017-07-18 Thread Topi Pohjolainen
against multiple formats. Signed-off-by: Topi Pohjolainen --- tests/all.py| 13 + .../alpha-to-coverage-dual-src-blend.cpp| 9 ++--- .../alpha-to-coverage-no-draw-buffer-zero-write.cpp | 9

[Piglit] [PATCH 13/17] ext_framebuffer_multisample: upsample also against RGBA16F/32F

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- .../spec/ext_framebuffer_multisample/upsample.cpp | 35 ++ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/tests/spec/ext_framebuffer_multisample/upsample.cpp b/tests/spec/ext_framebuffer_multisample/upsample.cpp index

[Piglit] [PATCH 10/17] ext_framebuffer_multisample: multiple-blit also against RGBA16F/32F

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- .../multisample-blit.cpp | 32 ++ 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/tests/spec/ext_framebuffer_multisample/multisample-blit.cpp b/tests/spec/ext_framebuffer_multisample/multisample

[Piglit] [PATCH 12/17] ext_framebuffer_multisample: unaligned-blit also against RGBA16F/32F

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- .../ext_framebuffer_multisample/unaligned-blit.cpp | 38 ++ 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/tests/spec/ext_framebuffer_multisample/unaligned-blit.cpp b/tests/spec/ext_framebuffer_multisample/unaligned

[Piglit] [PATCH 03/17] ext_framebuffer_multisample: Allow resolve fbos with different formats

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- .../draw-buffers-common.cpp| 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/tests/spec/ext_framebuffer_multisample/draw-buffers-common.cpp b/tests/spec/ext_framebuffer_multisample/draw-buffers

[Piglit] [PATCH 04/17] ext_framebuffer_multisample: accuracy also against RGBA16F/32F

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- .../spec/ext_framebuffer_multisample/accuracy.cpp | 29 +- tests/spec/ext_framebuffer_multisample/common.cpp | 10 +--- tests/spec/ext_framebuffer_multisample/common.h| 6 +++-- .../ext_framebuffer_multisample/turn-on-off.cpp

[Piglit] [PATCH 02/17] ext_framebuffer_multisample: Clamp UNORM only to [0, 1.0]

2017-07-18 Thread Topi Pohjolainen
preparing for source blending with GL_RGBA16F and GL_RGBA32F. Signed-off-by: Topi Pohjolainen --- .../draw-buffers-common.cpp | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/tests/spec/ext_framebuffer_multisample/draw-buffers

[Piglit] [PATCH 01/17] util/fbo: Provide color format to config constructor

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- .../arb_framebuffer_object/attachments-blit-scaled-linear.cpp | 2 +- tests/spec/arb_framebuffer_object/blit-scaled-linear.cpp | 2 +- .../spec/arb_sample_shading/execution/builtin-gl-num-samples.cpp | 5 +++-- tests/spec/arb_sample_shading

[Piglit] ext_framebuffer_multisample: Support for GL_RGBA16F/I/UI/32F/I/UI

2017-07-18 Thread Topi Pohjolainen
Currently these are run only against GL_RGBA and GL_RGBA8I. All pass on IVB and SKL with Mesa upstream. CC: Jason Ekstrand CC: Anuj Phogat CC: Kenneth Graunke Topi Pohjolainen (17): util/fbo: Provide color format to config constructor ext_framebuffer_multisample: Clamp UNORM only to [0

[Piglit] [PATCH 5/7] util: Add stencil support to piglit_depth_texture()

2016-04-28 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/fbo/fbo-generatemipmap-formats.c | 2 +- tests/shaders/shader_runner.c | 10 +- tests/util/piglit-util-gl.c| 32 ++-- tests/util/piglit-util-gl.h| 3 ++- 4 files changed, 34

[Piglit] [PATCH 7/7] stencil_texturing: Add test for layered miptree

2016-04-28 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/all.py | 4 + tests/spec/arb_stencil_texturing/CMakeLists.gl.txt | 1 + .../arb_stencil_texturing/draw_layered_miptree.c | 267 + 3 files changed, 272 insertions(+) create mode 100644 tests

[Piglit] [PATCH 3/7] util: Refactor depth level setup

2016-04-28 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/util/piglit-util-gl.c | 87 + 1 file changed, 49 insertions(+), 38 deletions(-) diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c index 5e96c33..d09ce8e 100644 --- a/tests/util/piglit-util

[Piglit] [PATCH 6/7] stencil_texturing: Use piglit_depth_texture()

2016-04-28 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/spec/arb_stencil_texturing/draw.c | 40 + 1 file changed, 6 insertions(+), 34 deletions(-) diff --git a/tests/spec/arb_stencil_texturing/draw.c b/tests/spec/arb_stencil_texturing/draw.c index 9353240..c4152c9 100644

[Piglit] [PATCH 4/7] util: Add support for vertical gradient in piglit_depth_texture()

2016-04-28 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/fbo/fbo-generatemipmap-formats.c | 3 ++- tests/shaders/shader_runner.c | 15 tests/util/piglit-util-gl.c| 43 +++--- tests/util/piglit-util-gl.h| 17 +- 4 files

[Piglit] [PATCH 2/7] util: Refactor data generation for depth levels

2016-04-28 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/util/piglit-util-gl.c | 42 +- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c index b288a67..5e96c33 100644 --- a/tests/util/piglit-util

[Piglit] [PATCH 1/7] stencil_texturing: Allow testing of texelFetch also

2016-04-28 Thread Topi Pohjolainen
CC: Kenneth Graunke Signed-off-by: Topi Pohjolainen --- tests/all.py| 3 +- tests/spec/arb_stencil_texturing/draw.c | 49 +++-- 2 files changed, 43 insertions(+), 9 deletions(-) diff --git a/tests/all.py b/tests/all.py index 93d64e6

[Piglit] [PATCH 1/7] texsubimage: Refactor single round for fixed region

2016-03-01 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/texturing/texsubimage.c | 124 +- 1 file changed, 74 insertions(+), 50 deletions(-) diff --git a/tests/texturing/texsubimage.c b/tests/texturing/texsubimage.c index cc8f6b5..52a4252 100644 --- a/tests/texturing

[Piglit] [PATCH 3/7] texsubimage: Move sub-region selection higher in the dispatch

2016-03-01 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/texturing/texsubimage.c | 92 +++ 1 file changed, 59 insertions(+), 33 deletions(-) diff --git a/tests/texturing/texsubimage.c b/tests/texturing/texsubimage.c index 7a5fdc6..8bebbd7 100644 --- a/tests/texturing

[Piglit] [PATCH 2/7] texsubimage: Move texture size selection higher in the dispatch

2016-03-01 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/texturing/texsubimage.c | 42 +- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/tests/texturing/texsubimage.c b/tests/texturing/texsubimage.c index 52a4252..7a5fdc6 100644 --- a/tests/texturing

[Piglit] texsubimage: Option to run against fixed region

2016-03-01 Thread Topi Pohjolainen
. It just helped me to understand the error a little more while I hacked the driver to use tex coordinates as color values. Topi Pohjolainen (7): texsubimage: Refactor single round for fixed region texsubimage: Move texture size selection higher in the dispatch texsubimage: Move sub-region

[Piglit] [PATCH 5/7] texsubimage: Add option to run against fixed region

2016-03-01 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/texturing/texsubimage.c | 71 +-- 1 file changed, 69 insertions(+), 2 deletions(-) diff --git a/tests/texturing/texsubimage.c b/tests/texturing/texsubimage.c index b695ce5..a0d811f 100644 --- a/tests/texturing

[Piglit] [PATCH 6/7] texsubimage: Remove unnecessary clear

2016-03-01 Thread Topi Pohjolainen
bits) texsubimage failed target: GL_TEXTURE_2D internal format: GL_RGB8 region: 6, 10 94 x 53 PIGLIT: {"result": "fail" } Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91926 Signed-off-by: Topi Pohjolainen --- tests/texturing/texsubimage.c | 1 - 1 file

[Piglit] [PATCH 7/7] util: Print all image errors

2016-03-01 Thread Topi Pohjolainen
= 14,0,108,255 (comparing 8 bits) instead of just first: 6,10,0: test = 40,12,0,255 ref = 12,0,40,255 (comparing 8 bits) This was informative for me as I could see that I had a problem with region 6,10 7,27. Signed-off-by: Topi Pohjolainen --- tests/util/piglit-util-gl.c | 5 +++-- 1 file changed

[Piglit] [PATCH 4/7] texsubimage: Move tex blit program setup higher in the dispatch

2016-03-01 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/texturing/texsubimage.c | 71 --- 1 file changed, 40 insertions(+), 31 deletions(-) diff --git a/tests/texturing/texsubimage.c b/tests/texturing/texsubimage.c index 8bebbd7..b695ce5 100644 --- a/tests/texturing

[Piglit] [PATCH] getteximage-formats: Add option to clear texture before rendering

2016-02-11 Thread Topi Pohjolainen
interfere with the sampler settings of the former. Signed-off-by: Topi Pohjolainen CC: Ian Romanick --- tests/all.py | 1 + tests/texturing/getteximage-formats.c | 16 +--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/tests/all.py b/tests

[Piglit] [PATCH] fcc: Combine fast clear with mipmap generation

2016-02-09 Thread Topi Pohjolainen
This test demonstrates a bug in the Intel mesa driver meta operation state restore logic. Originally it was found when developing lossless compression support. Current piglit tests just didn't exercise the resolve code path that would interfere with any ongoing meta operation. Signed-off-by:

[Piglit] [PATCH] stencil_texturing: Allow testing of texelFetch also

2014-02-19 Thread Topi Pohjolainen
CC: Eric Anholt CC: Kenneth Graunke Signed-off-by: Topi Pohjolainen --- tests/all.py| 5 +++- tests/spec/arb_stencil_texturing/draw.c | 49 +++-- 2 files changed, 45 insertions(+), 9 deletions(-) diff --git a/tests/all.py b/tests/all.py

[Piglit] [PATCH 8/8] layered-rendering/blit: remove redundant constants

2014-01-26 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/spec/gl-3.2/layered-rendering/blit.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/spec/gl-3.2/layered-rendering/blit.c b/tests/spec/gl-3.2/layered-rendering/blit.c index 08e2c83..598fd4e 100644 --- a/tests/spec/gl-3.2

[Piglit] [PATCH 3/8] layered-rendering/blit: remove redundant constant (texelsPerLayer)

2014-01-26 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/spec/gl-3.2/layered-rendering/blit.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/spec/gl-3.2/layered-rendering/blit.c b/tests/spec/gl-3.2/layered-rendering/blit.c index 92a341f..a669a04 100644 --- a/tests/spec

[Piglit] [PATCH 6/8] layered-rendering/blit: declare compile time constants as static

2014-01-26 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/spec/gl-3.2/layered-rendering/blit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/spec/gl-3.2/layered-rendering/blit.c b/tests/spec/gl-3.2/layered-rendering/blit.c index a4cb6e8..ae4eea1 100644 --- a/tests/spec/gl-3.2

[Piglit] [PATCH 7/8] layered-rendering/blit: remove redundant tex parameters settings

2014-01-26 Thread Topi Pohjolainen
The values are the defaults. Signed-off-by: Topi Pohjolainen --- tests/spec/gl-3.2/layered-rendering/blit.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/spec/gl-3.2/layered-rendering/blit.c b/tests/spec/gl-3.2/layered-rendering/blit.c index ae4eea1..08e2c83 100644 --- a/tests

[Piglit] [PATCH 4/8] layered-rendering/blit: remove redundant constant (floatPerLayer)

2014-01-26 Thread Topi Pohjolainen
Also moves the allocation for the generated pixels to the generator. Signed-off-by: Topi Pohjolainen --- tests/spec/gl-3.2/layered-rendering/blit.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/spec/gl-3.2/layered-rendering/blit.c b/tests/spec/gl

[Piglit] Modify layered-blit to reveal potential i965/blorp bug

2014-01-26 Thread Topi Pohjolainen
This is really the first patch of series, the rest are just something that in my opinion made the test easier to read and understand. Topi Pohjolainen (8): layered-rendering/blit: use color other than the default red layered-rendering/blit: adding missing whitespace layered-rendering/blit

[Piglit] [PATCH 2/8] layered-rendering/blit: adding missing whitespace

2014-01-26 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/spec/gl-3.2/layered-rendering/blit.c | 32 +++--- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/tests/spec/gl-3.2/layered-rendering/blit.c b/tests/spec/gl-3.2/layered-rendering/blit.c index 144be45..92a341f

[Piglit] [PATCH 5/8] layered-rendering/blit: specify the final fb grid using tex dimensions

2014-01-26 Thread Topi Pohjolainen
ithout altering these window dimensions based arguments correspondingly. Signed-off-by: Topi Pohjolainen --- tests/spec/gl-3.2/layered-rendering/blit.c | 57 +- 1 file changed, 25 insertions(+), 32 deletions(-) diff --git a/tests/spec/gl-3.2/layered-rendering/blit.c b/te

[Piglit] [PATCH 1/8] layered-rendering/blit: use color other than the default red

2014-01-26 Thread Topi Pohjolainen
the findings so far. CC: Paul Berry Signed-off-by: Topi Pohjolainen --- tests/spec/gl-3.2/layered-rendering/blit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/spec/gl-3.2/layered-rendering/blit.c b/tests/spec/gl-3.2/layered-rendering/blit.c index 162eee8..144be45 100

[Piglit] [v4 07/11] util: buffer object probe

2013-11-14 Thread Topi Pohjolainen
Make feedback buffer probe accessible also for other tests. Original behavior is altered not to print matching values anymore. v2: - call piglit_probe_buffer() instead of thin wrapper (Ian) - use bool instead of GLboolean Signed-off-by: Topi Pohjolainen --- tests/spec

[Piglit] [v4 04/11] arb_transform_feedback3: add test trying to draw an invalid stream

2013-11-14 Thread Topi Pohjolainen
Passes on NVIDIA (304.88 on GTX 660). v2: - setup a shader program and vertex buffer object in order to really test the invalid stream argument (Ian) - add requirement for arb_gpu_shader5 Signed-off-by: Topi Pohjolainen --- tests/all.tests| 1

[Piglit] [v4 11/11] arb_transform_feedback3: add test for re-drawing multiple streams

2013-11-14 Thread Topi Pohjolainen
Passes on NVIDIA (304.88 on GTX 660). v2: - dropped unnecessary requirement for 1.50 glsl - test requires GL version 3.2 already - use fragment shader in re-drawing also instead of using deprecated vertex shader alone (gl_FrontColor) Signed-off-by: Topi Pohjolainen --- tests

[Piglit] [v4 01/11] arb_transform_feedback3: add test for buffer binding with invalid index

2013-11-14 Thread Topi Pohjolainen
. - try also maximum allowed for success - used size 'sizeof(GLfloat)' instead of '1' for 'glBindBufferRange()'. Otherwise even the positive case of maximum supported fails on NVIDIA. Signed-off-by: Topi Pohjolainen --- tests/all.tests

[Piglit] [v4 06/11] arb_transform_feedback3: add test trying to set invalid separate mode

2013-11-14 Thread Topi Pohjolainen
insetad of using one larger chunk and managing it manually - added the mandatory (max_vertices = 1) into the output layout declaration Signed-off-by: Topi Pohjolainen --- tests/all.tests| 1 + .../spec/arb_transform_feedback3/CMa

[Piglit] [v4 10/11] arb_transform_feedback3: add test for interleaved in two buffers

2013-11-14 Thread Topi Pohjolainen
ing piglit_build_simple_program_multiple_shaders() v3: - added calls to glDeleteBuffers(), glDeleteQueries() and glDeleteVertexArrays() - do not require arb_gpu_shader5 for the vertex shader case - fixed zero buffer size in vertex shader case Signed-off-by: Topi Pohjolainen --- tests/all.te

[Piglit] [v4 09/11] arb_transform_feedback3: add test for recording max streams

2013-11-14 Thread Topi Pohjolainen
med into 'ext_interleaved_max_streams' - dropped unnecessary requirement for 1.50 glsl - test requires GL version 3.2 already Signed-off-by: Topi Pohjolainen --- tests/all.tests| 1 + .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 1 + .../ext_interle

[Piglit] [v4 05/11] arb_transform_feedback3: add test trying to set invalid varyings

2013-11-14 Thread Topi Pohjolainen
s the test already requires GL 3.2 Signed-off-by: Topi Pohjolainen --- tests/all.tests| 1 + .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 1 + .../set_varyings_with_invalid_args.c | 118 + 3 files changed, 120

[Piglit] [v4 08/11] arb_transform_feedback3: add test for interleaved in max buffers

2013-11-14 Thread Topi Pohjolainen
common source file for other tests to use Signed-off-by: Topi Pohjolainen --- tests/all.tests| 2 + .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 1 + .../ext_interleaved_max_buffers_and_varyings.c | 306 + tests/spec/

[Piglit] [v4 02/11] arb_transform_feedback3: add test for querying with invalid index

2013-11-14 Thread Topi Pohjolainen
um allowed for success - added to all.tests Signed-off-by: Topi Pohjolainen --- tests/all.tests| 1 + .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 1 + .../query_with_invalid_index.c | 109 + 3 files ch

[Piglit] [v4 03/11] arb_transform_feedback3: add test for ending non-active query

2013-11-14 Thread Topi Pohjolainen
Passes on NVIDIA (304.88 on GTX 660) and on Ivy Bridge. v2 (Ian): added to all.tests Reviewed-by: Ian Romanick Signed-off-by: Topi Pohjolainen --- tests/all.tests| 1 + .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 1

[Piglit] [v4] ARB_transform_feedback3 tests

2013-11-14 Thread Topi Pohjolainen
supports all the tests and fails only on one of the api error corner cases. Ivy Bridge in turn passes all that it supports but skips quite a few that require also arb_gpu_shader5. I got quite a bit of feedback from Ian to the api error tests which I hope I have addressed all. Topi Pohjolainen (11

[Piglit] [PATCH 6/6] arb_transform_feedback3: add test trying to set invalid separate mode

2013-10-22 Thread Topi Pohjolainen
Pass on NVIDIA (319.60 on GTX 660). Signed-off-by: Topi Pohjolainen --- tests/all.tests| 1 + .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 1 + .../arb_transform_feedback3/set_invalid_varyings.c | 191 + 3 files changed, 193

[Piglit] [PATCH 5/6] arb_transform_feedback3: add test trying to set invalid varyings

2013-10-22 Thread Topi Pohjolainen
Non-existing program case crashes on NVIDIA (319.60 on GTX 660) but exceeding maximum attribute case passes. Signed-off-by: Topi Pohjolainen --- tests/all.tests| 1 + .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 1

[Piglit] [PATCH 1/6] arb_transform_feedback3: add test for buffer binding with invalid index

2013-10-22 Thread Topi Pohjolainen
Passes on NVIDIA (319.60 on GTX 660). Signed-off-by: Topi Pohjolainen --- tests/all.tests| 1 + .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 1 + .../bind_buffer_invalid_index.c| 74 ++ 3 files changed, 76

[Piglit] [PATCH 2/6] arb_transform_feedback3: add test for querying with invalid index

2013-10-22 Thread Topi Pohjolainen
NVIDIA (319.60 on GTX 660) fails by reporting INVALID_OPERATION instead of INVALID_VALUE. Signed-off-by: Topi Pohjolainen --- .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 1 + .../query_with_invalid_index.c | 71 ++ 2 files changed, 72 insertions

[Piglit] [PATCH 3/6] arb_transform_feedback3: add test for ending non-active query

2013-10-22 Thread Topi Pohjolainen
Passes on NVIDIA (319.60 on GTX 660). Signed-off-by: Topi Pohjolainen --- .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 1 + .../end_query_with_name_zero.c | 64 ++ 2 files changed, 65 insertions(+) create mode 100644 tests/spec

[Piglit] Tests for arb_transform_feedback3 api-errors

2013-10-22 Thread Topi Pohjolainen
Here are tests for the non-NV error cases listed in the spec. Most of them pass on NVIDIA expect a few - details in the invidual patches. Topi Pohjolainen (6): arb_transform_feedback3: add test for buffer binding with invalid index arb_transform_feedback3: add test for querying with

[Piglit] [PATCH 4/6] arb_transform_feedback3: add test trying to draw an invalid stream

2013-10-22 Thread Topi Pohjolainen
Passes on NVIDIA (319.60 on GTX 660). Signed-off-by: Topi Pohjolainen --- tests/all.tests| 1 + .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 1 + .../draw_using_invalid_stream_index.c | 67 ++ 3 files changed, 69

[Piglit] [RFC 2/3] arb_gpu_shader5: add shader tests with multiple streams but emitting strips

2013-10-15 Thread Topi Pohjolainen
ts" output primitive type. A program will fail to link if it includes a geometry shader that calls the EmitStreamVertex() built-in function and has any other output primitive type parameter." All three tests pass on NVIDIA (304.88 on GTX 660). Signed-off-by: Topi Pohjolainen --- ...vertex-s

[Piglit] [RFC 1/3] hack: enable shader runner on 4.2.0 NVIDIA 304.88

2013-10-15 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/shaders/shader_runner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c index ba76cd0..5731985 100644 --- a/tests/shaders/shader_runner.c +++ b/tests/shaders

[Piglit] [RFC 3/3] arb_gpu_shader5: add vertex stream id compiler tests

2013-10-15 Thread Topi Pohjolainen
Constant cases pass while the non-constant vertex emission case crashes and the non-constant primitive end fails on NVIDIA (304.88 on GTX 660). Signed-off-by: Topi Pohjolainen --- tests/all.tests| 2 ++ .../primitive-end-with-const-int.geom | 26

[Piglit] [RFC] arb_gpu_shader5: some vertex stream tests

2013-10-15 Thread Topi Pohjolainen
ve here I just based on what I understood from existing tests. First set of tests address the primitive type constraints when geometry shaders output multiple streams. The second set exercises the stream identifier parameter taken by EmitStreamVertex() and EndStreamPrimitive() builtin functions.

[Piglit] [PATCH] framework: stop copying dma buffer source padding

2013-10-10 Thread Topi Pohjolainen
the source to the destination. By copying only the actual pixel values one not only fixes this but also allows the source to have greater padding than the destination. CC: Chad Versace Signed-off-by: Topi Pohjolainen --- tests/util/piglit-framework-gl/piglit_drm_dma_buf.c | 4 ++-- 1 file changed

[Piglit] [v2 6/7] tests/spec: relax config for ARB_transform_feedback2 redrawing

2013-10-04 Thread Topi Pohjolainen
Now able to run with 4.2.0 NVIDIA 304.88. Signed-off-by: Topi Pohjolainen --- tests/spec/arb_transform_feedback2/draw-auto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/spec/arb_transform_feedback2/draw-auto.c b/tests/spec/arb_transform_feedback2/draw-auto.c

[Piglit] [v2 7/7] tests/spec: ARB_transform_feedback3 interleaved stream re-draw

2013-10-04 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/all.tests| 1 + .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 1 + .../ext_interleaved_draw_streams.c | 388 + 3 files changed, 390 insertions(+) create mode 100644

  1   2   >