platform/upstream/VK-GL-CTS.git
7 years agoMerge "Fix error double accounting in fuzzyCompare()"
Treehugger Robot [Wed, 16 Aug 2017 18:06:52 +0000 (18:06 +0000)]
Merge "Fix error double accounting in fuzzyCompare()"

7 years agoCheck for tessellation/geometry extensions being exposed
Alexander Galazin [Fri, 11 Aug 2017 09:03:50 +0000 (11:03 +0200)]
Check for tessellation/geometry extensions being exposed

Some sample_variables tests use tessellation/geometry shaders.
Need to check that the relevant extensions are exposed.

Components: AOSP

Affects:
dEQP-GLES31.functional.debug.negative_coverage.*.oes_sample_variables.access_built_in_types_inside_other_shaders

Change-Id: Iff74939d474082938955e5b7ebfc41ea3b4a6ec5

7 years agoFix error double accounting in fuzzyCompare()
Alexander Galazin [Tue, 8 Aug 2017 11:15:40 +0000 (13:15 +0200)]
Fix error double accounting in fuzzyCompare()

fuzzyCompare() has a loop to go through all the pixels and generate error sum.
It skips some pixels using random number generator between 0-8.
Random number generator sometime generate 0 and it ends up
calculating error sum twice for the same pixel.
If this pixel has error, then this add up error sum twice.

Components: Framework

Change-Id: I08e06e29faedb99cfd8fa479e97a437c06008848

7 years agoSuppress non-critical warnings in external/deqp.
Chih-Hung Hsieh [Wed, 9 Aug 2017 23:23:07 +0000 (16:23 -0700)]
Suppress non-critical warnings in external/deqp.

* We should enable those warnings after fixing the upstream source code.

Bug: 64487164
Test: build with WITH_TIDY=1
Change-Id: Ie4961d23b8f57e8d3a3ada0e64df82ed18dd366f

7 years agoMerge "Release EGL resources in CTS worker threads"
Mika Isojarvi [Fri, 4 Aug 2017 22:55:11 +0000 (22:55 +0000)]
Merge "Release EGL resources in CTS worker threads"

7 years agoMerge "Fix extension support checks in negative api tests" into nougat-cts-dev am...
Graeme Leese [Fri, 4 Aug 2017 22:09:03 +0000 (22:09 +0000)]
Merge "Fix extension support checks in negative api tests" into nougat-cts-dev am: 4f1051ad32
am: 5bd0fb31a1

Change-Id: I2ab773e341fe8a0819963ca9351894ee740591cf

7 years agoMerge "Fix extension support checks in negative api tests" into nougat-cts-dev
Graeme Leese [Fri, 4 Aug 2017 22:03:02 +0000 (22:03 +0000)]
Merge "Fix extension support checks in negative api tests" into nougat-cts-dev
am: 4f1051ad32

Change-Id: I4f54481292ffaaf5e1cf56a05ef24f7dfa4983f3

7 years agoMerge "Fix extension support checks in negative api tests" into nougat-cts-dev
Treehugger Robot [Fri, 4 Aug 2017 21:56:36 +0000 (21:56 +0000)]
Merge "Fix extension support checks in negative api tests" into nougat-cts-dev

7 years agoRelease EGL resources in CTS worker threads
Michael Chock [Wed, 26 Jul 2017 17:07:16 +0000 (10:07 -0700)]
Release EGL resources in CTS worker threads

For worker threads in multithreaded EGL tests, call eglReleaseThread
before thread termination.

Affects:

dEQP-EGL.functional.color_clears.multi_thread.*
dEQP-EGL.functional.multithread.*
dEQP-EGL.functional.render.multi_thread.*
dEQP-EGL.functional.thread_cleanup.*
dEQP-EGL.performance.gles2_shared_render.*

Change-Id: I1e47fae1b9a3d1f148a80215c1c2baa0b684c57e

7 years agoCheck for EGLimage support in EGLimage test
Michael Chock [Tue, 25 Jul 2017 20:16:38 +0000 (13:16 -0700)]
Check for EGLimage support in EGLimage test

Verify support for EGL 1.5+, EGL_KHR_image, or EGL_KHR_image_base before
attempting to call eglCreateImage[KHR] in test
dEQP-EGL.functional.image.api.invalid_create_image.

Change-Id: Icde0f5c568a00da7b7aaa07bc2fb58b7d62df165

7 years agoMerge "Add triangle edge guardband for Tex2D lookup diff"
Kalle Raita [Thu, 20 Jul 2017 19:30:15 +0000 (19:30 +0000)]
Merge "Add triangle edge guardband for Tex2D lookup diff"

7 years agoFix atomic ssbo xor test am: f0fa05e898 am: 14cd264501
Mika Isojrvi [Wed, 19 Jul 2017 18:03:03 +0000 (18:03 +0000)]
Fix atomic ssbo xor test am: f0fa05e898 am: 14cd264501
am: d4c01761d3

Change-Id: I32a66d488ccd7f1544f23b299eaf4d0642cebc4a

7 years agoFix atomic ssbo xor test am: f0fa05e898
Mika Isojrvi [Wed, 19 Jul 2017 18:00:27 +0000 (18:00 +0000)]
Fix atomic ssbo xor test am: f0fa05e898
am: 14cd264501

Change-Id: Ib554d7464534203cbcde53f0ebd6931082900a82

7 years agoFix atomic ssbo xor test
Mika Isojrvi [Wed, 19 Jul 2017 17:57:28 +0000 (17:57 +0000)]
Fix atomic ssbo xor test
am: f0fa05e898

Change-Id: Ibc16a0ff1a6b1dbe764d4beafa5d9b63d9c090e9

7 years agoAdd triangle edge guardband for Tex2D lookup diff
Kalle Raita [Tue, 18 Jul 2017 21:52:15 +0000 (14:52 -0700)]
Add triangle edge guardband for Tex2D lookup diff

Previously 3D and cube textures allowed pixels along the seam of
triangles to use data from either triangle. This change copies that
allowance to the 2D texture computeTextureLookupDiff. The projection
values chosen for the mipmap.2d.projected group make the data
discontinous over the edge, making it sensitive to tie-breaker
resolution. This change resolves the issue.

Affects: framework

Test: Executed mipmap.2d.projected group with failing result images
Bug: 63335787
Change-Id: Ibaed590fb5e1bc9eb837c9027ddadcea2081f629

7 years agoFix atomic ssbo xor test
Mika Isojärvi [Thu, 14 Apr 2016 17:28:16 +0000 (10:28 -0700)]
Fix atomic ssbo xor test

Allow any values in high order bits in xor tests when using uint types.

Bug: 28144118
Change-Id: I0670aa12642882a329cb923487198fdf045b912b

7 years agoEGL: Add wide-color tests
Courtney Goeltzenleuchter [Mon, 19 Jun 2017 16:35:01 +0000 (10:35 -0600)]
EGL: Add wide-color tests

Verify necessary extensions and functionality
is present to support wide-color. Specifically, pixel formats
FP16 and 10:10:10:2 and Display-P3 color space.

Test: adb -d shell \
      am start -n com.drawelements.deqp/android.app.NativeActivity \
      -e cmdLine '"deqp --deqp-case=dEQP-EGL.functional.wide_color.* \
      --deqp-log-filename=/sdcard/dEQP-Log.qpa"'

TODO:
- Do we need test for EGL_EXT_gl_colorspace_scrgb_linear?
  That should be no-op for driver.

Change-Id: I537a04b1680e33e46215c4bb583f6987d20f0b4a

7 years agoMerge "Merge Vulkan CTS 1.0.2.4 into aosp/master"
Mika Isojarvi [Mon, 17 Jul 2017 20:13:57 +0000 (20:13 +0000)]
Merge "Merge Vulkan CTS 1.0.2.4 into aosp/master"

7 years agoMerge Vulkan CTS 1.0.2.4 into aosp/master
Mika Isojärvi [Fri, 14 Jul 2017 22:20:31 +0000 (15:20 -0700)]
Merge Vulkan CTS 1.0.2.4 into aosp/master

Bug: 62712168
Change-Id: Ib5dcdc7645193825171cb93c5a3b8a0820cbc5a1

7 years agoMerge "Report Android extension pack tests as not supported"
Mika Isojarvi [Fri, 14 Jul 2017 22:11:54 +0000 (22:11 +0000)]
Merge "Report Android extension pack tests as not supported"

7 years agoUpdate GL wrapper to newest API.
Mika Isojärvi [Thu, 13 Jul 2017 17:55:43 +0000 (10:55 -0700)]
Update GL wrapper to newest API.

Components: Framework
Affects: headers generation
Test: Run some of the functional deqp GLES tests on couple of Pixel
      and Nexus devices
Bug: 63669033

Change-Id: Id5e8924a1cec9bc72156efa51625d566ed2681ca

7 years agoFetch gl.xml, egl.xml from Github repos
Alexander Galazin [Fri, 24 Feb 2017 20:47:42 +0000 (21:47 +0100)]
Fetch gl.xml, egl.xml from Github repos

SVN repository containing gl.xml and egl.xml is no longer updated.
The new locations for these files are OpenGL-Registry and
EGL-Registry repositories on Github.
Adjust fetching scripts to use the new locations.

Components: Framework
Affects: headers generation

Change-Id: Ic091a46c636d446b6a4751bd3b797bcd19f90014

7 years agoReport Android extension pack tests as not supported
Alexander Galazin [Wed, 12 Jul 2017 12:38:01 +0000 (14:38 +0200)]
Report Android extension pack tests as not supported

Android extension pack tests can't run on GLES31-only GPUs.
Report such tests as NotSupported.

Components: AOSP

Change-Id: I88ab61e5d0b263428c41a644c6417e24e2f7f234

7 years agoMask compared bits in atomic operation tests. am: b2ed9fbe1a am: 4d1d6446da
Mika Isojrvi [Wed, 12 Jul 2017 22:55:28 +0000 (22:55 +0000)]
Mask compared bits in atomic operation tests. am: b2ed9fbe1a am: 4d1d6446da
am: b78f9b0e57

Change-Id: I8c3f63b90541d59965f4af1e60cb8654ce734faa

7 years agoMask compared bits in atomic operation tests. am: b2ed9fbe1a
Mika Isojrvi [Wed, 12 Jul 2017 22:53:28 +0000 (22:53 +0000)]
Mask compared bits in atomic operation tests. am: b2ed9fbe1a
am: 4d1d6446da

Change-Id: I9931765924b1102c011bd1d75522f9b4f7089dd2

7 years agoMask compared bits in atomic operation tests.
Mika Isojrvi [Wed, 12 Jul 2017 22:51:27 +0000 (22:51 +0000)]
Mask compared bits in atomic operation tests.
am: b2ed9fbe1a

Change-Id: I2f7b4cfbf2d926966af7c9956db670080771c164

7 years agoAdd missing files to Android.mk
Mika Isojärvi [Fri, 7 Jul 2017 22:46:05 +0000 (15:46 -0700)]
Add missing files to Android.mk

Change-Id: I843a5b2967b130f3c7399865e1d0e56af840c1ae

7 years agoAdd RENDERBUFFER_VALID bit to R8, RG8 definition
Alexander Galazin [Wed, 28 Jun 2017 07:31:31 +0000 (09:31 +0200)]
Add RENDERBUFFER_VALID bit to R8, RG8 definition

FBO completness tests missed that R8/RG8 are valid internal formats
for glRenderbufferStorage* calls starting from GLES3. This caused
the tests to expect error on some implementations.

VK-GL-CTS issue: 532

Components: AOSP

Affects:
dEQP-GLES2.functional.fbo.completeness.renderable.renderbuffer.color0.r8
dEQP-GLES2.functional.fbo.completeness.renderable.renderbuffer.color0.rg8

Change-Id: I394ac0e75f83f0a5ca03634629293f109fc0cbb7

7 years agoCheck that threads started in multithreading tests
Mark Adams [Mon, 19 Jun 2017 15:19:16 +0000 (11:19 -0400)]
Check that threads started in multithreading tests

The EGL GLES2 multithreading sharing tests could interpret a thread
that hadn't started yet as a finished thread.

Commit fd41d5d addressed the same issue but only changed one of the
two test iteration functions.

Author: Onni Kosomaa <okosomaa@nvidia.com>

Change-Id: Ie35390a8d57d9a0e8a679250a63ebb68e100de47

7 years agoReduce scope of mustpass exclusions due to 22760309
Pyry Haulos [Fri, 12 May 2017 18:26:59 +0000 (11:26 -0700)]
Reduce scope of mustpass exclusions due to 22760309

Bug: 22760309

Change-Id: I65b3e8ac836c87d038ee0f2a1aa033242ae19a1a

7 years agoAdd new large constant array indexing tests
John Richardson [Tue, 28 Mar 2017 15:54:13 +0000 (16:54 +0100)]
Add new large constant array indexing tests

New shader library tests for indexing into large constant arrays with
varied sizes and data types (float, vec4).

New tests:
- dEQP-GLES3.functional.shaders.large_constant_arrays.indexing.*

Change-Id: I2d41cc35930969078737b3490c5a2377e7c65446

7 years agoReset GL_FRAMEBUFFER_SRGB state for ES tests
james.glanville [Wed, 17 May 2017 12:45:37 +0000 (13:45 +0100)]
Reset GL_FRAMEBUFFER_SRGB state for ES tests

GL_EXT_sRGB_write_control adds new state "GL_FRAMEBUFFER_SRGB" which
is enabled by default. This was not reset between tests, meaning state
could leak between tests.

Affects: dEQP-GLES31.functional.fbo.srgb_write_control.
framebuffer_srgb_enabled

Components: AOSP

7 years agoApply sRGB conversion to reference in sRGB framebuffer fetch test
james.glanville [Thu, 18 May 2017 10:24:06 +0000 (11:24 +0100)]
Apply sRGB conversion to reference in sRGB framebuffer fetch test

Framebuffer fetch returns linear values when the framebuffer format
is sRGB and GL_FRAMEBUFFER_SRGB is enabled (default). This conversion
was not applied when generating reference textures for framebuffer
fetch tests. glReadPixels() does not apply any conversion, so the
final reference value must also be converted back to sRGB.

Affects: dEQP-GLES31.functional.shaders.framebuffer_fetch.
framebuffer_format.srgb8_alpha8

Components: AOSP

7 years agoFix for integer formats in framebuffer extension tests
John Richardson [Thu, 30 Mar 2017 09:53:48 +0000 (10:53 +0100)]
Fix for integer formats in framebuffer extension tests

Use UVec4 and IVec4 types when calculating composite color for
unsigned and signed integer formats respectively.

Affected tests:
- dEQP-GLES31.functional.shaders.framebuffer_fetch.framebuffer_format.*

Change-Id: I01cea4a6d99df51939740712b952b5e9191ed1f2

7 years agoAdd new framebuffer fetch extension tests
John Richardson [Mon, 20 Mar 2017 17:29:54 +0000 (17:29 +0000)]
Add new framebuffer fetch extension tests

New tests for EXT_shader_framebuffer_buffer_fetch extension. Test cases
for accessing existing framebuffer data as input in the fragment shader.
Includes negative tests cases for invalid shader usage.

New tests:
- dEQP-GLES31.functional.shaders.framebuffer_fetch.basic.*
- dEQP-GLES31.functional.shaders.framebuffer_fetch.framebuffer_format.*
- dEQP-GLES31.functional.debug.negative_coverage.*.framebuffer_fetch.*

Change-Id: I8f8aa2312e26c2c709d3e2e2733c497e24669da8

7 years agoCode clean up in swizzle math operations script
John Richardson [Wed, 29 Mar 2017 08:49:52 +0000 (09:49 +0100)]
Code clean up in swizzle math operations script

Remove redundant arguments in SwizzleCase constructor in gen swizzle
math operations script.

Change-Id: Ib1786db43682a6aa30b5d64ba770ad565ca23ea5

7 years agoAdd new swizzle math operation tests
John Richardson [Thu, 23 Mar 2017 09:54:09 +0000 (09:54 +0000)]
Add new swizzle math operation tests

New tests for combined swizzle and math operations using various vector
types. Includes addition, subtraction, multiplication, and division
operations with repeated and non-repeated swizzles.

New tests:
- dEQP-GLES3.functional.shaders.swizzle_math_operations.vector_add.*
- dEQP-GLES3.functional.shaders.swizzle_math_operations.vector_subtract.*
- dEQP-GLES3.functional.shaders.swizzle_math_operations.vector_multiply.*
- dEQP-GLES3.functional.shaders.swizzle_math_operations.vector_divide.*

Change-Id: I4541a88057f70dd41f4f27b81313748094e76037

7 years agoFix compute.exceed_atomic_counters_limit
Pyry Haulos [Mon, 3 Apr 2017 15:37:57 +0000 (08:37 -0700)]
Fix compute.exceed_atomic_counters_limit

Tests were using large offset instead of large binding value when
attempting to exceed atomic counter limit.

Affects:

dEQP-GLES31.functional.debug.negative_coverage.*.compute.exceed_atomic_counters_limit

Change-Id: I9c89b64de4983ec383a9c76cc44f3ac9f2e782f4

7 years agoEnsure vertex shader presence if a geometry shader exists
Alexander Galazin [Mon, 8 May 2017 12:59:38 +0000 (14:59 +0200)]
Ensure vertex shader presence if a geometry shader exists

Certain tests verify that INVALID_OPERATION is generated
if a geometry shader is active and mode is incompatible with
the input primitive type of the geometry shader in the currently
installed program object. However these tests have no vertex shader and
this is the real reason why INVALID_OPERATION is generated.
This change ensures that the vertex shader is present.

Components: AOSP

Affects:
dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_elements_base_vertex_primitive_mode_mismatch
dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_elements_instanced_base_vertex_primitive_mode_mismatch
dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_range_elements_base_vertex_primitive_mode_mismatch

Change-Id: I36bcee8892e4f641feadb0b444a53ed35273b727

7 years agoWindows build fix. Use deUint types
Boris Zanin [Tue, 11 Jul 2017 12:31:58 +0000 (14:31 +0200)]
Windows build fix. Use deUint types

uint32_t and uint64_t have been replaced with
deUint32 and deUint64 recognizable by Windows.

Components: Vulkan

VK-GL-CTS issue: 358

Change-Id: I5b80d861a63005011f3d0b663d802f97321148f8

7 years agoMerge vk-gl-cts/vulkan-cts-1.0.2-confidential-rc into vk-gl-cts/vulkan-cts-1.0.2
Alexander Galazin [Mon, 10 Jul 2017 15:52:41 +0000 (17:52 +0200)]
Merge vk-gl-cts/vulkan-cts-1.0.2-confidential-rc into vk-gl-cts/vulkan-cts-1.0.2

Change-Id: I328c6582580bf287a02201c200fb4e477c259508

7 years agoAdd negative OES_sample_variables tests
Michael Hadley [Tue, 14 Mar 2017 15:42:34 +0000 (15:42 +0000)]
Add negative OES_sample_variables tests

New Tests:
- dEQP-GLES31.functional.debug.negative_coverage.callbacks.oes_sample_variables.*
- dEQP-GLES31.functional.debug.negative_coverage.log.oes_sample_variables.*
- dEQP-GLES31.functional.debug.negative_coverage.get_error.oes_sample_variables.*

Change-Id: I83bf9b48ca0ac7133419099b1a54ebc4d1cacf20

7 years agoAdd new compute negative coverage tests
John Richardson [Mon, 6 Feb 2017 11:28:21 +0000 (11:28 +0000)]
Add new compute negative coverage tests

Test groups added to:
- dEQP-GLES31.functional.debug.negative_coverage.*.compute (new)

New tests:
- program_not_active

- invalid_program_query
- invalid_dispatch_compute_indirect
- invalid_maximum_work_group_counts
- invalid_maximum_work_group_sizes
- invalid_layout_qualifiers
- invalid_write_built_in_constants

- exceed_uniform_block_limit
- exceed_shader_storage_block_limit
- exceed_texture_image_units_limit
- exceed_image_uniforms_limit
- exceed_shared_memory_size_limit
- exceed_uniform_components_limit
- exceed_atomic_counter_buffer_limit
- exceed_atomic_counters_limit

Change-Id: Ifd798652df3b138e174c1d9408b6ecdb003ce7f9

7 years agoAdd new EGL enum negative case to robustness tests
John Richardson [Wed, 29 Mar 2017 13:19:56 +0000 (14:19 +0100)]
Add new EGL enum negative case to robustness tests

New test case for verifying EGL versions < 1.5 do not accept
EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY enum in their attribute
list when creating an EGL context.

Test group:
- dEQP-EGL.functional.robustness.negative_context

New tests:
- invalid_notification_strategy_enum

Change-Id: I6027e880a2e3a97dfaa218c7b094ea727afcc996

7 years agoAdd negative sRGB texture/sampler API tests
Michael Hadley [Wed, 7 Dec 2016 16:11:05 +0000 (16:11 +0000)]
Add negative sRGB texture/sampler API tests

Added sRGB tests to the following:
- dEQP-GLES31.functional.debug.negative_coverage.callbacks.texture.*
- dEQP-GLES31.functional.debug.negative_coverage.callbacks.shader.*

Change-Id: I1ebd5a95c8605a39e4bbb5b4516d0f7b8c11898e

7 years agoFix DrawRangeElementsBaseVertex tests with negative basevertex
Alexander Galazin [Tue, 9 May 2017 08:44:12 +0000 (10:44 +0200)]
Fix DrawRangeElementsBaseVertex tests with negative basevertex

DrawRangeElementsBaseVertex tests with negative basevertex call
glDrawRangeElementsBaseVertex with start = 0 and basevertex = -1.
According to the spec: If no element array buffer is bound, the vertex ID of
the ith element transferred is indices[i] + basevertex...
If the vertex ID is larger than the maximum value representable by type,
it should behave as if the calculation were upconverted to 32-bit unsigned
integers (with wrapping on overflow conditions).
Behavior of DrawElementsOneInstance is undefined if the vertex ID is negative
for any element, and should be handled as described in section 6.4.

This change ensures that indexMin + baseVertex will be zero or positive value.

Components: AOSP

Affects:
dEQP-GLES31.functional.draw_base_vertex.draw_range_elements_base_vertex.base_vertex.index_neg_byte
dEQP-GLES31.functional.draw_base_vertex.draw_range_elements_base_vertex.base_vertex.index_neg_short
dEQP-GLES31.functional.draw_base_vertex.draw_range_elements_base_vertex.base_vertex.index_neg_int

Change-Id: I07a9e6bc60d4340784d400b5087bb8fff01f0e57

7 years agoAdd new draw elements base vertex tests
John Richardson [Tue, 14 Feb 2017 09:27:14 +0000 (09:27 +0000)]
Add new draw elements base vertex tests

New tests for EXT_draw_elements_base_vertex extension
exercising the following draw calls

- DrawElementsBaseVertex()
- DrawRangeElementsBaseVertex()
- DrawElementsInstancedBaserVertex()

New test groups:
- dEQP-GLES31.functional.draw_elements_base_vertex.*

New tests:
- indices.*
- base_vertex.*
- builtin_variable.*
- points.*
- triangles.*
- triangle_fan.*
- triangle_strip.*
- lines.*
- line_strip.*
- line_loop.*

Extend dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.*
tests to include additional mapping and mismatched primitive mode
errors for base vertex draw calls.

New tests:
- *.primitive_mode_mismatch
- *.invalid_map

Change-Id: Iefc9bcddd3fe8831d2bb20f2e46d06f92daa6d6b

7 years agoFix typo in framebuffer_srgb_unsupported_enum
Pyry Haulos [Mon, 3 Apr 2017 15:32:07 +0000 (08:32 -0700)]
Fix typo in framebuffer_srgb_unsupported_enum

Test case was not assigning gl.getError() return value into a variable
causing tests to always fail on implementations that don't support ES3.2
or GL_EXT_sRGB_write_control.

Affects:

dEQP-GLES31.functional.fbo.srgb_write_control.framebuffer_srgb_unsupported_enum

Change-Id: Iafc38b8152f3371ce8c016c4f70feb2bb4604c69

7 years agoAdd sRGB write decode negative case
John Richardson [Thu, 30 Mar 2017 14:11:43 +0000 (15:11 +0100)]
Add sRGB write decode negative case

Test to check drivers that don't expose EXT_sRGB_write control return
GL_INVALID_ENUM for related gl calls.

New Tests:
- dEQP-GLES31.functional.fbo.srgb_write_control.framebuffer_srgb_unsupported_enum

Change-Id: I605f70894ead6e5dd317a340d061dcec9a6180c8

7 years agoAdd sRGB write decode tests
Michael Hadley [Wed, 8 Mar 2017 13:28:09 +0000 (13:28 +0000)]
Add sRGB write decode tests

New Tests:
- dEQP-GLES31.functional.fbo.srgb_write_control.*

Change-Id: Ieaaee4c7dc49cc530d8fc42a060e40c706d86e5c

7 years agoFix for variable pointer (writes) in tess.control
Ehsan Nasiri [Fri, 30 Jun 2017 22:58:19 +0000 (18:58 -0400)]
Fix for variable pointer (writes) in tess.control

Use patch index to avoid multiple increments

VK-GL-CTS issue: 543

Components: Vulkan

Affects:
dEQP-VK.spirv_assembly.instruction.graphics.variable_pointers.graphics.writes*tess*

Change-Id: If518fdae084722cc28f19044186dbda07880a50c

7 years agocross_instance sync tests: add support for non-KMT Win32 handles
Slawomir Cygan [Mon, 3 Jul 2017 13:45:47 +0000 (15:45 +0200)]
cross_instance sync tests: add support for non-KMT Win32 handles

This adds tests for *HANDLE_TYPE_OPAQUE_WIN32_BIT_KHR
handle types.

Affects: dEQP-VK.synchronization.cross_instance.*win32*

VK-GL-CTS issue: 547
Components: Vulkan

Change-Id: I70a577195f5b303c7fd80f88606f35b83a1b2b11

7 years agoWrong handle in external fence reset tests
Slawomir Cygan [Mon, 3 Jul 2017 16:50:01 +0000 (18:50 +0200)]
Wrong handle in external fence reset tests

The `importFence()` function resets the passed handle at the end,
so in two consecutive calls the second one is going to use the
wrong handle.

To avoid that the handle is duplicated.

Affects: dEQP-VK.api.external.fence.*reset_*

VK-GL-CTS issue: 549
Components: Vulkan

Change-Id: I2218d2f5ceffe52afe6a2306c3eebac79a24b5a9

7 years agoFix extension support checks in negative api tests
Graeme Leese [Thu, 23 Feb 2017 16:56:10 +0000 (16:56 +0000)]
Fix extension support checks in negative api tests

Add checks for tessellation and geometry shader support for negative
shader storage and primitive bounding box tests.

Move all uses of cubemap array textures inside the extension checks in
the texture tests.

Bug: 29835218
Change-Id: I6051fff231285ed7d9c71015c2bb11a9fc7b909b
Signed-off-by: Pierre Couillaud <pierre@broadcom.com>
7 years agoFix gcc 6.3 warnings
Alexander Galazin [Wed, 5 Jul 2017 13:29:21 +0000 (15:29 +0200)]
Fix gcc 6.3 warnings

Components: Vulkan

Change-Id: I0e4f8d09fef5a6d08a7b7db975de4a68879ea3f8

7 years agoRemove individual 3D slice layout transitions
Noah Fredriks [Wed, 31 May 2017 18:01:35 +0000 (14:01 -0400)]
Remove individual 3D slice layout transitions

For VK_KHR_maintenance1 render to 3D slice tests using
VK_IMAGE_CREATE_2D_ARRAY_COMPATIBILITY_BIT_KHR, layout
transitions from undefined would actually affect all
slices in the complete mip level instead of just those
specified in the image view.  Therefore, don't use
VK_IMAGE_LAYOUT_UNDEFINED when previous subpasses may
have already rendered to the other slices.

Affects: dEQP-VK.pipeline.render_to_image.3d.*

VK-GL-CTS issue: 476
Components: Vulkan

Change-Id: I0cfde62c03f4400246eef192a382d5593c6997e5

7 years agoRemove individual 3D slice layout transitions
Noah Fredriks [Wed, 31 May 2017 18:01:35 +0000 (14:01 -0400)]
Remove individual 3D slice layout transitions

For VK_KHR_maintenance1 render to 3D slice tests using
VK_IMAGE_CREATE_2D_ARRAY_COMPATIBILITY_BIT_KHR, layout
transitions from undefined would actually affect all
slices in the complete mip level instead of just those
specified in the image view.  Therefore, don't use
VK_IMAGE_LAYOUT_UNDEFINED when previous subpasses may
have already rendered to the other slices.

Affects: dEQP-VK.pipeline.render_to_image.3d.*

VK-GL-CTS issue: 476
Components: Vulkan

Change-Id: I4faaaf0d849ad89dd68ef643cfe38730221f8f55

7 years agoExclude variable pointers tests with stores to SSBOs in tess shaders
Alexander Galazin [Fri, 30 Jun 2017 11:51:02 +0000 (13:51 +0200)]
Exclude variable pointers tests with stores to SSBOs in tess shaders

VK-GL-CTS issue: 543

Components: Vulkan

Affects:
dEQP-VK.spirv_assembly.instruction.graphics.variable_pointers.graphics.writes*tess*

Change-Id: I7f8f2f34dda2534e6dcc1f2e81e4a497741a4bfd

7 years agoAdd ArrayStride decoration to some pointers.
Ehsan Nasiri [Thu, 29 Jun 2017 19:04:52 +0000 (15:04 -0400)]
Add ArrayStride decoration to some pointers.

OpPtrAccessChain needs ArrayStride information on variable pointers.

VK-GL-CTS issue: 123

Components: Vulkan

Affects: dEQP-VK.spirv_assembly.instruction.*.variable_pointers.*

Change-Id: I04aa67814b39937b8eeb6254e341c117bc1fc956

7 years agox11_egl: use quotes to include glesv1_cm directories
Juan A. Suarez Romero [Fri, 30 Jun 2017 12:22:35 +0000 (14:22 +0200)]
x11_egl: use quotes to include glesv1_cm directories

Modifying the CMAKE_EXE_LINKER_FLAGS requires to set the new options
between quotes.

Otherwise, cmake will join the elements with semicolons, generating
incorrect linker flags.

Test: cmake . -DDEQP_TARGET=x11_egl && make
Change-Id: I4d95dc37b6d91ab787b9c2e5568cbe2f08dd472b
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
7 years agoUse transfer queue with vkCmdFillBuffer
Maciej Jesionowski [Tue, 30 May 2017 08:27:34 +0000 (10:27 +0200)]
Use transfer queue with vkCmdFillBuffer

Due to an error in the condition, the transfer-only queue wasn't
selected for the fill buffer write operation.

Also fixed a validation error with barrier used inside a render pass
in read vertex input operation. This should have no effect on behavior.

Affects:

dEQP-VK.synchronization.op.multi_queue.*fill_buffer*
dEQP-VK.synchronization.op.*read_vertex_input*

Components: Vulkan
VK-GL-CTS issue: 481

Change-Id: Ibed24824532c0e35aba61238809f34717f431b6f
(cherry picked from commit 83af72c04b8723a33855fafc38b3f0a28537a124)

7 years agoExclude certain tests not inlcuded in 1.0.2.3
Alexander Galazin [Thu, 29 Jun 2017 19:45:14 +0000 (21:45 +0200)]
Exclude certain tests not inlcuded in 1.0.2.3

- image_clearing.*multiple_layer
- render_to_image mipmap tests and recently added formats
- sync Android and Khronos mustpasses

VK-GL-CTS issue: 542
Components: Vulkan, AOSP

Change-Id: I043680cb93ba7abdfac371f5a3e6f0b578b3af20

7 years agoMask compared bits in atomic operation tests.
Mika Isojärvi [Tue, 5 Apr 2016 17:42:09 +0000 (10:42 -0700)]
Mask compared bits in atomic operation tests.

Bug: 27975797
Change-Id: Id24a784b5b8a665f509218358d58d7eca9a7bb93

7 years agoExclude render pass multisample resolve tests
Alexander Galazin [Wed, 28 Jun 2017 13:29:13 +0000 (15:29 +0200)]
Exclude render pass multisample resolve tests

Components:Vulkan

Affects: dEQP-VK.renderpass.*.multisample_resolve.*

VK-GL-CTS issue: 538

Change-Id: I21271ceacbc28207b1dba7c09871f1f1871bf556

7 years agoUse transfer queue with vkCmdFillBuffer
Maciej Jesionowski [Tue, 30 May 2017 08:27:34 +0000 (10:27 +0200)]
Use transfer queue with vkCmdFillBuffer

Due to an error in the condition, the transfer-only queue wasn't
selected for the fill buffer write operation.

Also fixed a validation error with barrier used inside a render pass
in read vertex input operation. This should have no effect on behavior.

Affects:

dEQP-VK.synchronization.op.multi_queue.*fill_buffer*
dEQP-VK.synchronization.op.*read_vertex_input*

Components: Vulkan
VK-GL-CTS issue: 481

Change-Id: Ibed24824532c0e35aba61238809f34717f431b6f

7 years agoAdd new VK_KHR_variable_pointers extension tests
Ehsan Nasiri [Fri, 26 May 2017 19:06:15 +0000 (15:06 -0400)]
Add new VK_KHR_variable_pointers extension tests

These tests do not write to SSBOs, and therefore do not require the
vertexPipelineStoresAndAtomics and fragmentStoresAndAtomics device
features.

VK-GL-CTS issue: 123
Components: Vulkan
Affects: dEQP-VK.spirv_assembly.instruction.*.variable_pointers.*

Change-Id: I9a5f524a3a7ae7f0ddb295d983ba39bb0b4bcfa9

7 years agoAdd tests for SPV_KHR_variable_pointers extension
Ehsan Nasiri [Fri, 31 Mar 2017 20:40:35 +0000 (16:40 -0400)]
Add tests for SPV_KHR_variable_pointers extension

Compute tests and graphics tests are added for the
VK_KHR_variable_pointers
extension.

Components: Vulkan, Framework
VK-GL-CTS issue: 123
New Tests: dEQP-VK.spirv_assembly.instruction.*.variable_pointers.*

Change-Id: If2d01d626428d89a27432e2b1df33778e0b29f3b

7 years agoExclude multisample renderpass input attachment tests
Alexander Galazin [Tue, 27 Jun 2017 07:32:01 +0000 (09:32 +0200)]
Exclude multisample renderpass input attachment tests

VK-GL-CTS issue: 536
Components: Vulkan
Affects: dEQP-VK.renderpass.*.multisample.*

Change-Id: I34c7bc3f92141b92e645ce4f3da4029177b93b24

7 years agoExclude tests for resolving between images of different sizes
Alexander Galazin [Tue, 27 Jun 2017 07:24:20 +0000 (09:24 +0200)]
Exclude tests for resolving between images of different sizes

VK-GL-CTS issue: 534
Components: Vulkan
Affects: dEQP-VK.api.copy_and_blit.*.resolve_image.diff_image_size.*

Change-Id: Id80c74928d29556336a584c6ae85e261db10f935

7 years agoApplying missing changes from 7e5751
Alexander Galazin [Tue, 27 Jun 2017 07:10:41 +0000 (09:10 +0200)]
Applying missing changes from 7e5751

VK-GL-CTS issue: 533
Components: Vulkan
Affects: dEQP-VK.api.external.fence.*

Change-Id: I5578ab58c4839e8b43c6c1a43cd567be40996c12

7 years agoAdd VK_KHR_dedicated_allocation to allowed extensions
Alexander Galazin [Fri, 23 Jun 2017 22:50:32 +0000 (00:50 +0200)]
Add VK_KHR_dedicated_allocation to allowed extensions

Components: Vulkan
VK-GL-CTS issue: 153

Change-Id: Ia4a785bc31c4790d73375f01fbeb34d5936f7c80

7 years agoVK_KHR_dedicated_allocation: Image clears
Boris Zanin [Thu, 18 May 2017 14:49:40 +0000 (16:49 +0200)]
VK_KHR_dedicated_allocation: Image clears

Update tests:
 * dEQP-VK.api.image_clearing.*

Rename tests (add .core subgroup):
 * dEQP-VK.api.image_clearing.core.*

Add tests:
 * dEQP-VK.api.image_clearing.dedicated_allocation.*

Components: Vulkan

VK-GL-CTS issue: 153

Change-Id: Ia7d7703fb6d9818549d80b031e4e8ea2a9ecf509

7 years agoExtend dEQP-VK.api.image_clearing tests to cover layered images
Slawomir Cygan [Mon, 29 May 2017 17:23:01 +0000 (19:23 +0200)]
Extend dEQP-VK.api.image_clearing tests to cover layered images

This change adds new variang of image clearing test cases:
- *_multiple_layers
which use arrayed images and layered clears.

In the new tests variant both image views and clear operations
use layerCount smaller than `remaining` layers and non-zero
baseArrayLayer. It is expected that proper subset of layers
are cleared, while other layers are untouched.

All clear command variants (image, attachment), color formats
and image types are tested.

Affects: dEQP-VK.api.image_clearing

Components: Vulkan

VK-GL-CTS issue: 449

Change-Id: Ifedd393b14880697501df450b22740de76b6cd0c
(cherry picked from commit 1198740eef1b624f481d16302a5d311e512ba16b)

7 years agoVK_KHR_dedicated_allocation: Copies and blits
Boris Zanin [Mon, 15 May 2017 15:15:27 +0000 (17:15 +0200)]
VK_KHR_dedicated_allocation: Copies and blits

Update tests:
 * dEQP-VK.api.copy_and_blit.*

Rename tests (add .core subgroup):
 * dEQP-VK.api.copy_and_blit.core.*

Add tests:
 * dEQP-VK.api.copy_and_blit.dedicated_allocation.*

Components: Vulkan

VK-GL-CTS issue: 153

Change-Id: Ic42d141187a6fc0eade9a93f19e9cd9e821725fb

7 years agoAdd copy image to image and blit image tests with various image layouts. Refactor...
Igor Ostrowski [Mon, 2 Jan 2017 16:41:30 +0000 (17:41 +0100)]
Add copy image to image and blit image tests with various image layouts. Refactor copy and blit tests generation.

Tests took into account only optimal layout cases. Added general and mixed ones.
Structure of all copy and blit tests was too flat. Lowered granularity of test groups.

New tests:
- dEQP-VK.api.copy_and_blit.image_to_image.all_formats.*optimal_optimal*
- dEQP-VK.api.copy_and_blit.image_to_image.all_formats.*optimal_general*
- dEQP-VK.api.copy_and_blit.image_to_image.all_formats.*general_optimal*
- dEQP-VK.api.copy_and_blit.image_to_image.all_formats.*general_general*

- dEQP-VK.api.copy_and_blit.blit_image.all_formats.*optimal_optimal*
- dEQP-VK.api.copy_and_blit.blit_image.all_formats.*optimal_general*
- dEQP-VK.api.copy_and_blit.blit_image.all_formats.*general_optimal*
- dEQP-VK.api.copy_and_blit.blit_image.all_formats.*general_general*

Affected tests:
- dEQP-VK.api.copy_and_blit.*

Components: Vulkan

Change-Id: I5724bb7c0a3ccb2e36319a20671761a9b16fe4ed
(cherry picked from commit 78ba8d915b4558376b479833c862c51433cb882e)

7 years agoAdd NEAREST filtered blitting tests
Maciej Jesionowski [Tue, 27 Dec 2016 13:15:58 +0000 (14:15 +0100)]
Add NEAREST filtered blitting tests

This fixes a couple of issues with nearest filtered blitting tests
and adds them back to the mustpass.

- Corrected test case names (esp. for D/S formats)
- Modified common code used by linear cases too (shouldn't have
  an observable effect on tests)
- Used tcuTexLookupVerifier to sample source image with an offset
  that accounts for rounding errors in coordinate calculation
- Enabled nearest cases in mustpass

New tests:
- dEQP-VK.api.copy_and_blit.blit_image.all_formats.*_nearest

Modified tests:
- dEQP-VK.api.copy_and_blit.blit_image.all_formats.*

Fixes #483, #565

Change-Id: I176c2b50a656268a31f1f35fef1ff90647039727
(cherry picked from commit 396dacd30898c428105bc4f2f72b00240673f3a7)

7 years agoImprove the test generation in the copies and blitting tests
Gabor Abraham [Fri, 18 Nov 2016 10:22:53 +0000 (11:22 +0100)]
Improve the test generation in the copies and blitting tests

The generateBuffer function didn't handle the integer formats well.

Affected tests:
- dEQP-VK.api.copy_and_blit.image_to_image.all_formats.*int*
- dEQP-VK.api.copy_and_blit.blit_image.all_formats.*int*

Change-Id: I248136606d2535c176432bbc50de45e1e4e55b80
(cherry picked from commit a8efa9926e55631f2279871a07f3dfa51bf12ba5)

7 years agoVK_KHR_dedicated_allocation: Extend renderpass
Boris Zanin [Mon, 29 May 2017 14:41:31 +0000 (16:41 +0200)]
VK_KHR_dedicated_allocation: Extend renderpass

Update tests:
 * dEQP-VK.renderpass.*

Rename tests (add .suballocation subgroup):
 * dEQP-VK.renderpass.suballocation.*

Add tests:
 * dEQP-VK.renderpass.dedicated_allocation.*

Components: Vulkan

VK-GL-CTS issue: 153

Change-Id: Ibe140613592568d4388c4ded6563bc47f43ca552

7 years agoAdd render pass multisample resolve tests
Mika Isojärvi [Tue, 28 Mar 2017 20:45:01 +0000 (13:45 -0700)]
Add render pass multisample resolve tests

- Check that attachment components are resolved consistently
- Check that attachments are resolved consistently
- Check that integer formats always resolve to one of the samples
- Check that empty sample mask doesn't change values
- Check that all possible sample combinations of 1.0 and 0.0 values
  resolve to 0.5 on average.

VK-GL-CTS issues: 96
Components: Vulkan

Change-Id: I18b92ed713175cd935651575f4e48d9fd207ef00
(cherry picked from commit c8c44388f472dcbb6145b520c4a89e5ef02221b3)

7 years agoAdd multisample renderpass input attachment tests
Mika Isojärvi [Tue, 21 Mar 2017 23:12:51 +0000 (16:12 -0700)]
Add multisample renderpass input attachment tests

VK-GL-CTS issues: 96
Components: Vulkan

Change-Id: I9ea87736c82148515da3c2d95301e6302be4257d
(cherry picked from commit 35a2479cfd4c25ae820005254d7c595b0a181599)

7 years agoVK_KHR_dedicated_allocation: Extend render_to_image
Boris Zanin [Mon, 22 May 2017 13:13:23 +0000 (15:13 +0200)]
VK_KHR_dedicated_allocation: Extend render_to_image

Update tests:
 * dEQP-VK.pipeline.render_to_image.*

Rename tests (add .core subgroup):
 * dEQP-VK.pipeline.render_to_image.core.*

Add tests:
 * dEQP-VK.pipeline.render_to_image.dedicated_allocation.*

Components: Vulkan

VK-GL-CTS issue: 153

Change-Id: If4437ea7cf335f083e11d0939894391d34c5b76a

7 years agoAdd render to mipmaps tests
Maciej Jesionowski [Tue, 17 Jan 2017 15:36:33 +0000 (16:36 +0100)]
Add render to mipmaps tests

This test repeatedly draws into the same image using consecutive
mip levels as color and dept/stencil attachments. All mip levels
and array layers are exercised.

Modified tests:

dEQP-VK.pipeline.render_to_image.*

New tests:

dEQP-VK.pipeline.render_to_image.*.mipmap.*

Components: Vulkan
Vulkan CTS issue: 487, 535

Change-Id: I7e4b3c6978d069c0accc377e9ab6e9d05e8e3cc6
(cherry picked from commit 36640c9bfefdb414547c7575ec8adccf2e86263d)

7 years agoAdd max size attachments tests
Maciej Jesionowski [Tue, 17 Jan 2017 15:36:33 +0000 (16:36 +0100)]
Add max size attachments tests

This test creates very big color, and depth/stencil attachments
in all possible dimensions and layers.

Original tests in the affected group were moved to *.small.*
subgroup.

Modified tests:

dEQP-VK.pipeline.render_to_image.*.small.*

New tests:

dEQP-VK.pipeline.render_to_image.*.huge.*

Components: Vulkan
Vulkan CTS issue: 451, 535

Change-Id: I1e3bd1f7a657ff837b830bbada539a1240b1fd04
(cherry picked from commit 9c87bf6cfb1b8f99304b493a6846c15819da432a)

7 years agoVK_KHR_dedicated_allocation: Extend pipeline.image
Boris Zanin [Sun, 21 May 2017 20:21:49 +0000 (22:21 +0200)]
VK_KHR_dedicated_allocation: Extend pipeline.image

Update tests:
 * dEQP-VK.pipeline.image.*

Rename tests (add .suballocation subgroup):
 * dEQP-VK.pipeline.image.suballocation.*

Add tests:
 * dEQP-VK.pipeline.image.dedicated_allocation.*

Components: Vulkan

VK-GL-CTS issue: 153

Change-Id: I0b25c08b830a44956dd0c26da39124364dbabb89

7 years agoVK_KHR_dedicated_allocation: Memory Mapping tests
Marcin Rogucki [Mon, 12 Jun 2017 10:42:41 +0000 (12:42 +0200)]
VK_KHR_dedicated_allocation: Memory Mapping tests

Update tests:
 * dEQP-VK.memory.mapping.*

Rename tests (added .suballocation subgroups):
 * dEQP-VK.memory.mapping.suballocation.*

Add tests:
 * dEQP-VK.memory.mapping.dedicated_alloc.buffer.*
 * dEQP-VK.memory.mapping.dedicated_alloc.image.*

Components: Vulkan

VK-GL-CTS issue: 153

Change-Id: Ia593c099dc6dcd36c1b45f210c48b8bba9600728

7 years agoVK_KHR_dedicated_allocation: Buffer tests
Marcin Rogucki [Fri, 12 May 2017 09:04:19 +0000 (11:04 +0200)]
VK_KHR_dedicated_allocation: Buffer tests

Update tests:
 * dEQP-VK.api.buffer.create_buffer_*
 * dEQP-VK.api.buffer_view.create.*
 * dEQP-VK.api.buffer_view.access.*
 * dEQP-VK.api.fill_and_update_buffer.*

Rename tests (added .suballocation subgroups):
 * dEQP-VK.api.buffer.suballocation.create_buffer_*
 * dEQP-VK.api.buffer_view.create.suballocation.create_buffer_view_*
 * dEQP-VK.api.buffer_view.access.suballocation.buffer_view_memory_test_complete
 * dEQP-VK.api.buffer_view.access.suballocation.buffer_view_memory_test_partial_offset0
 * dEQP-VK.api.buffer_view.access.suballocation.buffer_view_memory_test_partial_offset1
 * dEQP-VK.api.fill_and_update_buffer.suballocation.*

Add tests:
 * dEQP-VK.api.buffer.dedicated_alloc.create_buffer_*
 * dEQP-VK.api.buffer_view.create.dedicated_alloc.create_buffer_view_*
 * dEQP-VK.api.buffer_view.access.dedicated_alloc.buffer_view_memory_test_complete_*
 * dEQP-VK.api.buffer_view.access.dedicated_alloc.buffer_view_memory_test_partial_offset0_*
 * dEQP-VK.api.buffer_view.access.dedicated_alloc.buffer_view_memory_test_partial_offset1_*
 * dEQP-VK.api.fill_and_update_buffer.dedicated_alloc.*

Components: Vulkan

VK-GL-CTS issue: 153

Change-Id: I6f73cd218f9e59a4939adf804764388edaa63279

7 years agoUse deAlign64 in api.buffer and sparse_resources
Maciej Jesionowski [Tue, 10 Jan 2017 12:15:45 +0000 (13:15 +0100)]
Use deAlign64 in api.buffer and sparse_resources

Change-Id: I087d99db106555a806c6864e67c9af12fb5c67b2
(cherry picked from commit b1d1890c88c14529c145fb9ef20b1046233e4f50)

7 years agoAdd deInt64 alignment functions to delibs
Maciej Jesionowski [Tue, 10 Jan 2017 12:09:14 +0000 (13:09 +0100)]
Add deInt64 alignment functions to delibs

Change-Id: Icf66e7157ae6e972e0d7ef19486fa5b776da1eb0
(cherry picked from commit 412a848d25e4a97b343904f8beace2c3690267c8)

7 years agoDefinitions for VK_KHR_dedicated_allocation
Boris Zanin [Thu, 18 May 2017 06:45:39 +0000 (08:45 +0200)]
Definitions for VK_KHR_dedicated_allocation

Add definitions for VK_KHR_dedicated_allocation.

Components: Vulkan

VK-GL-CTS issue: 153

Change-Id: I062e3eb03edfd4d785d5d93775915541bcd4aa02

7 years agoAdd API tests for VK_KHR_external_fence* extensions
Mika Isojärvi [Mon, 15 May 2017 21:58:26 +0000 (14:58 -0700)]
Add API tests for VK_KHR_external_fence* extensions

New Tests:
dEQP-VK.api.external.fence.*

VK-GL-CTS issues: 119
Components: Vulkan

Change-Id: Ie812cd66b7d7aa5731338b050c23bfe805583ef6

7 years agoTest for VK_KHR_win32_keyed_mutex
Piers Daniell [Wed, 17 May 2017 20:39:05 +0000 (14:39 -0600)]
Test for VK_KHR_win32_keyed_mutex

This test adds coverage for VK_KHR_win32_keyed_mutex. It also depends
on the following extensions:

- VK_KHR_get_physical_device_properties2
- VK_KHR_external_memory_capabilities
- VK_KHR_external_memory
- VK_KHR_external_memory_win32
- VK_KHR_dedicated_allocation
- VK_KHR_get_memory_requirements2

New tests:

dEQP-VK.synchronization.win32_keyed_mutex.*

Components: Vulkan

VK-GL-CTS issue: 358

Change-Id: Ib247f17514f1e64c1fc43918fe033530bb981a05

7 years agoAPI tests for the VK_KHR_external_* extensions
Pyry Haulos [Wed, 28 Sep 2016 19:46:55 +0000 (12:46 -0700)]
API tests for the VK_KHR_external_* extensions

New tests:

dEQP-VK.api.external.*
dEQP-VK.synchronization.cross_instance.*

VK-GL-CTS issues: 107, 108, 109
Components: Vulkan

Contains the following commits:
08b8e2b72dd89548f9877a8ed5bba7c04c1d9732
9d154edc6a44aaccd0a913a17d44689cfe472ab2
2977726d2eb00edb145418f196e355671ed53ca5
1d626a0d2d66ef34d3caeecb6e5e2f9c81f5e788
a56c487e346192c74fb17f719aad18a71d667478
c918a652c559028f0f4893962e32d3e52970fd4f

Change-Id: I9b2e838c7e7143996f0dc49dabe48346416716ff

7 years agodefer device creation until after feature checks
Daniel Koch [Wed, 21 Jun 2017 17:14:44 +0000 (13:14 -0400)]
defer device creation until after feature checks

VK-GL-CTS Issue: 523
Component: Vulkan

Affects:
dEQP-VK.spirv_assembly.instruction.compute.16bit_storage.*
dEQP-VK.spirv_assembly.instruction.graphics.16bit_storage.*

Change-Id: Ife678bf4e70f5d312f9276356bc288f7d31f15f8
(cherry picked from commit 545cb418b912430bce80ae69d06f669114b4211e)

7 years agoFix 16bit_storage out of bounds buffer accesses
Daniel Koch [Wed, 21 Jun 2017 14:21:04 +0000 (10:21 -0400)]
Fix 16bit_storage out of bounds buffer accesses

VK-GL-CTS Issue: 518
Component: Vulkan

Affects:
dEQP-VK.spirv_assembly.instruction.compute.16bit_storage.push_constant_16_to_32.vector_sint
dEQP-VK.spirv_assembly.instruction.compute.16bit_storage.push_constant_16_to_32.vector_uint

Change-Id: I33d3c94388a8eacac78a617ba7711b3688701323
(cherry picked from commit 5bad3cacecc5de4868365cb854f9433c79770c5f)

7 years agoMerge vk-gl-cts/vulkan-cts-1.0.2 into vk-gl-cts/vulkan-cts-1.0.2-confidential
Alexander Galazin [Thu, 22 Jun 2017 02:28:13 +0000 (04:28 +0200)]
Merge vk-gl-cts/vulkan-cts-1.0.2 into vk-gl-cts/vulkan-cts-1.0.2-confidential

Change-Id: I842fde2a18d086da72b78b0b3bded26fd2b2de4b

7 years agoMerge vk-gl-cts/vulkan-cts-1.0.1 into vk-gl-cts/vulkan-cts-1.0.2
Alexander Galazin [Thu, 22 Jun 2017 02:28:12 +0000 (04:28 +0200)]
Merge vk-gl-cts/vulkan-cts-1.0.1 into vk-gl-cts/vulkan-cts-1.0.2

Change-Id: I6400944995d9bcb06801ab0f3ada643ed9d914ed

7 years agoCheck for shaderFloat64 before creating shaders
Alex Walters [Tue, 20 Jun 2017 11:27:11 +0000 (12:27 +0100)]
Check for shaderFloat64 before creating shaders

Shader is using double types for F64 vertex attribute cases without
checking that the shader feature is supported.

The test was eventually making this check, but not until setting up
the vertex attributes themselves. This change also avoid creating some
other resources before determining that the test is unsupported.

Affects:

dEQP-VK.pipeline.vertex_input.single_attribute*64*

Components: Vulkan

VK-GL-CTS issue: 459

Change-Id: I6142af4e1a64aac233d6890285f81db327589800

7 years agoFix regressions from 38cdcf98c372cb8af8
Iago Toral Quiroga [Mon, 19 Jun 2017 09:50:54 +0000 (11:50 +0200)]
Fix regressions from 38cdcf98c372cb8af8

That commit merged together a number of changes
and it seems that it messed up the spir-v for the
opconstantnull and opundef tests.

Components: Vulkan
Vk-GL-CTS issue: 511

Affects:
dEQP-VK.spirv_assembly.instruction.compute.opconstantnull.*
dEQP-VK.spirv_assembly.instruction.compute.opundef.*

Change-Id: I0810dd9d75aeebb993f2f595e20c90fde10cf899

7 years agoAdd test for VK_KHR_get_memory_requirements2
Boris Zanin [Sun, 7 May 2017 12:21:28 +0000 (14:21 +0200)]
Add test for VK_KHR_get_memory_requirements2

Update tests:
 * dEQP-VK.memory.requirements.buffer.*
 * dEQP-VK.memory.requirements.image.*

Rename tests (add .core subgroup):
 * dEQP-VK.memory.requirements.core.buffer.*
 * dEQP-VK.memory.requirements.core.image.*

Add tests:
 * dEQP-VK.memory.requirements.extended.buffer.*
 * dEQP-VK.memory.requirements.extended.image.*

Components: Vulkan

VK-GL-CTS issue: 391

Change-Id: I307bbf361d36d5f277ff70ce3204d67f8eb59871
(cherry picked from commit 140028f310bf6116a2c9063a5565fae6bf5152bb)

7 years agoAdd tests for the VK_KHR_16bit_storage extension
Lei Zhang [Wed, 1 Mar 2017 17:30:20 +0000 (12:30 -0500)]
Add tests for the VK_KHR_16bit_storage extension

* Four capabilities
  * StorageUniform16
  * StorageUniformBufferBlock16
  * StorageInputOutput16
  * StoragePushConstant16
* 16bit -> 32bit and 32bit -> 16bit
* integers and floats
* vectors and matrices of integers and floats

Component: Vulkan

(cherry picked from commit e62c7b595cbf79617555faf46eb9085bb7d11cb1)

Contains following two follow-up patches:
 * d41f0578749db200124a933a0bc6ace35881d02d (check against linea/optimalTilingFeatures)
 * a24bed1ac5b06e6ef87da3b6f9bc103f5cdf463f (allow flusing denormals)
 * ff75accb8c0634ddfa920462d864a58f12a76198 (add missing extensions)

Change-Id: I51f59d9a7d984f5190c8d60752454b963a039c2e