platform/upstream/VK-GL-CTS.git
6 years agoFix gl_FragData usage in draw_buffers test
Piotr Byszewski [Tue, 23 Jan 2018 13:29:34 +0000 (14:29 +0100)]
Fix gl_FragData usage in draw_buffers test

ES3 specification states that "if some, but not all user-defined
output variables are written, the values of fragment colors
corresponding to unwritten variables are (...) undefined".

Components: OpenGL

VK-GL-CTS issue: 291

Affects:
dEQP-GLES3.functional.shaders.fragdata.draw_buffers

Change-Id: I83f1904e9cf905634a421b6fc5530e0e0510ccb1

6 years agoRevert "Fix texture lookups tests"
Alexander Galazin [Thu, 22 Feb 2018 17:11:04 +0000 (12:11 -0500)]
Revert "Fix texture lookups tests"

This reverts commit 0dd89ea7126f19cca176ffaa6bb47a259671570f.

Change-Id: I3612c45a6b85819e4cc3f5dcef992743f3964c65

6 years agoUse framebuffer with a compatible render pass
Paavo Pessi [Fri, 9 Feb 2018 14:33:16 +0000 (16:33 +0200)]
Use framebuffer with a compatible render pass

This test has the same functionality as
VkLayerTest.RenderPassInUseDestroyedSignaled, which breaks some
shipping drivers in the validation tests.

The test creates two compatible render passes having differing image
layouts and load/store operations. The first render pass is used to
create a framebuffer and the framebuffer is used to begin the second
render pass.

The test passes as long as no crash happens.

New tests:

dEQP-VK.api.pipeline.renderpass.framebuffer_compatible_renderpass

Components: Vulkan

VK-GL-CTS issue: 830

Change-Id: I0b47c8620c06ac3d0ca5288f642908de6dff656b

6 years agoExtend combined image sampler tests
Paavo Pessi [Tue, 16 Jan 2018 13:16:00 +0000 (15:16 +0200)]
Extend combined image sampler tests

Two types of new tests were added. The first type has a single combined
image sampler descriptor which is accessed in shader with separate
image and sampler variables using the same binding value.

The second type has two combined image sampler descriptors with
separate image and sampler variables. Sampler from the first descriptor
and image from the second descriptor are used to form a new sampled
image.

New tests:

dEQP-VK.spirv_assembly.instruction.compute.image_sampler.imagefetch.combined_image_sampler_separate_variables.*
dEQP-VK.spirv_assembly.instruction.compute.image_sampler.imagefetch.combined_image_sampler_separate_descriptors.*
dEQP-VK.spirv_assembly.instruction.compute.image_sampler.imagesample.combined_image_sampler_separate_variables.*
dEQP-VK.spirv_assembly.instruction.compute.image_sampler.imagesample.combined_image_sampler_separate_descriptors.*
dEQP-VK.spirv_assembly.instruction.graphics.image_sampler.imagefetch.combined_image_sampler_separate_variables.*
dEQP-VK.spirv_assembly.instruction.graphics.image_sampler.imagefetch.combined_image_sampler_separate_descriptors.*
dEQP-VK.spirv_assembly.instruction.graphics.image_sampler.imagesample.combined_image_sampler_separate_variables.*
dEQP-VK.spirv_assembly.instruction.graphics.image_sampler.imagesample.combined_image_sampler_separate_descriptors.*

Components: Vulkan

VK-GL-CTS issue: 940
VK-GL-CTS public issue: 75

Change-Id: I56fc049001f3ac4d59cdaa7c28749ba57c46ce29

6 years agoNew dEQP-VK.ycbcr.conversion.one_to_one subgroup
Panagiotis Apostolou [Wed, 17 Jan 2018 09:45:06 +0000 (10:45 +0100)]
New dEQP-VK.ycbcr.conversion.one_to_one subgroup

Added subgroup one_to_one in dEQP-VK.ycbcr.conversion which adds 16 tests. The
purspose is to test rendering into a destination with the same dimensions
as the sampled YCbCr image (1:1 mapping).

New tests:
dEQP-VK.ycbcr.conversion.one_to_one.implicit_nearest_16x16_*
dEQP-VK.ycbcr.conversion.one_to_one.implicit_nearest_20x12_*

Components: Vulkan

VK-GL-CTS issue: 980

Change-Id: Ifb7d3cfa8fa4ec7dd99094ef94be680a53c7d5e7

6 years agoSuppress irrelevant packed pixels log
Piotr Byszewski [Fri, 16 Feb 2018 17:06:36 +0000 (18:06 +0100)]
Suppress irrelevant packed pixels log

PackedPixelsTests log statistics during test destruction. That log
is needed only when therea are changes applyed to packed pixels so
there is no need for it to be printed during every glcts execution.

Change-Id: I4be85db2fa31c4218bb3715c32f46cf09ae2e0a5
Components: OpenGL

6 years agoTest internal formats conversions
Piotr Byszewski [Mon, 5 Feb 2018 14:42:27 +0000 (15:42 +0100)]
Test internal formats conversions

This change contains a port of GTFTestCopyTexImageConversions.c
This test verifies that glCopyTexImage2D() implementation accepts
internalformats that are compatible with effective internalformat
of current read buffer.

Components: OpenGL

VK-GL-CTS issue: 978

Affects:
KHR-GLES3.copy_tex_image_conversions.*

Change-Id: Ic51c5bb758debe2e1aaa01d6d110c89310a4e21e

6 years agoFix negative texture and fbo attachment tests
Piotr Byszewski [Mon, 22 Jan 2018 13:31:08 +0000 (14:31 +0100)]
Fix negative texture and fbo attachment tests

Negative GetFramebufferAttachmentParameteriv test
for ES2 properly handles case when it is executed on
ES3 capable hardware.
This change also resolves enum issue for negative
TexSubImage2D test. Invalid enum caused generation
of different error code then expected.

Components: OpenGL

VK-GL-CTS issue: 316

Affects:
dEQP-GLES2.functional.negative_api.texture.texsubimage2d_neg_wdt_hgt
dEQP-GLES2.functional.negative_api.state.get_framebuffer_attachment_parameteriv

Change-Id: Ib22eeba95fca7af3a66ab25934bdaf88362de2b2

6 years agoMerge vk-gl-cts/vulkan-cts-1.0.3 into vk-gl-cts/master
Alexander Galazin [Thu, 22 Feb 2018 12:54:58 +0000 (13:54 +0100)]
Merge vk-gl-cts/vulkan-cts-1.0.3 into vk-gl-cts/master

Change-Id: Ie121814de1999c5d3f67080646ea53228f30f7d3

6 years agoFix ES2 attachement query test
Piotr Byszewski [Thu, 18 Jan 2018 11:40:35 +0000 (12:40 +0100)]
Fix ES2 attachement query test

Error codes changed for ES3 and because of that different
version of test should be used when ES2 context is created
on ES3 compatible hardware.

Components: OpenGL

VK-GL-CTS issue: 287

Affects:
dEQP-GLES2.functional.fbo.api.attachment_query_empty_fbo

Change-Id: I04cb2f4796892d166d56ea0b9584401af3fc3363

6 years agoFix cube map filtering and wrap tests
Piotr Byszewski [Fri, 26 Jan 2018 16:34:24 +0000 (17:34 +0100)]
Fix cube map filtering and wrap tests

Tests were adjusted so that they also work correctly on
ES3 capable hardware.

Components: OpenGL

VK-GL-CTS issue: 285

Affects:
dEQP-GLES2.functional.texture.vertex.cube.filtering.*
dEQP-GLES2.functional.texture.vertex.cube.wrap.*

Change-Id: I7a8b2511dd6eaff3038c6ace0481b96e0b918d66

6 years agoUpdate AOSP mustpass for flush/wait test.
Nicolas Capens [Thu, 25 Jan 2018 16:58:26 +0000 (16:58 +0000)]
Update AOSP mustpass for flush/wait test.

The dEQP-GLES3.functional.flush_finish.flush_wait test now produces a
CompatibilityWarning instead of a Failure if the (overly strict) test
assumptions aren't met. Hence it can be added back to the mustpass set.

See:
https://android-review.googlesource.com/c/platform/external/deqp/+/600456

VK-GL-CTS issue: 975
Google bug: b/71858368
Khronos bug: 13916
internal bug: 20558284
Components: AOSP
Affects: dEQP-GLES2.functional.flush_finish.*,
dEQP-GLES3.functional.flush_finish.*

Change-Id: I3ac84b6f95986dac95b9a8e5ccff95fd384c096c

6 years agoHandle corner case in random shader generator
Piotr Byszewski [Fri, 26 Jan 2018 10:18:53 +0000 (11:18 +0100)]
Handle corner case in random shader generator

Comparision of floats with the same value in reference renderer
does not always produce the same result due to varyings
precision error. This patch resolves this issue by adding
epsilon to one of the floats.

Components: OpenGL

VK-GL-CTS issue: 286

Affects:
dEQP-GLES2.functional.fragment_ops.interaction.basic_shader.*

Change-Id: I4310dcee8ace4e39c66a744901501ee9ccfceafc

6 years agoMerge vk-gl-cts/vulkan-cts-1.0.2 into vk-gl-cts/vulkan-cts-1.0.3
Alexander Galazin [Thu, 22 Feb 2018 11:27:36 +0000 (12:27 +0100)]
Merge vk-gl-cts/vulkan-cts-1.0.2 into vk-gl-cts/vulkan-cts-1.0.3

Change-Id: Icb528802155f2ffdfe35e23f84a35403a29acd74

6 years agoAdd tests for texture*ClampARB and sparseTexture*ClampARB.
Ari Suonpaa [Tue, 12 Sep 2017 08:10:01 +0000 (11:10 +0300)]
Add tests for texture*ClampARB and sparseTexture*ClampARB.

Extended glsl.texture_functions tests to include texture*ClampARB
and sparseTexture*ClampARB functions.

Affects:

dEQP-VK.glsl.texture_functions.texture*clamp.*

Components: Vulkan

VK-GL-CTS issue: 86

Change-Id: Id080404fe2f0e849b5d5b6c5a84481794cb3ce3e

6 years agoFix invalid memory semantics in barrier tests
Andrey Tuganov [Mon, 5 Feb 2018 17:14:40 +0000 (12:14 -0500)]
Fix invalid  memory semantics in barrier tests

The tests were breaking the rule:
"If the semantics for OpControlBarrier is not None,
then it must include at least one storage class."

https://www.khronos.org/registry/vulkan/specs/1.0/html/vkspec.html#spirvenv-module-validation

Affects: dEQP-VK.spirv_assembly.instruction.graphics.barrier.*
Components: Vulkan

VK-GL-CTS issue: 989

Change-Id: I3a1d42ae6f0a6ca63e3f32b76f09fa736ff49dc0

6 years agoFix low memory in dedicated_alloc buffer tests
Tom Cooper [Mon, 12 Feb 2018 16:20:58 +0000 (16:20 +0000)]
Fix low memory in dedicated_alloc buffer tests

Observe platform memory limits to avoid low memory conditions.

Components: Vulkan

VK-GL-CTS issue: 1008

Affects: dEQP-VK.api.buffer.dedicated_alloc.create_buffer_*

Change-Id: Ib184b648126e8cb6e1acff533447a86be9a1a612

6 years agoTest using a pipeline whose render pass has been destroyed
Paavo Pessi [Wed, 7 Feb 2018 09:22:39 +0000 (11:22 +0200)]
Test using a pipeline whose render pass has been destroyed

This test has the same functionality as
VkPositiveLayerTest.DestroyPipelineRenderPass.

The test creates two compatible render passes. The first one is used
to create the graphics pipeline and the second one is used for
everything else. The first render pass is destroyed while the second
render pass is active and the graphics pipeline is bound to a
command buffer.

The test passes as long as no crash happens.

New tests:

dEQP-VK.api.pipeline.renderpass.destroy_pipeline_renderpass

Components: Vulkan

VK-GL-CTS issue: 833

Change-Id: I7eff6595da6dcfacfe8c49b14c2f9a36d5436088

6 years agoCreate Graphics tests for OpName
Hernan Liatis [Tue, 30 Jan 2018 18:19:08 +0000 (10:19 -0800)]
Create Graphics tests for OpName

These tests make sure that OpName has no impact on the semantics of
graphics kernels. Note that the vertex shader template
(makeVertexShaderAssembly) changes %main to %BP_main.

New tests:
dEQP-VK.spirv_assembly.instruction.graphics.opname.*

Components: Vulkan

VK-GL-CTS issue: 936
VK-GL-CTS public issue: 76

Change-Id: I2c15b9a8cc9d1482548c32bf7f1acf8d02fc2e89

6 years agoAdd more cases for block/non-block uniforms match
Juan A. Suarez Romero [Tue, 30 Jan 2018 09:55:40 +0000 (10:55 +0100)]
Add more cases for block/non-block uniforms match

Cover more situations as described in GLSL 3.20 spec, section 4.3.9.

- It is a link-error when using the same name inside a block with non
instance name and outside a block, but it is correct if the block has
instance name.

- It is a link-error when using the same name inside two different
blocks with non instance name.

Components: OpenGL

VK-GL-CTS issue: 972

Affects:
KHR-GLES3.shaders.uniform_block.common.name_matching
KHR-GL33.shaders.uniform_block.common.name_matching

Change-Id: Ie91300685e807774a9cc9bbb9139936133a8ae1c

6 years agoFix texture lookups tests
Piotr Byszewski [Mon, 29 Jan 2018 08:58:50 +0000 (09:58 +0100)]
Fix texture lookups tests

Some shaders didn't compile because of use of reserved word
textureCubeLod. This patch fixes this by checking if
ES implementation is ES3 capable and adjusting the shaders
generation parameters accordingly.

Components: OpenGL

VK-GL-CTS issue: 283

Affects:
dEQP-GLES2.functional.shaders.random.texture.vertex.*

Change-Id: Ib1e9983a9503780f992dcd00e8dc380a4f01bef4

6 years agoFix invalid_assign_to_1 fragdata tests
Piotr Byszewski [Tue, 30 Jan 2018 14:19:34 +0000 (15:19 +0100)]
Fix invalid_assign_to_1 fragdata tests

For ES3 capable hardware compilation of shaders in
invalid_assign_to_1 test succeeds resulting in test failure.
This patch resolves that by adding only_glsl_es_100_support
and exactly_one_draw_buffer flags that indicate that test
shouldn't be executed on ES3 capable hardwere or on a
implementation that supports more then one draw buffer.
This change also removes redundant CaseRequirement structure
and parses requirements directly to ShaderCaseSpecification.

Components: OpenGL

VK-GL-CTS issue: 282

Affects:
dEQP-GLES2.functional.shaders.fragdata.invalid_assign_to_1
dEQP-GLES2.functional.shaders.*
dEQP-GLES3.functional.shaders.fragdata.invalid_assign_to_1
dEQP-GLES3.functional.shaders.*

Change-Id: I44949fde7ac9bc724965ec166ed55433c91857c2

6 years agoFix texturecubelod test
Piotr Byszewski [Thu, 1 Feb 2018 12:08:10 +0000 (13:08 +0100)]
Fix texturecubelod test

This patch fixes issue with validation of texturecubelod
test result. Issue happened when test was executed on ES3
capable hardware.

Components: OpenGL

VK-GL-CTS issue: 280

Affects:
dEQP-GLES2.functional.shaders.texture_functions.vertex.*

Change-Id: I92d81ca93cb84785ea806155d0436f167c4fbf31

6 years agoCheck for depth/stencil buffer in default FBO
Juan A. Suarez Romero [Mon, 15 Jan 2018 11:10:46 +0000 (11:10 +0000)]
Check for depth/stencil buffer in default FBO

The affected tests invoke gl.getNamedFramebufferAttachmentParameteriv()
with GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE to get the depth bits used in
the default FBO. And something similar is done for the stencil bits.

But wrongly it assumes that if the FBO does not have an associated depth
or stencil buffer, it would return 0. Rather, this function returns an
error if it is invoked in a FBO without a depth/stencil buffer attached.

So better check first if the default FBO has a depth/stencil buffer
attached, and if so then invoke the above functions to get the
depth/stencil bits.

Components: OpenGL

VK-GL-CTS issue: 969

Affects:
KHR-*.internalformat.renderbuffer.*

Change-Id: I74d28d5d089790fed4dd2728cb5143e7c03d7442

6 years agoAdded image blit tests with multi-part image lock
Jari Komppa [Wed, 3 Jan 2018 11:00:55 +0000 (13:00 +0200)]
Added image blit tests with multi-part image lock

Added versions of the image blitting tests that lock the image resource
in multiple parts to stress the VK_REMAINING_MIP_LEVELS and
VK_REMAINING_ARRAY_LAYERS functionality.

Affects:

dEQP-VK.api.copy_and_blit.core.blit_image.all_formats.generate_mipmaps.from_previous_level.*

Components: Vulkan

VK-GL-CTS issue: 901

Change-Id: Ia7f80a0ff1b432af8fe4e032f7e6524785c90bf8

6 years agoAdd API info tests for YCbCr formats
Paavo Pessi [Fri, 26 Jan 2018 13:33:37 +0000 (15:33 +0200)]
Add API info tests for YCbCr formats

The API feature info tests were extended to query physical device's
image format capabilities using YCbCr formats.

New tests:
dEQP-VK.api.info.image_format_properties.2d.*
dEQP-VK.api.info.image_format_properties2.2d.*

Components: Vulkan

VK-GL-CTS issue: 961

Change-Id: I04b948ff3f3f2af809c87c5f6c251385e5bba24f

6 years agoFix TCS negative test
Piotr Byszewski [Tue, 23 Jan 2018 09:43:37 +0000 (10:43 +0100)]
Fix TCS negative test

One of three tests that are checking incorrectly sized tessellation
control output array was actually correct. This is fixed by changing
array size to value that is small then layout declaration. Remaining
two tests check if compilation fails when value is greater then
layout declaration.

Components: OpenGL

VK-GL-CTS issue: 297

Affects:
dEQP-GLES31.functional.tessellation.user_defined_io.negative.es32.per_vertex_incorrect_control_explicit_output_array_size_1

Change-Id: I3f06e36ab8bab4eae541204bdab5db1f5d698ff2

6 years agoYCbCr: go through the correct location ranges when sampling
Lionel Landwerlin [Fri, 9 Feb 2018 15:20:25 +0000 (15:20 +0000)]
YCbCr: go through the correct location ranges when sampling

Affects: dEQP-VK.ycbcr.conversion.*
Components: Vulkan
VK-GL-CTS issue: 1005

Change-Id: Ifac1026e82e1bb48195fc7ab5429951a15324042

6 years agoAdd descriptor set layout lifetime tests
Paavo Pessi [Mon, 22 Jan 2018 12:23:53 +0000 (14:23 +0200)]
Add descriptor set layout lifetime tests

Test was added to verify that implementation honors descriptor set
layout lifetime. Descriptor set layout is destroyed immediately
after creating the pipeline layout, prior to creating the pipeline.

New tests:
dEQP-VK.api.descriptor_set.descriptor_set_layout_lifetime.graphics
dEQP-VK.api.descriptor_set.descriptor_set_layout_lifetime.compute

Components: Vulkan

VK-GL-CTS issue: 856

Change-Id: I978675ddea30e3b312db4bc65da77c26149cc2df

6 years agoUpdate Vulkan CTS Readme
Alexander Galazin [Tue, 6 Feb 2018 12:39:17 +0000 (13:39 +0100)]
Update Vulkan CTS Readme

Update Vulkan CTS Readme to point to 1.0.3 mustpass

Components: Vulkan

Change-Id: I4d22a233418363476c149e22b5358e8052083f2b

6 years agoRemove max expected query result in pipeline statistics tests
Maciej Jesionowski [Wed, 29 Nov 2017 13:07:42 +0000 (14:07 +0100)]
Remove max expected query result in pipeline statistics tests

Query result is implementation-defined and some internal rendering
operations may count towards the results of queries.

Affects: dEQP-VK.query_pool.statistics_query.*

Components: Vulkan

VK-GL-CTS issue: 876

Change-Id: I0c86e1101c1ae00049623bd49dfe0c4de5798832
(cherry picked from commit d6b9480d2d7bc67d7ef9522f001f1367f08fbaea)

6 years agoAdded optimization avoiding shader disassembly
Jari Komppa [Fri, 2 Feb 2018 13:00:22 +0000 (15:00 +0200)]
Added optimization avoiding shader disassembly

This change avoids disassembling shaders if the
--deqp-log-shader-sources=disable option is used.

The default functionality disassembles everything and discards the
result if the shader source logging is disabled. This change skips the
disassembly too.

The performance gain for this is approximately 10% of runtime.

The timings are based on assumption of debug build and having the
shader cache with zero cache misses.

Affects:

none

Components: Framework

Vk-GL-CTS isue: 899

Change-Id: I36eda000a94400d8f50a565c7ef30f4170d51c83

6 years agoCreate Compute tests for OpName
Hernan Liatis [Wed, 24 Jan 2018 01:47:07 +0000 (17:47 -0800)]
Create Compute tests for OpName

These tests makes sure that OpName has no impact on the semantics of
compute kernels.

New tests:
dEQP-VK.spirv_assembly.instruction.compute.opname.entry_main.*
dEQP-VK.spirv_assembly.instruction.compute.opname.entry_rdc.*

Components: Vulkan

VK-GL-CTS issue: 936
VK-GL-CTS public issue: 76

Change-Id: I1ba6b3e47fe838d9ecc721daa78a869bfcf8bc8f

6 years agoTest updating set with an empty binding
Paavo Pessi [Thu, 11 Jan 2018 09:52:45 +0000 (11:52 +0200)]
Test updating set with an empty binding

This test matches VkPositiveLayerTest.EmptyDescriptorUpdateTest and
updates the last descriptor in a set that includes an empty binding.
The test doesn't check any results and it passes as long as no crash
happens.

New tests:
dEQP-VK.binding_model.descriptor_update.empty_descriptor.uniform_buffer

Components: Vulkan

VK-GL-CTS issue: 831

Change-Id: I795e08fa516d42d980d7b3b8baba6a1ba4a29ec7

6 years agoTest discontiguous descriptor sets
Paavo Pessi [Mon, 15 Jan 2018 12:40:38 +0000 (14:40 +0200)]
Test discontiguous descriptor sets

Test two descriptor sets bound to discontiguous set numbers with
different descriptor types and shader stages.

New tests:
dEQP-VK.binding_model.shader_access.*.multiple_discontiguous_descriptor_sets.*

Components: Vulkan

VK-GL-CTS issue: 902

Change-Id: I81b94e5a319738411958f93a02a27ba80b5dbbb8

6 years agoTest creating device when out of host memory
Mika Väinölä [Thu, 18 Jan 2018 13:02:00 +0000 (15:02 +0200)]
Test creating device when out of host memory

This test matches Allocation.CreateInstanceDeviceIntentionalAllocFail
found in loader validation tests which fails on some shipping drivers.

New tests:
dEQP-VK.api.device_init.create_instance_device_intentional_alloc_fail

Components: Vulkan

VK-GL-CTS issue: 823

Change-Id: I8a9d3bce86beac81fc53f2d58a002dee2318610d

6 years agoUnpackHalf2x16: consistent subnormal 16bit values
Marcin Rogucki [Thu, 25 Jan 2018 16:18:20 +0000 (17:18 +0100)]
UnpackHalf2x16: consistent subnormal 16bit values

Added subnormal values to the test.
3 subnormal special values added:
 - mantissa LSB set
 - mantissa MSB set
 - all mantissa bits set
15 randomly generated subnormal values added.

Test passes iff:
- all normal values are bit by bit matching
and
    - all subnormal values are bit by bit matching
    or
    - all subnormal values are flushed as zeros

Components: Vulkan

VK-GL-CTS issue: 798

Changes:
dEQP-VK.glsl.builtin.function.pack_unpack.unpackhalf2x16_*

Change-Id: Ib211ec70fac00f94d8dd3496c36a34f4ae17a593

6 years agoAdd operation tests for 64-bit integers
Juan A. Suarez Romero [Thu, 25 Jan 2018 12:23:18 +0000 (12:23 +0000)]
Add operation tests for 64-bit integers

This create tests for SPIR-V arithmetic operations that deal with
integer types.

Right now it covers 32-bit and 64-bit signed and unsigned integers, but
it is designed to easily extend to other types, like 16-bit integers.

New tests:
dEQP-VK.spirv_assembly.type.*

VK-GL-CTS issue: 187

Components: Vulkan

Change-Id: Ib84024019d33bac5026cba5e39bc7247c15ba5bb

6 years agoMerge vk-gl-cts/vulkan-cts-1.0.3 into vk-gl-cts/master
Alexander Galazin [Mon, 5 Feb 2018 12:13:47 +0000 (13:13 +0100)]
Merge vk-gl-cts/vulkan-cts-1.0.3 into vk-gl-cts/master

Change-Id: I5197455fbb3dc596087f7e9ca344ef67e011455b

6 years agoMerge vk-gl-cts/vulkan-cts-1.0.2 into vk-gl-cts/vulkan-cts-1.0.3
Alexander Galazin [Mon, 5 Feb 2018 12:13:42 +0000 (13:13 +0100)]
Merge vk-gl-cts/vulkan-cts-1.0.2 into vk-gl-cts/vulkan-cts-1.0.3

Change-Id: If7dc3d47395a03af3a34987f08c873c13effd366

6 years agoFix ES2 rbo clear tests for RGB5_A1
Piotr Byszewski [Fri, 19 Jan 2018 14:15:07 +0000 (15:15 +0100)]
Fix ES2 rbo clear tests for RGB5_A1

color_clear and stencil_clear tests for GL_RGB5_A1 format
should not perform validation for alpha channel as
test thresholds for this channel do not account for dithering.

Components: OpenGL

VK-GL-CTS issue: 348

Affects:
dEQP-GLES2.functional.fbo.render.color_clear.*
dEQP-GLES2.functional.fbo.render.stencil_clear.*

Change-Id: I72fb6ec98dacfe9b2ad8178d0a01f7bb0bee01fc

6 years agoFix use of sparse binding queue on default context
Daniel Koch [Wed, 31 Jan 2018 22:22:15 +0000 (17:22 -0500)]
Fix use of sparse binding queue on default context

Avoid trying to create two separate queues
when the queueIndex and sparseQueueIndex are the same,
as this violates valid usage which states:
"The queueFamilyIndex member of each element of pQueueCreateInfos
 must be unique within pQueueCreateInfos"

Affects:
All vulkan tests
The forerunner change claimed it only affected the following specifically:
dEQP-VK.texture.shadow.*
dEQP-VK.renderpass.sparserendertarget.*

Component: Vuklan
VK-GL-CTS issue: 898, 964

Change-Id: I342e11f9a63eab875336b8078890e677a5d29a2d

6 years agoPass in proper pWaitDstStageMask in vktWsiSharedPresentableImageTests
Vamsidhar Gaddam [Wed, 31 Jan 2018 10:23:48 +0000 (11:23 +0100)]
Pass in proper pWaitDstStageMask in vktWsiSharedPresentableImageTests

One of the submitInfos for a queue submit had
a semaphore passed in without passing in any stage mask. This is a
spec violation.

Affects:

dEQP-VK.wsi.android.shared_presentable_image.*

Components: Vulkan

VK-GL-CTS issue: 974

Change-Id: Iee2ea838e971a3610f44b8c1f765869a8a21fedb

6 years agoSpec relaxation for YCbCr Implicit chroma reconstruction
Panagiotis Apostolou [Wed, 17 Jan 2018 09:01:58 +0000 (10:01 +0100)]
Spec relaxation for YCbCr Implicit chroma reconstruction

Incorporates spec relaxation in the YCbCr tests which describes that when
doing implicit reconstruction with nearest chroma filtering, an
implementation may behave as if both xChromaOffset and yChromaOffset were
VK_CHROMA_LOCATION_MIDPOINT.

Tests affected:
dEQP-VK.ycbcr.conversion.*

Components: Vulkan

VK-GL-CTS issue: 979

Change-Id: I10e83d2f5845c3e74673aa9e42fc4f0950f9e6cd

6 years agoNote that git/python/cmake must be in PATH
Alexander Galazin [Thu, 1 Feb 2018 11:48:25 +0000 (12:48 +0100)]
Note that git/python/cmake must be in PATH

Components: Vulkan

VK-GL-CTS issue: 931

Change-Id: I92197ee4e6b03ff3e220936f73ec73e6808be792

6 years agoMerge vk-gl-cts/vulkan-cts-1.0.3 into vk-gl-cts/master
Alexander Galazin [Fri, 2 Feb 2018 15:37:21 +0000 (16:37 +0100)]
Merge vk-gl-cts/vulkan-cts-1.0.3 into vk-gl-cts/master

Change-Id: I0ec19f7ba49c9c543cc3a0268779af0768e06d49

6 years agoAdd sparse image support for pipeline multisample tests.
Ari Suonpaa [Tue, 26 Sep 2017 07:51:57 +0000 (10:51 +0300)]
Add sparse image support for pipeline multisample tests.

Extended pipeline multisample tests to support source images that
are using sparse binding.

Affects:

dEQP-VK.pipeline.multisample.*

Components: Vulkan

VK-GL-CTS issue: 101

Change-Id: Ice9624de3e88d0a5daf6574f257714fa83db0877

6 years agoReturn UNSUPPORTED if no compressed textures available
Juan A. Suarez Romero [Thu, 11 Jan 2018 12:52:42 +0000 (13:52 +0100)]
Return UNSUPPORTED if no compressed textures available

When testing compressed textures, return NOT_SUPPORTED if none of the
compressed textures under testing are available, instead of returning
FAIL.

Components: OpenGL

VK-GL-CTS issue: 943

Affects:
KHR-GLES2.texture_3d.compressed_texture.negative_compressed_*

Change-Id: I77d18fdbb86fef88c680f63f7fe522ed079887aa

6 years agogl_spirv: Correct ARB_gl_spirv check function type
Andres Gomez [Thu, 1 Feb 2018 10:03:21 +0000 (12:03 +0200)]
gl_spirv: Correct ARB_gl_spirv check function type

The check for GL_ARB_gl_spirv or GL 4.6 doesn't return anything but
just throws an exception. This corrects the type of the call.

Affects:

KHR-GL45.gl_spirv.*

Components: OpenGL

VK-GL-CTS issue: 981

Change-Id: Ic051d7949672b7a824ebe5c67761be866cd1877f

6 years agoFix ES2 cube map GL_LINEAR_* filtering tests
Piotr Byszewski [Thu, 18 Jan 2018 12:59:57 +0000 (13:59 +0100)]
Fix ES2 cube map GL_LINEAR_* filtering tests

When ES2 context is created on ES3 compatible hardware
seamless sampler should be used during cube map filtering
test result verification.

Components: OpenGL

VK-GL-CTS issue: 284

Affects:
dEQP-GLES2.functional.texture.mipmap.cube.*

Change-Id: I442429ca2e1c368bd2dba0948923034b8a3e54be

6 years agoFixed ES2 fbo completeness tests
Piotr Byszewski [Wed, 17 Jan 2018 14:45:28 +0000 (15:45 +0100)]
Fixed ES2 fbo completeness tests

Twelve ES2 fbo completeness tests failed when they
were executed on hardware that also supports ES3.
This was fixed by detecting this case and verifying
tests results using ES3 rules.

Components: OpenGL

VK-GL-CTS issue: 288

Affects:
dEQP-GLES2.functional.fbo.completeness.renderable.*

Change-Id: I0377021a5a83cfb08c5222895e357182c2cafe67

6 years agoMerge vk-gl-cts/aosp-deqp-dev into vk-gl-cts/master
Alexander Galazin [Wed, 31 Jan 2018 10:09:13 +0000 (11:09 +0100)]
Merge vk-gl-cts/aosp-deqp-dev into vk-gl-cts/master

Change-Id: I105841cb1422bf42de35208d39195b9e2ddc1469

6 years agoTest texture gather with separate sparse binding queue
Paavo Pessi [Fri, 3 Nov 2017 11:49:27 +0000 (13:49 +0200)]
Test texture gather with separate sparse binding queue

Existing texture gather tests assume the binding queue is part of
graphics queue. Tests were modified to support both combined and
separate sparse binding queues.

Affects:

dEQP-VK.glsl.texture_gather.*.sparse_*

Components: Vulkan

VK-GL-CTS issue: 361

Change-Id: I0c2160649e6d0fd3e45401a43ab6b3960312c5e0

6 years agoAdd tests for sparse compressed textures.
Ari Suonpaa [Mon, 16 Oct 2017 06:29:08 +0000 (09:29 +0300)]
Add tests for sparse compressed textures.

Extended compressed texture test to include sparse images used as
textures.

Affects:

dEQP-VK.texture.compressed.*

Components: Vulkan

VK-GL-CTS issue: 101

Change-Id: If317985fa8ff1c9a83040a77209c90172834968d

6 years agoRe-enable reflect and dot tests
Piotr Byszewski [Tue, 16 Jan 2018 12:42:07 +0000 (13:42 +0100)]
Re-enable reflect and dot tests

Restored dot and reflect precision tests.

Components: OpenGL

VK-GL-CTS issue: 292

Affects:
dEQP-GLES31.functional.shaders.builtin_functions.precision.reflect.*
dEQP-GLES31.functional.shaders.builtin_functions.precision.dot.*

Change-Id: If3acfadc2e41c8c39e2b5d2f065582bdbfdc2e7a

6 years agoMerge "Work around VC++ code-gen bug in shader matrix tests." into deqp-dev
Treehugger Robot [Fri, 26 Jan 2018 23:30:16 +0000 (23:30 +0000)]
Merge "Work around VC++ code-gen bug in shader matrix tests." into deqp-dev

6 years agoMerge "Fix missing case for ANGLE_depth_texture" into deqp-dev
Treehugger Robot [Fri, 26 Jan 2018 23:29:52 +0000 (23:29 +0000)]
Merge "Fix missing case for ANGLE_depth_texture" into deqp-dev

6 years agoFix missing case for ANGLE_depth_texture
Jamie Madill [Fri, 26 Jan 2018 22:57:17 +0000 (17:57 -0500)]
Fix missing case for ANGLE_depth_texture

Happens when ANGLE_depth_texure is exposed and not OES_depth_texture.

Component: AOSP
Affects:
  dEQP-GLES2.functional.fbo.completeness.renderable.texture.stencil.depth_stencil_unsigned_int_24_8
  dEQP-GLES2.functional.fbo.completeness.renderable.texture.depth.depth_stencil_unsigned_int_24_8
  dEQP-GLES3.functional.fbo.completeness.renderable.texture.stencil.depth_stencil_unsigned_int_24_8
  dEQP-GLES3.functional.fbo.completeness.renderable.texture.depth.depth_stencil_unsigned_int_24_8

6 years agoWork around VC++ code-gen bug in shader matrix tests.
Jamie Madill [Fri, 26 Jan 2018 17:55:20 +0000 (12:55 -0500)]
Work around VC++ code-gen bug in shader matrix tests.

This code-gen bug was found in crbug.com/759402, and was causing test
runtime failures when run. Work around it by disabling optimization
for the specific compiler version.

Components: AOSP
Affects:
  dEQP-GLES2.functional.shaders.matrix.*
  dEQP-GLES3.functional.shaders.matrix.*

6 years agoMerge remote-tracking branch 'aosp/master' into deqp-dev
Chris Forbes [Fri, 26 Jan 2018 00:47:12 +0000 (16:47 -0800)]
Merge remote-tracking branch 'aosp/master' into deqp-dev

Change-Id: Ie7623be11190d678413fbe64da5d41d98e370b2c

6 years agoMerge "Tolerate flush/finish test assumption failures."
Treehugger Robot [Thu, 25 Jan 2018 23:26:38 +0000 (23:26 +0000)]
Merge "Tolerate flush/finish test assumption failures."

6 years agoTolerate flush/finish test assumption failures.
Nicolas Capens [Thu, 25 Jan 2018 16:58:26 +0000 (16:58 +0000)]
Tolerate flush/finish test assumption failures.

These tests assume that draw calls are queued up until they're forced
to be executed by a ReadPixels, Flush, or Finish call. The spec does
not require this, and implementations are free to eagerly start
execution of draw calls.

Thus this change reports a CompatibilityWarning if the assumption isn't
met, instead of a Failure.

Google bug: b/71858368
Components: AOSP
Tests: dEQP-GLES2.functional.flush_finish,
dEQP-GLES3.functional.flush_finish

6 years agoMerge "Test glRenderbufferStorage with unsized depth format"
Treehugger Robot [Wed, 24 Jan 2018 13:29:22 +0000 (13:29 +0000)]
Merge "Test glRenderbufferStorage with unsized depth format"

6 years agodEQP-VK.renderpass.sparserendertarget: bind metadata
Slawomir Cygan [Fri, 19 Jan 2018 13:20:47 +0000 (14:20 +0100)]
dEQP-VK.renderpass.sparserendertarget: bind metadata

Memory was not bound to METADATA aspect, when COLOR aspect
mip tail size was 0. METADATA requirements are not related
to mip tails in other aspects - memory must be always and
unconditionally bound to METADATA.

Additionally, change VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT
condition to layerNdx == 0, as imageMipTailMemoryBinds vector
is now used both for metadata and other mip tails.

Affects: dEQP-VK.renderpass.sparserendertarget.*

Components: Vulkan

VK-GL-CTS issue: 958

Change-Id: I34661c82e0d9829448ac85546055c72151bfe85e

6 years agoTest that points are clamped to ALIASED_POINT_SIZE_RANGE
Kai Ninomiya [Tue, 23 Jan 2018 23:28:27 +0000 (15:28 -0800)]
Test that points are clamped to ALIASED_POINT_SIZE_RANGE

This test verifies that the point size written to gl_PointSize is
clipped to the range ALIASED_POINT_SIZE_RANGE before rasterization.

See also: http://crbug.com/740560
In particular this comment: http://crbug.com/740560#c27

New tests: dEQP-GLES2.functional.rasterization.limits.points
Components: AOSP
Change-Id: I98708ebece4be9c2bce3c7ba3b57454aec657cce

6 years agoTest glRenderbufferStorage with unsized depth format
Nicolas Capens [Tue, 23 Jan 2018 23:16:39 +0000 (23:16 +0000)]
Test glRenderbufferStorage with unsized depth format

The OpenGL ES 2.0 specification only supports formats from Table 4.5,
which are all sized internal formats, while ES 3.0 explicitly states
that "<internalformat> must be a sized internal format".

A color format (GL_RGBA) was already being negatively tested for, but
not a depth format.

6 years agoMerge vk-gl-cts/aosp-deqp-dev into vk-gl-cts/master
Alexander Galazin [Tue, 23 Jan 2018 08:01:54 +0000 (09:01 +0100)]
Merge vk-gl-cts/aosp-deqp-dev into vk-gl-cts/master

Change-Id: I39c67077ab1c9842ab43708f83335eba0d707890

6 years agoFix using representable texture channel ranges.
Nicolas Capens [Mon, 8 Jan 2018 21:49:05 +0000 (16:49 -0500)]
Fix using representable texture channel ranges.

A value of 4294967295 (2^32 - 1) is not exactly representable in
IEEE-754 single-precision floating-point format, and so it gets rounded
to the next representable value, which is 4294967296. However, this
value can't be cast to an unsigned 32-bit integer without overflowing.

GLSL does not define what happens on overflow, and IEEE-754 defines it
as an exception but GLSL forbids exceptions. Hence some implementations
may produce unexpected results. dEQP assumed clamping to the largest
representable integer.

This change fixes that false assumption by reducing the range to values
representable in both float and integer formats.

Note that 32-bit integer formats can still hold values slightly larger
than these ranges. So while previously the floating-point ranges were
too large to represent integer values, they are now too small. This
can't be fixed without separating the integer format tests and only
using integer values to represent their ranges. This doesn't appear
necessary for the time being since the tests that use these floating-
point ranges have large 12/256 tolerances for the output color.

VK-GL-CTS issue: 937
Google bug: 70910885
Component: Framework

Change-Id: Ia2e8a187772bf37ed6ad35b13ed6f5071c46fb43

6 years agoAdd SpirvValidationCapabilitiesTest test case implementation
Adam Czupryna [Fri, 24 Nov 2017 13:59:39 +0000 (14:59 +0100)]
Add SpirvValidationCapabilitiesTest test case implementation

Add CTS_ARB_gl_spirv test implementation that contains:
SpirvValidationCapabilitiesTest

Affects:

KHR-GL45.gl_spirv.spirv_validation_capabilities_test

Components: OpenGL

VK-GL-CTS issue: 554

Change-Id: I0ba93f0ea0dd5c8c9c1348033448fe5ada82b99b

6 years agoFreeze GL 4.6.0 mustpass, add 4.6.1 mustpass
Alexander Galazin [Tue, 23 Jan 2018 01:56:18 +0000 (02:56 +0100)]
Freeze GL 4.6.0 mustpass, add 4.6.1 mustpass

Change-Id: Iae3345620e1dc59437c4b2910fcd08f66cb9eab4

6 years agoTest packed depth and stencil
Piotr Byszewski [Wed, 13 Dec 2017 09:48:54 +0000 (10:48 +0100)]
Test packed depth and stencil

GTFTestPackedDepthStencil tests were ported to glcts.
Packed format loop was extracted from tests.

Components: OpenGL

VK-GL-CTS issue: 815

Affects:
KHR-GLES3.packed_depth_stencil.*
KHR-GL*.packed_depth_stencil.*

Change-Id: Ia13d200909cfe097bfbafcb15d5482d30b4d8c5b

6 years agoTest discontiguous descriptor binding values
Paavo Pessi [Fri, 5 Jan 2018 13:57:10 +0000 (15:57 +0200)]
Test discontiguous descriptor binding values

New tests were added to test discontiguous and arbitrary descriptor
binding values with different descriptor types and shader stages.

New tests:
dEQP-VK.binding_model.shader_access.*.multiple_discontiguous_descriptors.*
dEQP-VK.binding_model.shader_access.*.multiple_arbitrary_descriptors.*

Components: Vulkan

VK-GL-CTS issue: 905
VK-GL-CTS public issue: 67

Change-Id: I00d1ec1e302a03e0f67ba967b6949578ec58c436

6 years agoAdd more component qualifier array tests for fragment outputs
Samuel Iglesias Gonsálvez [Fri, 1 Dec 2017 08:36:57 +0000 (09:36 +0100)]
Add more component qualifier array tests for fragment outputs

Tests were added to verify that various combinations of component
qualifiers can be used with different data arrays (float, vec2, vec3)
in fragment shader outputs.

New tests:

dEQP-VK.glsl.440.linkage.varying.component.frag_out.two_vec4.*

Components: Vulkan
VK-GL-CTS issue: 896

Change-Id: If3ed04b88f4a496dcdada9c50a45bbf7580df88e

6 years agogl_spirv: update ARB_gl_spirv availability check
Alejandro Piñeiro [Tue, 16 Jan 2018 14:43:49 +0000 (15:43 +0100)]
gl_spirv: update ARB_gl_spirv availability check

All tests were checking for the availability of the extension in
order to return NotSupported but one, so it returned Failed.

Additionally we complete the check, so now we are checking for
GL_ARB_gl_spirv or GL 4.6, as other tests already do.

As this is common for all the 8 tests, we add a utility helper at
gl4cts::commonUtils.

Modules: OpenGL

VK-GL-CTS issue: 947

Affects:
KHR-GL45.gl_spirv.spirv_modules_shader_binary_multiple_shader_objects_test
KHR-GL46.gl_spirv.spirv_modules_shader_binary_multiple_shader_objects_test

Change-Id: I8a3be211363d287696ee86f7d6f503794b63710f

6 years agoUse default device for sparse binding tests.
Ari Suonpaa [Wed, 13 Dec 2017 09:49:35 +0000 (11:49 +0200)]
Use default device for sparse binding tests.

The default device supports sparse binding when the underlying
physical device has support. There's no need to create a separate
device object. Test context creates a sparse queue whenever
sparse binding is supported by the physical device. This
change also adds support for having a separate sparse binding
queue.

Affects:

dEQP-VK.texture.shadow.*
dEQP-VK.renderpass.sparserendertarget.*

Components: Vulkan

VK-GL-CTS issue: 898

Change-Id: I2ca36d8e641fe3ef5694784e7bb3d8ebe6ed51bf

6 years agoMerge "Port WebGL multisampled renderbuffer resize test"
Treehugger Robot [Sat, 20 Jan 2018 03:01:01 +0000 (03:01 +0000)]
Merge "Port WebGL multisampled renderbuffer resize test"

6 years agoSuppress new warnings from gcc-6 am: 9a58d041fe
Chris Forbes [Sat, 20 Jan 2018 00:46:18 +0000 (00:46 +0000)]
Suppress new warnings from gcc-6 am: 9a58d041fe
am: fd34041ed0

Change-Id: I0b9eca4091dc271141027d68a6a46d58937e56ac

6 years agoSuppress new warnings from gcc-6
Chris Forbes [Sat, 20 Jan 2018 00:43:46 +0000 (00:43 +0000)]
Suppress new warnings from gcc-6
am: 9a58d041fe

Change-Id: I176dd24b363db336f4f42f8d8c2c5aebb2632dcb

6 years agoSuppress new warnings from gcc-6
Chris Forbes [Fri, 19 Jan 2018 18:06:53 +0000 (10:06 -0800)]
Suppress new warnings from gcc-6

check_build_sanity currently fails with the system gcc on rodete. Let's
just suppress this warning for now. Intend to back out the suppression
and fix the warnings in next release.

Bug: b/72219443
Test: build
Change-Id: Ic842a3de3d247d53c49117562b51e8eece3752f9

6 years agoMerge vk-gl-cts/vulkan-cts-1.0.3 into vk-gl-cts/master
Alexander Galazin [Fri, 19 Jan 2018 10:12:43 +0000 (11:12 +0100)]
Merge vk-gl-cts/vulkan-cts-1.0.3 into vk-gl-cts/master

Change-Id: I2de5195522bb42f25a2eb7181b366c8284ef7fec

6 years agoMerge vk-gl-cts/vulkan-cts-1.0.2 into vk-gl-cts/vulkan-cts-1.0.3
Alexander Galazin [Fri, 19 Jan 2018 08:22:31 +0000 (09:22 +0100)]
Merge vk-gl-cts/vulkan-cts-1.0.2 into vk-gl-cts/vulkan-cts-1.0.3

Change-Id: Ie1eb632fc4601acfc34db84410e04e06cc2da243

6 years agoCheck GS support before testing adjacent primitives
Yanjun Zhang [Wed, 10 Jan 2018 00:12:47 +0000 (16:12 -0800)]
Check GS support before testing adjacent primitives

Affects: dEQP-VK.draw.basic_draw.draw.*

Components: Vulkan

VK-GL-CTS issue: 926

Change-Id: I02569b1944eed52f641966f9206d44983d1ff165

6 years agoFix buffer usage flags for index and indirect buffers
Chris Forbes [Wed, 10 Jan 2018 02:13:15 +0000 (18:13 -0800)]
Fix buffer usage flags for index and indirect buffers

Previously, createAndUploadBuffer would provide
VK_BUFFER_USAGE_VERTEX_BUFFER_BIT for all buffers. This is no good for
index buffers and indirect buffers.

VK-GL-CTS: 930

Change-Id: I774beef7c7226f4fbd5670591eb66475300ee208
Components: Vulkan
Affects: dEQP-VK.draw.instanced.*

6 years agoPort WebGL multisampled renderbuffer resize test
Kai Ninomiya [Tue, 9 Jan 2018 18:59:09 +0000 (10:59 -0800)]
Port WebGL multisampled renderbuffer resize test

Port a WebGL test for a driver bug affecting resizing/reallocation
of multisampled renderbuffers on Qualcomm drivers:
* conformance2/renderbuffers/multisampled-renderbuffer-initialization.html

New tests: dEQP-GLES3.functional.fbo.msaa.renderbuffer_resize.*
Components: AOSP
Change-Id: Ib4377eaf35c1d4b5f431cd433e06301003966d54

6 years agoFreeze 1.0.3 mustpass, add 1.0.4 mustpass
Alexander Galazin [Thu, 18 Jan 2018 17:17:45 +0000 (18:17 +0100)]
Freeze 1.0.3 mustpass, add 1.0.4 mustpass

Components: Vulkan

Change-Id: I163d9767ad526b4a0f040a24fd5f5af86f6ef7c5

6 years agoMerge vk-gl-cts/vulkan-cts-1.0.2 into vk-gl-cts/master
Alexander Galazin [Thu, 18 Jan 2018 09:51:33 +0000 (10:51 +0100)]
Merge vk-gl-cts/vulkan-cts-1.0.2 into vk-gl-cts/master

Change-Id: Ibf30bd51afce5e0e6363eb94ea2cd9293cbb35d9

6 years agoProperly iterate over pNext in VkSamplerCreateInfo
Alexander Galazin [Mon, 15 Jan 2018 13:18:51 +0000 (14:18 +0100)]
Properly iterate over pNext in VkSamplerCreateInfo

Iterate over all pNext elements in VkSamplerCreateInfo.
Skip VkSamplerYcbcrConversionInfoKHR, retrieve
reduction mode from VkSamplerReductionModeCreateInfoEXT

VK-GL-CTS issue: 945

Components: Vulkan

Affects:
dEQP-VK.ycbcr.*
dEQP-VK.api.info.format_properties.*
dEQP-VK.pipeline.sampler.view_type.*.format.(any color format).min_reduce.*
dEQP-VK.pipeline.sampler.view_type.*.format.(any color format).mag_reduce.*
dEQP-VK.pipeline.sampler.view_type.*.format.(any depth format)

Change-Id: Iaba8678f2fa13b5545cec7f903f21aa01c5c13f3

6 years agoSet maxDescriptorSet* limit table based on shader stages
Yanjun Zhang [Thu, 11 Jan 2018 19:44:54 +0000 (11:44 -0800)]
Set maxDescriptorSet* limit table based on shader stages

Re-submit the patch based on WG review and feedback.

Affects: dEQP-VK.api.info.device.properties

Components: Vulkan

VK-GL-CTS issue: 923

Change-Id: Ie627b52cfae099d87f5b6183118d42bcccd313ca

6 years agoMerge remote-tracking branch 'origin/master' into deqp-dev
Chris Forbes [Thu, 18 Jan 2018 00:39:44 +0000 (16:39 -0800)]
Merge remote-tracking branch 'origin/master' into deqp-dev

Change-Id: Ia7d3290f1dbdc712d836c29f56a61f262bf79bdd

6 years agoMerge "Update owners file" into oreo-mr1-cts-dev
Mika Isojärvi [Wed, 17 Jan 2018 22:35:33 +0000 (22:35 +0000)]
Merge "Update owners file" into oreo-mr1-cts-dev
am: 2797a75d5d

Change-Id: I1245c8ed48b7d9fd4f41a57bf52a66c58d4edf7c

6 years agoModify compute shader grid setup.
Anders Frostad Pedersen [Wed, 17 Jan 2018 22:30:57 +0000 (22:30 +0000)]
Modify compute shader grid setup.
am: a7c3d75202

Change-Id: Id377bb796299a4a37df027ef522494b5e7590723

6 years agoMerge "Update owners file" into oreo-mr1-cts-dev
Treehugger Robot [Wed, 17 Jan 2018 22:30:54 +0000 (22:30 +0000)]
Merge "Update owners file" into oreo-mr1-cts-dev

6 years agoMerge "Accept EGL_BAD_PARAMETER for eglCreatePixmapSurface negative test"
Treehugger Robot [Wed, 17 Jan 2018 21:31:35 +0000 (21:31 +0000)]
Merge "Accept EGL_BAD_PARAMETER for eglCreatePixmapSurface negative test"

6 years agoUpdate owners file
Mika Isojärvi [Thu, 28 Sep 2017 17:25:24 +0000 (10:25 -0700)]
Update owners file

Bug: 72113298
Test: build/make/tools/checkowners.py -c -v OWNERS
Change-Id: I117459d91f39055aaa5f0bc6abfbda32f31cdab2
(cherry picked from commit 412471299c0fac5cb5af37fcdeadbf39a4a36744)

6 years agoModify compute shader grid setup.
Anders Frostad Pedersen [Wed, 17 Jan 2018 11:05:45 +0000 (12:05 +0100)]
Modify compute shader grid setup.

Modify how the grid is set up for compute shader draw indirect test,
in order to avoid verfication failures due to difference in
floating-point computations on the CPU vs the GPU.

The existing code assumes infinite FP precision.

This change will guarantee the next value of pos(X) to be equal to
the first value of pos(X+1), avoiding gaps/discontinuities.

Affects:
dEQP-GLES31.functional.draw_indirect.compute_interop.large.drawarrays_combined_grid_1000x1000_drawcount_1
dEQP-GLES31.functional.draw_indirect.compute_interop.large.drawarrays_combined_grid_1000x1000_drawcount_5000
dEQP-GLES31.functional.draw_indirect.compute_interop.large.drawarrays_combined_grid_1000x1000_drawcount_8
dEQP-GLES31.functional.draw_indirect.compute_interop.large.drawarrays_separate_grid_1000x1000_drawcount_1
dEQP-GLES31.functional.draw_indirect.compute_interop.large.drawarrays_separate_grid_1000x1000_drawcount_5000
dEQP-GLES31.functional.draw_indirect.compute_interop.large.drawarrays_separate_grid_1000x1000_drawcount_8

Bug: 71515808
Change-Id: I21fe8ec9ea48b15f6171265df802bc47be775f56

6 years agoMerge changes from topic "tests-dropped-from-o"
Chris Forbes [Wed, 17 Jan 2018 19:35:50 +0000 (19:35 +0000)]
Merge changes from topic "tests-dropped-from-o"

* changes:
  Reinstate excluded UBO tests
  Reinstate dEQP-VK.image.mutable.*

6 years agoAvoid out-of-range depth values
Piers Daniell [Tue, 8 Aug 2017 22:03:35 +0000 (16:03 -0600)]
Avoid out-of-range depth values

The "d32_sfloat_large_depth" variants of the
dEQP-VK.glsl.builtin_var.fragdepth.* tests rely on undefined behavior
because it uses an out-of-range depth value. The unextended Vulkan spec
requires depth values to be in the range of 0.0..1.0. The test was using
a depth value of 20.0..21.0 and expecting the implementation to clamp.

Instead of disabling this part of the test entirely, only run it if the
implementation exposes the VK_EXT_depth_range_unrestricted device
extension, which does have defined behavior with depth values outside
the range of 0.0..1.0.

Affects:

dEQP-VK.glsl.builtin_var.fragdepth.*d32_sfloat_large_depth

Components: Vulkan

VK-GL-CTS issue: 623

Change-Id: I436b8b98bebe3ef37bd306d93da2bf8c40eee6c8

6 years agoMerge changes from topic "multiview"
Treehugger Robot [Tue, 16 Jan 2018 19:08:18 +0000 (19:08 +0000)]
Merge changes from topic "multiview"

* changes:
  Add preliminary dEQP multiview test.
  Add multiview entry points to GL wrappers.

6 years agovk-default-no-waivers mustpass
Alexander Galazin [Mon, 15 Jan 2018 12:47:05 +0000 (13:47 +0100)]
vk-default-no-waivers mustpass

Components: Vulkan

Change-Id: Iec7c2a45663cc318a67614c9e28b8631f1bd1faf

6 years agoAdd INTxx_MAX checks into check_all.py
Boris Zanin [Wed, 10 Jan 2018 12:15:36 +0000 (13:15 +0100)]
Add INTxx_MAX checks into check_all.py

The mentioned consts are not defined in Windows, but are defined in linux.
Presence of this consts breaks Windows builds. To make it easyily detectable
under linux additional check for [U]INT[8,16,32,64]_MAX consts is added
into check_all.py script.

Components: Framework

VK-GL-CTS Issue: 934

Change-Id: I1882c0cd283a63a623972cb69ffb292531e37d10