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

2017-12-22 Thread Topi Pohjolainen
red...@kde.org> Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- 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_m

[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 <andre...@gmail.com> Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- tests/spec/ext_memory_object/vk_common.

[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 <topi.pohjolai...@intel.com> --- tests/spec/ext_memory_object/common.c| 72 tests/spec/ext_memory_object/common.h

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

2017-12-21 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- 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 inse

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

2017-12-21 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- 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} M

[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 <topi.pohjolai...@intel.com> --- .../compile_and_dump_glsl_as_spirv.py | 139 + 1 file changed, 139 insertions(+) create mode 100644 tests/spec/ext_memory_

[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 <topi.pohjolai...@intel.com> --- 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} M

[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 <andre...@gmail.com> Signed-off-by: Topi Po

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

2017-12-21 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- 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_commo

[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 <topi.pohjolai...@intel.com> --- 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(+) cr

[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 <andre...@gmail.com> CC: Fredrik Hoeglund <fred...@kde.org> CC: Jason Ekstrand <ja...@jlekstrand.net> Topi Pohjolainen (11):

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

2017-12-21 Thread Topi Pohjolainen
CC: Fredrik Hoeglund <fred...@kde.org> Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- 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 ++

[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 <topi.pohjolai...@intel.com> --- tests/spec/ext_memory_object/CMakeLists.gl.txt | 18 ++ .../ext_memory_object/vk_export_image_as_tex.c

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

2017-12-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- 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_

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

2017-12-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- 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.

[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 <topi.pohjolai...@intel.com> --- tests/spec/ext_memory_object/vk_common.h | 34 tests/spec/ext_memory_object/vk_fb.c | 304

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

2017-12-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- 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

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

2017-12-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- 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_co

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

2017-12-18 Thread Topi Pohjolainen
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 <ja...@jlekstrand.net> CC: Andres Rodriguez <andre...@gmail.com> Topi Po

[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 <topi.pohjolai...@intel.com> --- .../compile_and_dump_glsl_as_spirv.py | 139 + 1 file changed, 139 insertions(+) create mode 100644 tests/spec/ext_memory_

[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 <topi.pohjolai...@intel.com> --- tests/spec/ext_memory_object/CMakeLists.gl.txt | 20 +++ tests/spec/ext_memory_object/vk_fragcoord.fs | 8 + tests/spec/ext_memory_object/vk_fragco

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

2017-11-30 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- 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

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

2017-11-30 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- 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

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

2017-11-30 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- 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_co

[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 <ja...@jlekstrand.net> CC: Andres Rodriguez <andre...@gmail.com> Topi Pohjolainen (6):

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

2017-11-30 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- 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} M

[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 <topi.pohjolai...@intel.com> --- .../compile_and_dump_glsl_as_spirv.py | 139 + 1 file changed, 139 insertions(+) create mode 100644 tests/spec/ext_memory_

[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 <topi.pohjolai...@intel.com> --- tests/all.py| 10 ++ .../clip-and-scissor-blit.cpp | 17 ++--- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/tests/al

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

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- tests/all.py| 8 +--- tests/spec/ext_framebuffer_multisample/blit-flipped.cpp | 16 +--- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/tests/al

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

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- 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/test

[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 <topi.pohjolai...@intel.com> --- tests/all.py | 5 + .../blit-multiple-render-targets.cpp | 10 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/al

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

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- .../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/test

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

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

[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 <topi.pohjolai...@intel.com> --- tests/all.py | 8 +--- tests/spec/ext_framebuffer_multisample/draw-buffers-common.cpp | 7 ++- .../int-draw-buffers-alpha-to-coverage.cpp

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

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- tests/all.py | 13 ++- .../blit-mismatched-formats.cpp| 27 +++--- .../blit-mismatched-samples.cpp| 16 +++-- ..

[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 <topi.pohjolai...@intel.com> --- .../draw-buffers-common.cpp| 39 -- tests/util/sized-internalformats.h | 8 + 2 files changed, 36 insertions(+), 11 deletions(-) diff --git a/test

[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 <topi.pohjolai...@intel.com> --- tests/all.py| 13 + .../alpha-to-coverage-dual-src-blend.cpp| 9 ++--- .../alpha-to-coverage-no-draw-buffer-zero-wri

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

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- .../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/test

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

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

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

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- .../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/test

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

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- .../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/test

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

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- .../spec/ext_framebuffer_multisample/accuracy.cpp | 29 +- tests/spec/ext_framebuffer_multisample/common.cpp | 10 +--- tests/spec/ext_framebuffer_multisample/common.h

[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 <topi.pohjolai...@intel.com> --- .../draw-buffers-common.cpp | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/test

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

2017-07-18 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- .../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 +++--

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

2016-04-28 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- 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

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

2016-04-28 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- 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 inse

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

2016-04-28 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- 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

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

2016-04-28 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- 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

[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 <topi.pohjolai...@intel.com> --- 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

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

2016-03-01 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- 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..5

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

2016-03-01 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- 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..7

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

2016-03-01 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> --- 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..8

[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 <topi.pohjolai...@intel.com> --- 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..a

[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 <topi.pohjolai...@intel.com> --- tests/textur

[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 <topi.pohjolai...@intel.com> --- tests/util/pigli

[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 <topi.pohjolai...@intel.com> --- 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..b

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

2016-02-11 Thread Topi Pohjolainen
will interfere with the sampler settings of the former. Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com> CC: Ian Romanick <i...@freedesktop.org> --- tests/all.py | 1 + tests/texturing/getteximage-formats.c | 16 +--- 2 files changed, 1

[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: Topi

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

2014-02-19 Thread Topi Pohjolainen
CC: Eric Anholt e...@anholt.net CC: Kenneth Graunke kenn...@whitecape.org Signed-off-by: Topi Pohjolainen topi.pohjolai...@intel.com --- tests/all.py| 5 +++- tests/spec/arb_stencil_texturing/draw.c | 49 +++-- 2 files changed, 45

[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 topi.pohjolai...@intel.com --- 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

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

2014-01-26 Thread Topi Pohjolainen
these window dimensions based arguments correspondingly. Signed-off-by: Topi Pohjolainen topi.pohjolai...@intel.com --- 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

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

2014-01-26 Thread Topi Pohjolainen
: Paul Berry stereotype...@gmail.com Signed-off-by: Topi Pohjolainen topi.pohjolai...@intel.com --- 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

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

2014-01-26 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen topi.pohjolai...@intel.com --- 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

[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 topi.pohjolai...@intel.com --- 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

[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 topi.pohjolai...@intel.com --- 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

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

2014-01-26 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen topi.pohjolai...@intel.com --- 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

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

2014-01-26 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen topi.pohjolai...@intel.com --- 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

[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 ian.d.roman...@intel.com Signed-off-by: Topi Pohjolainen topi.pohjolai...@intel.com --- tests/all.tests| 1 + .../spec/arb_transform_feedback3

[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] [v4 02/11] arb_transform_feedback3: add test for querying with invalid index

2013-11-14 Thread Topi Pohjolainen
for success - added to all.tests Signed-off-by: Topi Pohjolainen topi.pohjolai...@intel.com --- tests/all.tests| 1 + .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 1 + .../query_with_invalid_index.c | 109

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

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

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

2013-11-14 Thread Topi Pohjolainen
already requires GL 3.2 Signed-off-by: Topi Pohjolainen topi.pohjolai...@intel.com --- tests/all.tests| 1 + .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 1 + .../set_varyings_with_invalid_args.c | 118 + 3 files

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

2013-11-14 Thread Topi Pohjolainen
for other tests to use Signed-off-by: Topi Pohjolainen topi.pohjolai...@intel.com --- tests/all.tests| 2 + .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 1 + .../ext_interleaved_max_buffers_and_varyings.c | 306 + tests/spec

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

2013-11-14 Thread Topi Pohjolainen
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 topi.pohjolai...@intel.com --- tests/all.tests

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

2013-11-14 Thread Topi Pohjolainen
larger chunk and managing it manually - added the mandatory (max_vertices = 1) into the output layout declaration Signed-off-by: Topi Pohjolainen topi.pohjolai...@intel.com --- tests/all.tests| 1 + .../spec/arb_transform_feedback3/CMakeLists.gl.txt

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

2013-11-14 Thread Topi Pohjolainen
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 topi.pohjolai...@intel.com --- tests/all.tests

[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 topi.pohjolai...@intel.com

[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

[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 topi.pohjolai...@intel.com --- .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 1 + .../end_query_with_name_zero.c | 64 ++ 2 files changed, 65 insertions(+) create mode 100644

[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 topi.pohjolai...@intel.com --- .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 1 + .../query_with_invalid_index.c | 71 ++ 2

[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 topi.pohjolai...@intel.com --- tests/all.tests| 1 + .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 1 + .../bind_buffer_invalid_index.c| 74

[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 topi.pohjolai...@intel.com --- tests/all.tests| 1 + .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 1

[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 topi.pohjolai...@intel.com --- tests/all.tests| 1 + .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 1 + .../arb_transform_feedback3/set_invalid_varyings.c | 191

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

2013-10-15 Thread Topi Pohjolainen
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. Topi Pohjolainen (3): hack

[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 topi.pohjolai...@intel.com --- 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

[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 topi.pohjolai...@intel.com --- tests/all.tests| 2 ++ .../primitive-end-with-const

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

2013-10-15 Thread Topi Pohjolainen
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 topi.pohjolai...@intel.com --- ...vertex

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

2013-10-10 Thread Topi Pohjolainen
in 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 chad.vers...@linux.intel.com Signed-off-by: Topi Pohjolainen topi.pohjolai...@intel.com --- tests/util/piglit

[Piglit] [v2] ARB_transform_feedback3 tests

2013-10-04 Thread Topi Pohjolainen
. The last test records vertices using multiple streams and re-draws some of them. These tests pass on 4.2.0 NVIDIA 304.88 binary driver. Topi Pohjolainen (7): tests/spec: relax config for EXT_transform_feedback separate util: buffer object probe tests/spec: ARB_transform_feedback3 interleaved

[Piglit] [v2 2/7] util: buffer object probe

2013-10-04 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 topi.pohjolai...@intel.com

[Piglit] [v2 3/7] tests/spec: ARB_transform_feedback3 interleaved in separate buffers

2013-10-04 Thread Topi Pohjolainen
-off-by: Topi Pohjolainen topi.pohjolai...@intel.com --- tests/all.tests| 3 + tests/spec/CMakeLists.txt | 1 + .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 13 + tests/spec/arb_transform_feedback3/CMakeLists.txt | 1

[Piglit] [v2 5/7] tests/spec: ARB_transform_feedback3 interleaved in two buffers

2013-10-04 Thread Topi Pohjolainen
by mesa (Ian) - drop _EXT, use core names instead (Ian) - now using piglit_build_simple_program_multiple_shaders() Signed-off-by: Topi Pohjolainen topi.pohjolai...@intel.com --- tests/all.tests| 3 + .../spec/arb_transform_feedback3

[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 topi.pohjolai...@intel.com --- 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

[Piglit] [WIP] Some ARB_transform_feedback3 tests

2013-09-16 Thread Topi Pohjolainen
functionality I thought looking at the corner and error cases - I have a feeling there are going to be quite a few such tests. Topi Pohjolainen (4): util: buffer object probe tests/spec: ARB_transform_feedback3 interleaved in two buffers tests/spec: ARB_transform_feedback3 interleaved in separate

[Piglit] [WIP 3/4] tests/spec: ARB_transform_feedback3 interleaved in separate buffers

2013-09-16 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen topi.pohjolai...@intel.com --- tests/all.tests| 2 + .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 1 + .../ext_interleaved_single_stream_many_buffers.c | 334 + tests/spec/arb_transform_feedback3

[Piglit] [WIP 1/4] util: buffer object probe

2013-09-16 Thread Topi Pohjolainen
Make feedback buffer probe accessible also for other tests. Original behavior is altered not to print matching values anymore. Signed-off-by: Topi Pohjolainen topi.pohjolai...@intel.com --- tests/spec/ext_transform_feedback/separate.c | 30 tests/util/piglit-util-gl

[Piglit] [WIP 2/4] tests/spec: ARB_transform_feedback3 interleaved in two buffers

2013-09-16 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen topi.pohjolai...@intel.com --- tests/all.tests| 3 + tests/spec/CMakeLists.txt | 1 + .../spec/arb_transform_feedback3/CMakeLists.gl.txt | 13 ++ tests/spec/arb_transform_feedback3/CMakeLists.txt

  1   2   >