platform/upstream/VK-GL-CTS.git
8 years agoAvoid division by zero
Jeannot Breton [Wed, 30 Dec 2015 18:35:21 +0000 (12:35 -0600)]
Avoid division by zero

8 years agoFix warnings in copies and blit tests
Pyry Haulos [Sun, 27 Dec 2015 03:48:33 +0000 (16:48 +1300)]
Fix warnings in copies and blit tests

8 years agoMerge 70-copies-and-blitting
Pyry Haulos [Sun, 27 Dec 2015 03:44:57 +0000 (16:44 +1300)]
Merge 70-copies-and-blitting

8 years agoMerge branch 'dkoch_mv_draw_shaders' into 'master'
Pyry Haulos [Sun, 27 Dec 2015 03:33:17 +0000 (22:33 -0500)]
Merge branch 'dkoch_mv_draw_shaders' into 'master'

Move draw shaders to correct location

The draw/ tests are expecting the path vulkan/draw/ instead of just draw/.

See merge request !212

8 years agoMerge branch 'imageLoadStore-too-small-descriptorPool' into 'master'
Pyry Haulos [Sun, 27 Dec 2015 03:30:07 +0000 (22:30 -0500)]
Merge branch 'imageLoadStore-too-small-descriptorPool' into 'master'

vktImageLoadStoreTests: fix *__layer test cases - fix too small descriptor pool

In dEQP-VK.image.store.1d_array.r32g32b32a32_sfloat_single_layer test case, there are 8 descriptor sets allocated from descriptor pool that has space only for one.

See merge request !210

8 years agoMerge branch 'renderpass-proper-aspect-for-cmdClearAttachments' into 'master'
Pyry Haulos [Sun, 27 Dec 2015 03:29:17 +0000 (22:29 -0500)]
Merge branch 'renderpass-proper-aspect-for-cmdClearAttachments' into 'master'

Renderpass test: use proper aspect for cmdClearAttachments

dEQP-VK.renderpass.attachment.3.206 tests uses this chunk of code to clear D32 image, so VK_IMAGE_ASPECT_STENCIL_BIT is invalid.

See merge request !209

8 years agoMerge branch '80-ApiObjectManagement-desriptorPool-size' into 'master'
Pyry Haulos [Sun, 27 Dec 2015 03:28:09 +0000 (22:28 -0500)]
Merge branch '80-ApiObjectManagement-desriptorPool-size' into 'master'

Fix descriptor pool size in api.object_management.multiple_shared_resources.descriptor_set

Fixes issue #80

- there are multiple sets allocated, so desciptor VkDescriptorPoolSize.descriptorCount must be multipled by number
of sets

See merge request !208

8 years agoMerge branch 'api-bufferView-image-layout' into 'master'
Pyry Haulos [Sun, 27 Dec 2015 03:27:28 +0000 (22:27 -0500)]
Merge branch 'api-bufferView-image-layout' into 'master'

vktApiBufferViewAccessTests: image cannot be created with COLOR_ATTACHMENT_OPTIMAL layout.

- According to spec, the only valid layouts in vkCreateImage are UNDEFINED and PREINITIALIZED
- This changes the test so image is cratead with valid layout, than transitioned to COLOR_ATTACHMENT_OPTIMAL using additional barrier

See merge request !207

8 years agoMerge branch '117-push-constant-wrong-glsl' into 'master'
Pyry Haulos [Sun, 27 Dec 2015 03:25:23 +0000 (22:25 -0500)]
Merge branch '117-push-constant-wrong-glsl' into 'master'

Fix bugs of the shaders in push constant tests

This fix issue #117 and #118

-fix the offset of the uniform block member to align with it's size

-modify the shader to fix wrong expected value for dEQP-VK.pipeline.push_constant.graphics_pipeline.data_update_partial_1

See merge request !199

8 years agoMerge branch 'jekstrand-fix-timestamp-c++11' into 'master'
Pyry Haulos [Sun, 27 Dec 2015 03:24:28 +0000 (22:24 -0500)]
Merge branch 'jekstrand-fix-timestamp-c++11' into 'master'

PipelineTimestampTests: Stop relying on C++11 features

The cbegin and cend functions weren't added to std::vector until c++11.
They also aren't really serving a purpose here given that there's no
automatic type inference going on, just a regular for loop.  This fixes the
build on Fedora 23 when using clang and default dEQP build flags.

See merge request !198

8 years agoMerge branch '76-fix-commandbuffer-params' into 'master'
Pyry Haulos [Sun, 27 Dec 2015 03:23:55 +0000 (22:23 -0500)]
Merge branch '76-fix-commandbuffer-params' into 'master'

fix VkCommandBufferBeginInfo struct values, fixes #76

just a short fix to change those two mixed struct values

See merge request !190

8 years agoMerge branch 'jbolz_fix_ubo' into 'master'
Pyry Haulos [Sun, 27 Dec 2015 03:22:03 +0000 (22:22 -0500)]
Merge branch 'jbolz_fix_ubo' into 'master'

Fix ubo.per_block_buffer tests

See merge request !187

8 years agoMerge branch 'jekstrand-binding-model-hang-fix' into 'master'
Pyry Haulos [Sun, 27 Dec 2015 03:20:59 +0000 (22:20 -0500)]
Merge branch 'jekstrand-binding-model-hang-fix' into 'master'

api.binding_model: Wait for idle before throwing NotSupportedError

If we don't, then the GPU could be busy and some of the objects destroyed
by the exception propagation could be in-use.  This is something of a
stop-gap measure; the problem of exceptions and the GPU being busy is
something that needs to be solved in general.  However, it does fix GPU
hangs on some drivers.

This is related to #20.

See merge request !185

8 years agoapi.binding_model: Wait for idle before throwing NotSupportedError
Jason Ekstrand [Fri, 18 Dec 2015 18:09:41 +0000 (10:09 -0800)]
api.binding_model: Wait for idle before throwing NotSupportedError

If we don't, then the GPU could be busy and some of the objects destroyed
by the exception propagation could be in-use.  This is something of a
stop-gap measure; the problem of exceptions and the GPU being busy is
something that needs to be solved in general.  However, it does fix GPU
hangs on some drivers.

This is related to #20.

8 years agoMove draw shaders to correct location
Daniel Koch [Wed, 23 Dec 2015 19:42:40 +0000 (14:42 -0500)]
Move draw shaders to correct location

The draw/ tests are expecting the path vulkan/draw/ instead of just draw/.

8 years agoStyle fixes for the Copy and blitting
Kristof Kosztyo [Fri, 18 Dec 2015 14:34:13 +0000 (15:34 +0100)]
Style fixes for the Copy and blitting

8 years agoAdd copy BufferToBuffer tests.
Gabor Abraham [Thu, 17 Dec 2015 16:47:22 +0000 (17:47 +0100)]
Add copy BufferToBuffer tests.

8 years agoAdd Image to image copies
Kristof Kosztyo [Thu, 17 Dec 2015 16:37:28 +0000 (17:37 +0100)]
Add Image to image copies

8 years agoFix the wrong bufferSize in CopiesAndBlitting
Szilard Ledan [Thu, 17 Dec 2015 16:36:53 +0000 (17:36 +0100)]
Fix the wrong bufferSize in CopiesAndBlitting

8 years agoSet queueFamilyIndices in CopiesAndBlitting
Szilard Ledan [Thu, 17 Dec 2015 14:38:43 +0000 (15:38 +0100)]
Set queueFamilyIndices in CopiesAndBlitting

8 years agoRename ImageToImageCopies to CopyImageToImage
Kristof Kosztyo [Thu, 17 Dec 2015 12:33:53 +0000 (13:33 +0100)]
Rename ImageToImageCopies to CopyImageToImage

8 years agoFix warnings in the CopiesAndBlitting
Szilard Ledan [Wed, 16 Dec 2015 22:11:37 +0000 (23:11 +0100)]
Fix warnings in the CopiesAndBlitting

8 years agoRemove leftover comment
Kristof Kosztyo [Wed, 16 Dec 2015 21:28:47 +0000 (22:28 +0100)]
Remove leftover comment

8 years agoAdd CopyBufferToImage test
Szilard Ledan [Wed, 16 Dec 2015 20:16:44 +0000 (21:16 +0100)]
Add CopyBufferToImage test

8 years agoAdd image to image test
Kristof Kosztyo [Wed, 16 Dec 2015 21:16:17 +0000 (22:16 +0100)]
Add image to image test

8 years agoFinish the buffer to buffer copies base class
Kristof Kosztyo [Wed, 16 Dec 2015 20:16:22 +0000 (21:16 +0100)]
Finish the buffer to buffer copies base class

8 years agoRename testgroup of the copies and blitting
Kristof Kosztyo [Wed, 16 Dec 2015 18:30:26 +0000 (19:30 +0100)]
Rename testgroup of the copies and blitting

8 years agoImplement copyRegions for the buffer to buffer copies
Kristof Kosztyo [Wed, 16 Dec 2015 18:17:05 +0000 (19:17 +0100)]
Implement copyRegions for the buffer to buffer copies

8 years agoRemove m_regions from the CopiesAndBlitting class
Kristof Kosztyo [Wed, 16 Dec 2015 17:37:46 +0000 (18:37 +0100)]
Remove m_regions from the CopiesAndBlitting class

8 years agoFix the CopyImageToBuffer test
Szilard Ledan [Wed, 16 Dec 2015 18:05:35 +0000 (19:05 +0100)]
Fix the CopyImageToBuffer test

8 years agoAdd WIP version of BufferToBufferTest.
Gabor Abraham [Wed, 16 Dec 2015 15:41:12 +0000 (16:41 +0100)]
Add WIP version of BufferToBufferTest.

8 years agoImprove TestParams in CopiesAndBlittingTests
Szilard Ledan [Wed, 16 Dec 2015 13:56:17 +0000 (14:56 +0100)]
Improve TestParams in CopiesAndBlittingTests

8 years agoSeveral fixes around the readImage and copyImage
Kristof Kosztyo [Wed, 16 Dec 2015 13:49:17 +0000 (14:49 +0100)]
Several fixes around the readImage and copyImage

8 years agoImprove the calculateSize utility function
Szilard Ledan [Wed, 16 Dec 2015 13:00:18 +0000 (14:00 +0100)]
Improve the calculateSize utility function

8 years agoRefactor uploadBuffer and uploadImage.
Gabor Abraham [Wed, 16 Dec 2015 12:48:50 +0000 (13:48 +0100)]
Refactor uploadBuffer and uploadImage.

8 years agoFix the upload image and the ImageToBuffer test
Szilard Ledan [Wed, 16 Dec 2015 10:00:19 +0000 (11:00 +0100)]
Fix the upload image and the ImageToBuffer test

8 years agoRemove BufferType enum, add uploadBuffer.
Gabor Abraham [Wed, 16 Dec 2015 09:49:22 +0000 (10:49 +0100)]
Remove BufferType enum, add uploadBuffer.

8 years agoAdd readImage
Kristof Kosztyo [Tue, 15 Dec 2015 19:54:04 +0000 (20:54 +0100)]
Add readImage

8 years agoImplement uploadImage utility function in CopiesAndBlittingTests
Szilard Ledan [Tue, 15 Dec 2015 15:44:27 +0000 (16:44 +0100)]
Implement uploadImage utility function in CopiesAndBlittingTests

8 years agoRefactor checkResult function
Kristof Kosztyo [Tue, 15 Dec 2015 16:49:24 +0000 (17:49 +0100)]
Refactor checkResult function

8 years agoAdd generateExpectedResult function
Kristof Kosztyo [Tue, 15 Dec 2015 15:59:51 +0000 (16:59 +0100)]
Add generateExpectedResult function

8 years agoImplement generateBuffer function
Gabor Abraham [Tue, 15 Dec 2015 14:53:45 +0000 (15:53 +0100)]
Implement generateBuffer function

8 years agoAdd base of the CopyImageToBuffer test
Szilard Ledan [Tue, 15 Dec 2015 10:44:43 +0000 (11:44 +0100)]
Add base of the CopyImageToBuffer test

8 years agoAdd base of the copy image to image
Kristof Kosztyo [Mon, 14 Dec 2015 18:54:04 +0000 (19:54 +0100)]
Add base of the copy image to image

8 years agoAdd base of Copies And Blitting tests
Szilard Ledan [Mon, 14 Dec 2015 10:25:28 +0000 (11:25 +0100)]
Add base of Copies And Blitting tests

8 years agoCopies and blitting: update the test specification
Kristof Kosztyo [Wed, 9 Dec 2015 17:49:01 +0000 (18:49 +0100)]
Copies and blitting: update the test specification

8 years agovktImageLoadStoreTests: fix *__layer test cases - fix too small descriptor pool
scygan [Wed, 23 Dec 2015 16:48:28 +0000 (17:48 +0100)]
vktImageLoadStoreTests: fix *__layer test cases - fix too small descriptor pool

In dEQP-VK.image.store.1d_array.r32g32b32a32_sfloat_single_layer test case, there are 8 descriptor sets allocated from descriptor pool that has space only for one.

8 years agoRenderpass test: use proper aspect for cmdClearAttachments
scygan [Wed, 23 Dec 2015 16:03:57 +0000 (17:03 +0100)]
Renderpass test: use proper aspect for cmdClearAttachments

dEQP-VK.renderpass.attachment.3.206 tests uses this chunk of code to clear D32 image, so VK_IMAGE_ASPECT_STENCIL_BIT is invalid.

8 years agoFix descriptor pool size in api.object_management.multiple_shared_resources.descripto...
scygan [Wed, 23 Dec 2015 14:54:09 +0000 (15:54 +0100)]
Fix descriptor pool size in api.object_management.multiple_shared_resources.descriptor_set

- there are multiple sets allocated, so desciptor VkDescriptorPoolSize.descriptorCount must be multipled by number of sets

8 years agovktApiBufferViewAccessTests: image cannot be created with COLOR_ATTACHMENT_OPTIMAL...
scygan [Wed, 23 Dec 2015 14:28:48 +0000 (15:28 +0100)]
vktApiBufferViewAccessTests: image cannot be created with COLOR_ATTACHMENT_OPTIMAL layout.

- According to spec, the only valid layouts in vkCreateImage are UNDEFINED and PREINITIALIZED
- This changes the test so image is cratead with valid layout, than transitioned to COLOR_ATTACHMENT_OPTIMAL using additional barrier

8 years agoFix couple of invalid VkBufferCreateInfos and ws violations in command buffer tests
Pyry Haulos [Wed, 23 Dec 2015 07:11:00 +0000 (16:11 +0900)]
Fix couple of invalid VkBufferCreateInfos and ws violations in command buffer tests

8 years agoMerge 90-command-buffers
Pyry Haulos [Wed, 23 Dec 2015 07:06:20 +0000 (16:06 +0900)]
Merge 90-command-buffers

8 years agoMerge 41-image-load-store-tests
Pyry Haulos [Wed, 23 Dec 2015 07:04:59 +0000 (16:04 +0900)]
Merge 41-image-load-store-tests

8 years agoFix whitespace violations
Pyry Haulos [Wed, 23 Dec 2015 06:54:58 +0000 (15:54 +0900)]
Fix whitespace violations

8 years agoFix VkCommandPoolCreateInfo in compute test utils.
Pyry Haulos [Wed, 23 Dec 2015 06:53:38 +0000 (15:53 +0900)]
Fix VkCommandPoolCreateInfo in compute test utils.

8 years agoMerge 24-compute-shader-tests
Pyry Haulos [Wed, 23 Dec 2015 06:47:57 +0000 (15:47 +0900)]
Merge 24-compute-shader-tests

8 years agoMerge branch '119-fix-buffer-size' into 'master'
Pyry Haulos [Wed, 23 Dec 2015 06:10:51 +0000 (01:10 -0500)]
Merge branch '119-fix-buffer-size' into 'master'

SSBO: fix buffer size when creating a buffer descriptor

Fixes #119

See merge request !203

8 years agoMerge branch 'jbolz_glsl_matrix1' into 'master'
Pyry Haulos [Wed, 23 Dec 2015 06:10:14 +0000 (01:10 -0500)]
Merge branch 'jbolz_glsl_matrix1' into 'master'

fix matrix download in glsl.matrix tests

See merge request !195

8 years agoMerge branch 'shaderRenderLoopTest-fix-getFloatFractionUniformType' into 'master'
Pyry Haulos [Wed, 23 Dec 2015 06:09:26 +0000 (01:09 -0500)]
Merge branch 'shaderRenderLoopTest-fix-getFloatFractionUniformType' into 'master'

Shader render loop test: fix getFloatFractionUniformType  function

It seems getFloatFractionUniformType should return fraction "uniform types", not integral values.

it is used to generate uniform values used in test - which, according to shader sources, should be fractions.

See merge request !202

8 years agoMerge branch 'draw-tests-indexed-instanced' into 'master'
Pyry Haulos [Wed, 23 Dec 2015 06:08:35 +0000 (01:08 -0500)]
Merge branch 'draw-tests-indexed-instanced' into 'master'

draw tests: make draw_instanced_indexed_* test use instancing (test case list bug)

See merge request !201

8 years agoMerge branch 'clean-up-mr-189' into 'master'
Pyry Haulos [Wed, 23 Dec 2015 06:07:43 +0000 (01:07 -0500)]
Merge branch 'clean-up-mr-189' into 'master'

Remove unused code in opaque type indexing tests

See !189

See merge request !196

8 years agoMerge branch 'pipeline-input_assembly-pointSize' into 'master'
Pyry Haulos [Wed, 23 Dec 2015 06:07:08 +0000 (01:07 -0500)]
Merge branch 'pipeline-input_assembly-pointSize' into 'master'

InputAssemblyTests: fix point list test

The test compares image generated by Vulkan to image rendered by reference renderer.

As Vulkan path sets gl_PointSize to 3, same must be done in ref renderer to make test pass.

See merge request !200

8 years agoMerge branch 'ssbo-initialize-acBuffer' into 'master'
Pyry Haulos [Wed, 23 Dec 2015 06:06:26 +0000 (01:06 -0500)]
Merge branch 'ssbo-initialize-acBuffer' into 'master'

Fix dEQP-VK.ssbo tests: initialize the contents of the result atomic counter buffer

The atomic counter buffer used for storing test results is not initialized - as shaders are only incrementing atomit counters, the results may be undefined, thus making the test randomly fail.

See merge request !194

8 years agoMerge branch 'buffer_view_alloc_first' into 'master'
Pyry Haulos [Wed, 23 Dec 2015 06:04:44 +0000 (01:04 -0500)]
Merge branch 'buffer_view_alloc_first' into 'master'

We need to allocate memory before we can create a buffer view - issue wth the dEQP-VK.api.buffer_view

There were issues with the dEQP-VK.api.buffer_view test group that Jeannot has addressed with this patch. Please merge.

See merge request !197

8 years agoReview comments and clang error fixes
Maciej Jesionowski [Tue, 22 Dec 2015 14:25:56 +0000 (15:25 +0100)]
Review comments and clang error fixes

8 years agoImage tests
Maciej Jesionowski [Thu, 26 Nov 2015 09:57:02 +0000 (10:57 +0100)]
Image tests

Issue #41

- store, load/store
- format reinterpret
- memory qualifiers
- imageSize

8 years agoSSBO: fix buffer size when creating a buffer descriptor
Peter Gal [Tue, 22 Dec 2015 15:09:11 +0000 (16:09 +0100)]
SSBO: fix buffer size when creating a buffer descriptor

Fixes #119

8 years agovktShaderRenderLoopTests: fix getFloatFractionUniformType function
scygan [Tue, 22 Dec 2015 14:57:25 +0000 (15:57 +0100)]
vktShaderRenderLoopTests: fix getFloatFractionUniformType function

it seems getFloatFractionUniformType should return fraction "uniform types", not integral values.

8 years agodraw tests: make draw_instanced_indexed_* test use instancing (test case list bug)
scygan [Tue, 22 Dec 2015 14:37:08 +0000 (15:37 +0100)]
draw tests: make draw_instanced_indexed_* test use instancing (test case list bug)

8 years agoFix clang compilation errors
Maciej Jesionowski [Tue, 22 Dec 2015 11:44:32 +0000 (12:44 +0100)]
Fix clang compilation errors

8 years agoUpdated compute tests to API version 210
Maciej Jesionowski [Fri, 18 Dec 2015 11:25:43 +0000 (12:25 +0100)]
Updated compute tests to API version 210

8 years agoAdd compute shader tests
Maciej Jesionowski [Wed, 9 Dec 2015 08:30:04 +0000 (09:30 +0100)]
Add compute shader tests

Basic compute shader tests

    Reference implementation:
    modules/gles31/functional/es31fBasicComputeShaderTests.cpp

    - empty shader
    - UBO to SSBO invert
    - SSBO to SSBO invert
    - invert SSBO in-place
    - write to multiple SSBO's
    - SSBO local barrier
    - shared var
    - shared var atomic operation
    - copy image to SSBO
    - copy SSBO to image
    - SSBO barrier
    - image barrier
    - image atomic operation

Indirect Compute Dispatch Tests

    Ported indirect compute dispatch tests from OpenGLES 3.1 to Vulkan.

    Reference implementation:
    modules/gles31/functional/es31fIndirectComputeDispatchTests.cpp

Compute Shader Built-in variable tests

    Tests that check if compute shader build in variables store correct
    values. Tests ported from OpenGLES 3.1

    Reference file:
    modules\gles31\functional\es31fComputeShaderBuiltinVarTests.cpp

    NOTE:
    The tests were changed from the original to use std430 ssbo data
    alignment. In the original tests the alignment of ssbo data structures was
    queried via a call to

    const Glenum queryParam = GL_ARRAY_STRIDE;
    getProgramResourceiv(program, GL_BUFFER_VARIABLE, index, 1, &queryParam, 1, DE_NULL, (int*)&value);

    We do not see an equivalent vkGet function in Vulkan. Does it mean that
    packed and shared layouts are not supported by Vulkan?

8 years agoFix dEQP-VK.ssbo tests: initialize the contents of the result atomic counter buffer
scygan [Mon, 21 Dec 2015 20:28:04 +0000 (21:28 +0100)]
Fix dEQP-VK.ssbo tests: initialize the contents of the result atomic counter buffer

8 years agoInputAssemblyTests: fixed point list test
Sokolowski, Aleksy [Tue, 22 Dec 2015 07:49:59 +0000 (08:49 +0100)]
InputAssemblyTests: fixed point list test

8 years ago1. Updated the test spec according to the new Vulkan spec.
Piotr Łebski [Thu, 17 Dec 2015 13:39:11 +0000 (14:39 +0100)]
1. Updated the test spec according to the new Vulkan spec.
2. Added all test cases from test spec to the list. The ones that are not yet implemented or don't work properly are commented out.

TODO: Dummy tests for all missing cases.

moved order of execution test to new api

1. Created simple tests for Command Pool management.
2. Removed free command buffers tests as there's not way to check the result

Removed incorrect tests related to improper recording of buffers.

Implemented a simple memory allocator and the pool_create_non_null_allocator test.

fixed merge request 149 problems

1. Implemented recording with active queries tests.
2. Removed two test cases for end recording as this command is covered extensively by all other tests.

1. Removed invalid buffer reset tests.
2. Fixed formatting.

Removed stubs of tests what won't be implemented.

Removed vktSimpleAllocator.hpp and replaced it with the framework allocation utility.

changed vktApiComputeInstanceResultBuffer to ComputeInstanceResultBuffer

8 years agoFix bugs of the shaders in push constant tests
Fei Yang [Tue, 22 Dec 2015 02:01:34 +0000 (10:01 +0800)]
Fix bugs of the shaders in push constant tests

Change-Id: Icbb47b2a184e5b28365826658c260bff3e80139d

8 years agoPipelineTimestampTests: Stop relying on C++11 features
Jason Ekstrand [Tue, 22 Dec 2015 01:49:31 +0000 (17:49 -0800)]
PipelineTimestampTests: Stop relying on C++11 features

The cbegin and cend functions weren't added to std::vector until c++11.
They also aren't really serving a purpose here given that there's no
automatic type inference going on, just a regular for loop.  This fixes the
build on Fedora 23 when using clang and default dEQP build flags.

8 years agoWe need to allocate memory before we can create a buffer view
Jeannot Breton [Mon, 21 Dec 2015 22:42:32 +0000 (16:42 -0600)]
We need to allocate memory before we can create a buffer view

8 years agoConvert indentation to tabs in timestamp tests
Pyry Haulos [Mon, 21 Dec 2015 22:39:12 +0000 (07:39 +0900)]
Convert indentation to tabs in timestamp tests

8 years agoFix a few warnings in timestamp tests
Pyry Haulos [Mon, 21 Dec 2015 22:37:14 +0000 (07:37 +0900)]
Fix a few warnings in timestamp tests

8 years agoMerge 29-timestamp-tests
Pyry Haulos [Mon, 21 Dec 2015 22:35:49 +0000 (07:35 +0900)]
Merge 29-timestamp-tests

8 years agoRemove unused code in opaque type indexing tests
Pyry Haulos [Mon, 21 Dec 2015 22:28:55 +0000 (07:28 +0900)]
Remove unused code in opaque type indexing tests

See !189

8 years agoFix invalid include guards and ws violations in pipeline barrier tests
Pyry Haulos [Mon, 21 Dec 2015 22:26:34 +0000 (07:26 +0900)]
Fix invalid include guards and ws violations in pipeline barrier tests

8 years agoEnable draw tests and fix a few warnings
Pyry Haulos [Mon, 21 Dec 2015 22:24:02 +0000 (07:24 +0900)]
Enable draw tests and fix a few warnings

8 years agoMerge 77-draw-tests
Pyry Haulos [Mon, 21 Dec 2015 22:23:36 +0000 (07:23 +0900)]
Merge 77-draw-tests

8 years agoMerge 110-OpFRem-spirv-assembly
Pyry Haulos [Mon, 21 Dec 2015 22:14:51 +0000 (07:14 +0900)]
Merge 110-OpFRem-spirv-assembly

8 years agoMerge branch 'push-constants-bufferCreateInfo' into 'master'
Pyry Haulos [Mon, 21 Dec 2015 21:52:15 +0000 (16:52 -0500)]
Merge branch 'push-constants-bufferCreateInfo' into 'master'

pipeline.push_constant test: fix wrong ordering of BufferCreateInfo structure parameters

Parameters for BufferCreateInfo structure are given in wrong order

See merge request !193

8 years agoMerge branch 'jbolz_shader_executor_misc2' into 'master'
Pyry Haulos [Mon, 21 Dec 2015 21:51:43 +0000 (16:51 -0500)]
Merge branch 'jbolz_shader_executor_misc2' into 'master'

ShaderExecutor: fix zero-sized buffer and copy command buffer submission

See merge request !189

8 years agoMerge branch 'api-createBuffer-usage0' into 'master'
Pyry Haulos [Mon, 21 Dec 2015 21:42:26 +0000 (16:42 -0500)]
Merge branch 'api-createBuffer-usage0' into 'master'

api.buffer.createBuffer: buffer usage cannot be 0.

Spec: (Valid Usage for VkBufferCreateInfo): "usage must not be 0"

See merge request !191

8 years agofix matrix download in glsl.matrix tests
Jeff Bolz [Mon, 21 Dec 2015 20:48:34 +0000 (20:48 +0000)]
fix matrix download in glsl.matrix tests

8 years agopipeline.push_constant test: fix wrong ordering of BufferCreateInfo structure parameters
scygan [Mon, 21 Dec 2015 17:07:48 +0000 (18:07 +0100)]
pipeline.push_constant test: fix wrong ordering of BufferCreateInfo structure parameters

8 years agodraw tests: fix review comments
scygan [Wed, 16 Dec 2015 18:45:58 +0000 (19:45 +0100)]
draw tests: fix review comments

8 years agofix commented type for bufferCount
Jeff Bolz [Mon, 21 Dec 2015 15:49:24 +0000 (15:49 +0000)]
fix commented type for bufferCount

8 years agoapi.buffer.createBuffer: buffer usage cannot be 0.
scygan [Mon, 21 Dec 2015 12:49:31 +0000 (13:49 +0100)]
api.buffer.createBuffer: buffer usage cannot be 0.

Spec: (Valid Usage for VkBufferCreateInfo): usage must not be 0

8 years agofix VkCommandBufferBeginInfo struct values, fixes #76
Daniel Hegedus [Mon, 21 Dec 2015 09:31:29 +0000 (10:31 +0100)]
fix VkCommandBufferBeginInfo struct values, fixes #76

8 years ago# This is a combination of 3 commits.
Jan Syryczynski [Fri, 11 Dec 2015 15:49:10 +0000 (16:49 +0100)]
# This is a combination of 3 commits.
# The first commit's message is:
update to test spec

Command buffer submission tests.

Updated the part of test spec relevant to command buffer submission.

Updated the part of the test spec relevant to Command Pools

A minor fix in spec formatting

Removed three irrelevant testcases from the part of the test spec related to secondary command buffers.

Removed three irrelevant testcases from the part of the spec related to FrameBuffers.

1. Removed unused #include statements
2. Fixed formatting

fixed the formatting problem in four files

more fixes to formatting

even more whitespace fixes

removed unnecessary includes, added google to copyright

removed resetting buffers that should not take place

added test for secondary commnad buffers execution - currently crashing

order of execution test - first

Updated the test spec according to API v170.2

Updated the part of test spec relevant to command buffer submission.

A minor fix in spec formatting

Removed three irrelevant testcases from the part of the test spec related to secondary command buffers.

Removed three irrelevant testcases from the part of the spec related to FrameBuffers.

removed unnecessary includes, added google to copyright

removed resetting buffers that should not take place

command buffers recording tests

added first command buffer test, fix to nexus compilation

added test for secondary commnad buffers execution - currently crashing

Updated the test spec according to API v170.2

order of execution test - first

Updated the part of test spec relevant to command buffer submission.

A minor fix in spec formatting

Removed three irrelevant testcases from the part of the test spec related to secondary command buffers.

Removed three irrelevant testcases from the part of the spec related to FrameBuffers.

removed unnecessary includes, added google to copyright

1. Removed all compilation errors:
  - fixed all testcases barring order_of_execution
  - commented out order_of_execution and related code in ComputeInstanceResultBuffer.cpp

# This is the 2nd commit message:

Commented out the one test that caused a segfault.

# This is the 3rd commit message:

Reverted several unintended changes.

8 years agoDraft of test spec for Command Buffers.
Piotr Łebski [Tue, 10 Nov 2015 17:33:15 +0000 (18:33 +0100)]
Draft of test spec for Command Buffers.

Fixed two typos pointed out in the merge request review.

Minor updates and fixes for Command Buffers test spec:
1. Split that one big table into several smaller ones, corresponding to chapters in Vulkan's spec.
2. Added placeholders for missing testspecs - allowed commands and render pass

Fixed colum width in Command Buffer testspec

First part of Render Pass test spec.

1. Replaced repeating parts of lengthy descriptions fir ellipses for the sake of clarity.
2. Added three more test case descriptions.

Added the remaining validity tests for structures used while creating render passes.

Added testcases for Render Pass destruction. This concludes the test spec for Render Pass.

Framebuffer testcases covered.

Fixed an error with numbering testcases for Framebuffers

Fixed command buffer test spec according to Alon's pointers.
1. Removed A LOT of testcases that would result in undefined behaviour.
2. Added a number of testcases to better cover possible uses of the command buffer API
3. Cleaned up the section of the document related to command buffers

added first command buffer test, fix to nexus compilation

added test for secondary commnad buffers execution - currently crashing

1. Command Buffer lifetime tests
- explicit reset
- implicit reset
- bulk reset

2. Pulled the timeout variable out and made it a global (did not modify code in first two test cases)

Updated the test spec according to API v170.2

Fixed style errors in test cases related to resetting command buffers.

order of execution test - first

1. Added CK_CHECK whenever possible
2. Minor formatting fixes
3. Removed several redundance vk:: uses
4. Switched from using wrapper methods to direct calls to DeviceInterface's methods when more than one buffer and event are needed.

8 years agoFix binding issues with opaque_type_indexing tests. Descriptor layout must go through...
Jeff Bolz [Mon, 21 Dec 2015 08:31:44 +0000 (08:31 +0000)]
Fix binding issues with opaque_type_indexing tests. Descriptor layout must go through builder, fix binding number for UBO array.

8 years agoFix a bug and some coding style issues after 2nd code review.
Rocky Shi [Mon, 21 Dec 2015 04:11:42 +0000 (12:11 +0800)]
Fix a bug and some coding style issues after 2nd code review.

8 years agoAdd Context::getDeviceProperties. Fix a couple tessellation issues
Jeff Bolz [Mon, 21 Dec 2015 07:33:43 +0000 (07:33 +0000)]
Add Context::getDeviceProperties. Fix a couple tessellation issues