Boris Zanin [Tue, 6 Jun 2017 06:42:14 +0000 (08:42 +0200)]
Return back transient attachments tests
Update tests:
* dEQP-VK.renderpass.attachment.*
* dEQP-VK.renderpass.attachment_allocation.*
Components: Vulkan
VK-GL-CTS issue 464
Change-Id: I11006ef75ee7fbeb6674d1876a535101edb2a667
Andres Gomez [Thu, 8 Jun 2017 11:39:02 +0000 (14:39 +0300)]
dEQP-VK: check against the proper VkFormatProperties member
VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT and
VK_FORMAT_FEATURE_TRANSFER_[SRC|DST]_BIT_KHR are flag values of the
VkFormatFeatureFlagBits enum that can only be hold and checked against
the linearTilingFeatures or optimalTilingFeatures members of the
VkFormatProperties struct but not the bufferFeatures member.
From the Vulkan® 1.0.51, with the VK_KHR_maintenance1 extension,
section 32.3.2 docs for VkFormatProperties:
"* linearTilingFeatures is a bitmask of VkFormatFeatureFlagBits
specifying features supported by images created with a tiling
parameter of VK_IMAGE_TILING_LINEAR.
* optimalTilingFeatures is a bitmask of VkFormatFeatureFlagBits
specifying features supported by images created with a tiling
parameter of VK_IMAGE_TILING_OPTIMAL.
* bufferFeatures is a bitmask of VkFormatFeatureFlagBits
specifying features supported by buffers."
...
Bits which can be set in the VkFormatProperties features
linearTilingFeatures, optimalTilingFeatures, and bufferFeatures
are:
typedef enum VkFormatFeatureFlagBits {
...
VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT = 0x00000080,
...
VK_FORMAT_FEATURE_TRANSFER_SRC_BIT_KHR = 0x00004000,
VK_FORMAT_FEATURE_TRANSFER_DST_BIT_KHR = 0x00008000,
...
} VkFormatFeatureFlagBits;
...
The following bits may be set in linearTilingFeatures and
optimalTilingFeatures, specifying that the features are supported
by images or image views created with the queried
vkGetPhysicalDeviceFormatProperties::format:
...
* VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT specifies that an image
view can be used as a framebuffer color attachment and as an
input attachment."
...
* VK_FORMAT_FEATURE_TRANSFER_SRC_BIT_KHR specifies that an image
can be used as a source image for copy commands.
* VK_FORMAT_FEATURE_TRANSFER_DST_BIT_KHR specifies that an image
can be used as a destination image for copy commands and clear
commands."
Affects:
dEQP-VK.spirv_assembly.instruction.graphics.16bit_storage.input_output_*
VK-GL-CTS issue: 483
Components: Vulkan
Change-Id: I89d21dbba2794429973830b0368259cf0cc24312
Alexander Galazin [Sun, 11 Jun 2017 11:28:23 +0000 (13:28 +0200)]
Merge vk-gl-cts/master into vk-gl-cts/vulkan-cts-next-dev
Change-Id: Ifc63fe42fc61f2536fbd24a1c53e76478e24df60
Jeannot Breton [Wed, 7 Jun 2017 22:21:32 +0000 (17:21 -0500)]
Fix CopyNamedBufferSubData definition
It defines the last parameters as a GLsizei but it's a GLsizeiptr
Affects:
KHR-GL45.direct_state_access.buffers_errors
KHR-GL45.direct_state_access.buffers_functional
Components: OpenGL
VK-GL-CTS issue: 478
Change-Id: Iea980d761c6fec9068496878f2bc21415fc693b9
Jeannot Breton [Wed, 7 Jun 2017 22:09:00 +0000 (17:09 -0500)]
Fix shader draw parameter pack alignment issue
The test allocates a buffer of width*height*3 elements and expects
the readPixels to only write to this memory.
This is not correct if the window width is not a multiple of 4
Adding a gl.pixelStorei(GL_PACK_ALIGNMENT, 1) before the readPixels
fixes the issue
Affects:
KHR-GL45.shader_draw_parameters_tests.ShaderDrawArraysParameters
Components: OpenGL
VK-GL-CTS issue: 477
Change-Id: I2bef139f5b1e39fe52b2f00e5a529ce503a5d567
Jeannot Breton [Tue, 6 Jun 2017 14:46:19 +0000 (09:46 -0500)]
Limit texture memory required by test
Fix 3 issues in framebuffers_texture_layer_attachment
Use the correct enum to get array textures maxsize and maxlayers
Limit the allocated texture layers
Generate only 2 renderbuffers
Affects:
KHR-GL45.direct_state_access.framebuffers_texture_layer_attachment
Components: OpenGL
VK-GL-CTS issue: 470
Change-Id: I11fd9a209d9ca6ffc83b2aa33fb196d4915817ec
Iago Toral Quiroga [Tue, 6 Jun 2017 06:53:47 +0000 (08:53 +0200)]
Do not exceed GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS
The transform feedback tests query the limit but never actually used it
to clamp the number of attributes used with GL_SEPARATE_ATTRIBS.
Components: OpenGL
VK-GL-CTS issue: 469
Affects:
KHR-GL45.transform_feedback.get_xfb_varying
Change-Id: Ie0b89233024e2e10bacc1e9b2f9969c0da3a9e29
Jeannot Breton [Fri, 2 Jun 2017 19:24:44 +0000 (14:24 -0500)]
Use renderbuffer object on bindRenderbuffer call
The test was calling bindRenderbuffer(GL_RENDERBUFFER, m_fbo);
It should be replaced by
bindRenderbuffer(GL_RENDERBUFFER, m_rbo);
Affects:
KHR-GL45.incomplete_texture_access.sampler
Components: OpenGL
VK-GL-CTS issue: 466
Change-Id: I94efdfca22abb84faa52e5b4a0dfd82cde484249
Iago Toral Quiroga [Fri, 2 Jun 2017 08:40:22 +0000 (10:40 +0200)]
multi-bind tests use multisampled images without checking for support
Some tests sample/store from GL_TEXTURE_2D_MULTISAMPLE{_ARRAY} without
checking the value of GL_MAX_IMAGE_SAMPLES, which can be zero. Skip,
these targets in the driver reports 0, meaning that it can't do
multisample load/store image operations.
Components: OpenGL
VK-GL-CTS issue: 462
Affects:
KHR-GL45.multi_bind.dispatch_bind_textures
KHR-GL45.multi_bind.dispatch_bind_image_textures
Change-Id: I94df7fa657bc04c05cc598bf5dba5c09574cbaf0
James Helferty [Wed, 7 Jun 2017 20:17:50 +0000 (16:17 -0400)]
Update TextureParameter* errors
Check for INVALID_OPERATION instead of INVALID_ENUM whenever attempting
to use GetTextureParameter* with a texture object with an incompatible
TEXTURE_TARGET.
VK-GL-CTS issue: 485
Components: OpenGL
Affects:
KHR-GL45.direct_state_access.textures_parameter_errors
Change-Id: Id0cf6eb72896ce9221fc38b6f37e8d7f54766ae1
James Helferty [Tue, 6 Jun 2017 18:22:29 +0000 (14:22 -0400)]
Expect different error for DSA GetTexture funcs
The OpenGL 4.6 draft specification (May 31, 2017) modifies the expected
errors for using an invalid texture ID with glGetTextureSubImage*D and
glGetCompressedTextureSubImage*D from INVALID_VALUE to
INVALID_OPERATION. This change updates our tests to expect the revised
error code.
VK-GL-CTS issue: 472
Components: OpenGL
Affects:
KHR-GL45.get_texture_sub_image.errors_test
Change-Id: I66c95a370af62977508eed4bb45f181eba51a654
James Helferty [Thu, 1 Jun 2017 16:22:33 +0000 (12:22 -0400)]
Fix invalid FLAT and uninitialized variable
Fixes two issues in a negative test:
* Removes flat qualifier from vertex shader input, which is always
invalid and was causing a subtest of this negative test to always pass.
* Modifies the initial use of a variable from '+=' to '=' to fix an
uninitialized variable error.
Components: OpenGL
Affects:
KHR-GL45.enhanced_layouts.varying_component_without_location
VK-GL-CTS issue: 455
Change-Id: If24ea45ae13baaae83d68e6cd67109a1ffe6c050
Adam Czupryna [Fri, 24 Mar 2017 13:41:39 +0000 (14:41 +0100)]
Add CTS_ARB_shader_draw_parameters specification proposal
This is CTS_ARB_shader_draw_parameters specification proposal.
Components: OpenGL
VK-GL-CTS issue: 327
Change-Id: I61ec8866508bbc0c54d67d9b49f5421d27779769
James Helferty [Tue, 30 May 2017 15:58:24 +0000 (11:58 -0400)]
Fix spelling of 'tessellation'
Fixes the spelling of 'tessellation' in gl4cEnhancedLayoutsTests.cpp
VK-GL-CTS issue: 471
Components: OpenGL
Affects:
KHR-GL45.enhanced_layouts.*
Change-Id: I5710e8698830ba2c8c1ae525f87c587953c5b79f
Alexander Galazin [Tue, 6 Jun 2017 12:59:10 +0000 (14:59 +0200)]
Update GL/ES mustpass
Update mustpass files after merges from AOSP
Components: OpenGL
Change-Id: Icbe18926f604936da12dda11852a5479911d6bfc
Filip Demczewski [Wed, 28 Dec 2016 10:17:47 +0000 (11:17 +0100)]
Added CTS_ARB_shader_viewport_layer_array tests
Added CTS_ARB_shader_viewport_layer_array cases:
ShaderViewportIndexTestCase
ShaderLayerFramebufferLayeredTestCase
ShaderLayerFramebufferNonLayeredTestCase
affects:
KHR-GL45.shader_viewport_layer_array.*
components: OpenGL
VK-GL-CTS issue: 167
Change-Id: Ibcc99670ffba4025584d7f1b955cdc548e70f641
Adam Czupryna [Mon, 3 Apr 2017 13:58:47 +0000 (15:58 +0200)]
Add CTS_ARB_shader_draw_parameters tests implementation
This is CTS_ARB_shader_draw_parameters tests implementation
Affects:
GL45-CTS.shader_draw_parameters_tests.*
Components: OpenGL, Framework
VK-GL-CTS issue: 327
Change-Id: I6cee73f89d6d381dfd65ceefe2aa55ef18c87ca2
Adam Czupryna [Mon, 24 Apr 2017 13:57:48 +0000 (15:57 +0200)]
Add CTS_EXT_texture_filter_anisotropic specification proposal
This is CTS_EXT_texture_filter_anisotropic specification proposal.
Components: OpenGL
VK-GL-CTS issue: 387
Change-Id: Ic0385349368612c16febe8b1e63f76ef87ce425a
James Helferty [Mon, 29 May 2017 20:42:47 +0000 (16:42 -0400)]
Call BufferTestBase's subclasses' executeDrawCall
A number of enhanced layout tests that inherited from BufferTestBase
were not calling the correct executeDrawCall function due to having a
different function prototype from the base class.
VK-GL-CTS issue: 451
Components: OpenGL
Affects:
KHR-GL44.enhanced_layouts.xfb_capture_inactive_output_block_member
KHR-GL44.enhanced_layouts.xfb_capture_inactive_output_component
KHR-GL44.enhanced_layouts.xfb_capture_inactive_output_variable
KHR-GL44.enhanced_layouts.xfb_capture_struct
KHR-GL44.enhanced_layouts.xfb_stride
KHR-GL44.enhanced_layouts.xfb_stride_of_empty_list
KHR-GL44.enhanced_layouts.xfb_stride_of_empty_list_and_api
KHR-GL45.enhanced_layouts.xfb_capture_inactive_output_block_member
KHR-GL45.enhanced_layouts.xfb_capture_inactive_output_component
KHR-GL45.enhanced_layouts.xfb_capture_inactive_output_variable
KHR-GL45.enhanced_layouts.xfb_capture_struct
KHR-GL45.enhanced_layouts.xfb_stride
KHR-GL45.enhanced_layouts.xfb_stride_of_empty_list
KHR-GL45.enhanced_layouts.xfb_stride_of_empty_list_and_api
Change-Id: I731297f26e2784915003b4e13958b285736d7c9d
James Helferty [Thu, 1 Jun 2017 16:20:27 +0000 (12:20 -0400)]
Add log for unexpected success in negative tests
This adds logging of shader source whenever one of the affected
negative enhanced layout tests unpexpectedly succeeds.
VK-GL-CTS issue: 460
Components: OpenGL
Affects:
KHR-GL45.enhanced_layouts.glsl_contant_immutablity
KHR-GL45.enhanced_layouts.uniform_block_layout_qualifier_conflict
KHR-GL45.enhanced_layouts.uniform_block_member_invalid_offset_alignment
KHR-GL45.enhanced_layouts.uniform_block_member_overlapping_offsets
KHR-GL45.enhanced_layouts.uniform_block_member_align_non_power_of_2
KHR-GL45.enhanced_layouts.ssb_layout_qualifier_conflict
KHR-GL45.enhanced_layouts.varying_structure_member_location
KHR-GL45.enhanced_layouts.varying_block_member_locations
KHR-GL45.enhanced_layouts.varying_block_automatic_member_locations
KHR-GL45.enhanced_layouts.varying_location_limit
KHR-GL45.enhanced_layouts.varying_exceeding_components
KHR-GL45.enhanced_layouts.varying_component_without_location
KHR-GL45.enhanced_layouts.varying_component_of_invalid_type
KHR-GL45.enhanced_layouts.input_component_aliasing
KHR-GL45.enhanced_layouts.output_component_aliasing
KHR-GL45.enhanced_layouts.varying_location_aliasing_with_mixed_types
KHR-GL45.enhanced_layouts.varying_location_aliasing_with_mixed_interpolation
KHR-GL45.enhanced_layouts.varying_location_aliasing_with_mixed_auxiliary_storage
KHR-GL45.enhanced_layouts.xfb_input
KHR-GL45.enhanced_layouts.xfb_too_small_stride
KHR-GL45.enhanced_layouts.xfb_variable_stride
KHR-GL45.enhanced_layouts.xfb_duplicated_stride
KHR-GL45.enhanced_layouts.xfb_multiple_vertex_streams
KHR-GL45.enhanced_layouts.xfb_exceed_buffer_limit
KHR-GL45.enhanced_layouts.xfb_exceed_offset_limit
KHR-GL45.enhanced_layouts.xfb_block_member_buffer
KHR-GL45.enhanced_layouts.xfb_output_overlapping
KHR-GL45.enhanced_layouts.xfb_invalid_offset_alignment
KHR-GL45.enhanced_layouts.xfb_capture_unsized_array
(and any GL44 equivalents)
Change-Id: Ie8e93c73e43828322a0860cc4820b72a9fb1f8d3
Iago Toral Quiroga [Thu, 1 Jun 2017 07:44:48 +0000 (09:44 +0200)]
KHR-GL45.multi_bind.dispatch_bind_textures samples from incomplete textures
Only the first miplevel is uploaded but the texture's sampler parameters are
not configured accordingly.
Components: OpenGL
VK-GL-CTS issue: 456
Affects:
KHR-GL45.multi_bind.dispatch_bind_textures
Change-Id: I6f63b1120ac38761c289f566ddacf05703d31868
Iago Toral Quiroga [Thu, 1 Jun 2017 08:47:54 +0000 (10:47 +0200)]
Use correct maximum number of image uniforms in multi-bind tests
The test queries GL_MAX_IMAGE_UNITS to decide the maximum number of
image uniforms it can use, but this limit is exposed per-stage
via GL_MAX_<STAGE>_IMAGE_UNIFORMS. Since the test uses a compute
shader it should query GL_MAX_COMPUTE_IMAGE_UNIFORMS.
Components: OpenGL
VK-GL-CTS issue: 457
Affects:
KHR-GL45.multi_bind.dispatch_bind_image_textures
Change-Id: I076cab954b1b0662f9fdab41f0f82437cc91ca64
Jeannot Breton [Fri, 2 Jun 2017 01:21:34 +0000 (20:21 -0500)]
Fix texture and renderbuffer leaks
Some texture_swizzle tests allocate a source texture inside a loop,
but the texture is only deleted when we exit the loop. So multiple
textures are allocated but never deleted.
Some transform_feedback clean function delete framebuffer instead
of render buffer, some other tests doesn't delete frambuffer and
render buffer at all
Affects:
KHR-GL45.texture_swizzle.*
KHR-GL45.transform_feedback.*
Components: OpenGL
VK-GL-CTS issue: 461
Change-Id: Ib237bbb78209b5017ee9e454a94636df378c677f
Pyry Haulos [Mon, 5 Jun 2017 18:28:59 +0000 (11:28 -0700)]
Merge vk-gl-cts/master into vk-gl-cts/vulkan-cts-next-dev
Change-Id: I5bd5304cb1c3873f9c46258f31a96e28597ada5a
Pyry Haulos [Mon, 5 Jun 2017 18:28:57 +0000 (11:28 -0700)]
Merge vk-gl-cts/vulkan-cts-1.0.2 into vk-gl-cts/master
Change-Id: I2946fc9967f9d9706027416e94ed61eca20a4ca2
Pyry Haulos [Mon, 5 Jun 2017 17:38:33 +0000 (10:38 -0700)]
Merge vk-gl-cts/master into vk-gl-cts/vulkan-cts-next-dev
Change-Id: I076fd99ee0fd28538ea963e97588acf06d75a713
Pyry Haulos [Mon, 5 Jun 2017 17:37:17 +0000 (10:37 -0700)]
Merge vk-gl-cts/aosp-deqp-dev into vk-gl-cts/master
Change-Id: Ib189ff26f3bb7e049f5e0c4345e523cc39e91d4f
Andres Gomez [Sat, 3 Jun 2017 00:30:32 +0000 (02:30 +0200)]
Build fix for x11_egl target builds
The combination of recent refactor on release branch and merge to
master resulted in a compilation error for the XInitThreads symbol
when using the x11_egl built target.
Components: Framework
VK-GL-CTS Issue: 467
Change-Id: Iba0803e8b73462bd66ab7803a6c90bfd40d9164c
Jose Maria Casanova Crespo [Wed, 31 May 2017 11:10:31 +0000 (13:10 +0200)]
dEQP-VK: Add SPV_KHR_16bit_storage at shaders using 16bit
All shaders stages that use VK_KHR_16bit_storage capabilities
need to enable the SPV_KHR_16bit_storage extension at the SPIR-V
assembly.
A recent update of the SPIRV-Tools checks for this error in the
SPIR-V code. This has raised several link error in the execution
of the VK_KHR_16bit_storage tests.
This patch enables the extension at the assembly code of the compute
shaders tests and the pass-through stages of the input-output
graphics tests.
Also includes newline at OpExtension "SPV_KHR_16bit_storage" uses.
Components: Vulkan
VK-GL-CTS issue: 454
Affects:
* dEQP-VK.spirv_assembly.instruction.graphics.16bit_storage.input_output.*
* dEQP-VK.spirv_assembly.instruction.compute.16bit_storage.*
Change-Id: I29b7e8706eba54b5f931f33442c85613d99cd113
Lei Zhang [Wed, 31 May 2017 19:37:20 +0000 (15:37 -0400)]
Allow denormalized input values to be flushed to zeros
Components: Vulkan
VK-GL-CTS issue: 452
Affects:
dEQP-VK.spirv_assembly.instruction.graphics.16bit_storage.*
dEQP-VK.spirv_assembly.instruction.compute.16bit_storage.*
Change-Id: I2ab9fe88cd603157e477c0132c6db3421b1e440f
Marcin Kańtoch [Mon, 29 May 2017 10:23:45 +0000 (12:23 +0200)]
Fix for crash in createDeviceWithExtensions
createDeviceWithExtensions function is crashing if extensions vector
does not contain any elements. This simple fix prevents the crash
from happening.
Affects: dEQP-VK.spirv_assembly.*
Components: Vulkan
Change-Id: If4e5149df8d00b25b6ee97a235757d44dccd60d1
Alexander Galazin [Mon, 15 May 2017 09:50:09 +0000 (11:50 +0200)]
Add ES 3.2.4.x mustpass
Components: OpenGL
Change-Id: Ifd8270acae469d80d9243a58f1e17b57bbecf081
Alexander Galazin [Thu, 1 Jun 2017 06:59:16 +0000 (08:59 +0200)]
Atomic counter tests rely on stores to SSBOs
Stores to SSBOs are supported if
vertexPipelineStoresAndAtomics/fragmentStoresAndAtomics
are advertised.
VK-GL-CTS issue: 458
Components: Vulkan
Affects:
dEQP-VK.glsl.opaque_type_indexing.atomic_counter.*
Change-Id: I8bd3617522221e646526112978b8d13069f88ec3
Alexander Galazin [Fri, 7 Apr 2017 08:01:45 +0000 (10:01 +0200)]
Remove GTF tests from GLES mustpass
These tests are no longer needed as the same coverage is provided
in dEQP, KHR modules.
Components: OpenGL
Affects: GLES master mustpass
VK-GL-CTS issue: 50
Change-Id: Ib52227b76e40888c979eeadc58d0e7ea6500eebc
Iago Toral Quiroga [Fri, 26 May 2017 07:58:15 +0000 (09:58 +0200)]
Fix incorrect sType in cross instance tests
The tests create a VkExternalImageFormatPropertiesKHX struct with
sType VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO_KHX,
should be VK_STRUCTURE_TYPE_EXTERNAL_IMAGE_FORMAT_PROPERTIES_KHX.
Components: Vulkan
VK-GL-CTS issue: 446
Affects:
dEQP-VK.synchronization.cross_instance.*
Change-Id: Ibc1d28d56f495f34f24f9baaf3ca7a79cc5fe415
Iago Toral Quiroga [Fri, 19 May 2017 10:21:17 +0000 (12:21 +0200)]
Check unsupported image formats in cross instance tests
vkGetPhysicalDeviceImageFormatProperties2KHR can return
VK_ERROR_FORMAT_NOT_SUPPORTED, in which case the tests
shouldn't fail and be marked as unsupported instead.
Components: Vulkan
VK-GL-CTS issue: 431
Affects:
dEQP-VK.synchronization.cross_instance.*
Change-Id: I0b2c1f49f26f2516d0610c14d285e0b11c72a762
Boris Zanin [Fri, 12 May 2017 08:11:01 +0000 (10:11 +0200)]
Test VK_KHR_dedicated_allocation mem requirement queries
Add tests:
* dEQP-VK.memory.requirements.dedicated_allocation.buffer.*
* dEQP-VK.memory.requirements.dedicated_allocation.image.*
Components: Vulkan
VK-GL-CTS issue: 391
Change-Id: I9510464987e33b395a5ac20c2fdb9129eefd91da
Pyry Haulos [Tue, 30 May 2017 01:56:38 +0000 (18:56 -0700)]
Merge vk-gl-cts/master into vk-gl-cts/vulkan-cts-next-dev
Change-Id: I93bd873bad46a33a3e6a86971f343981b188b1b3
Pyry Haulos [Tue, 30 May 2017 01:56:36 +0000 (18:56 -0700)]
Merge vk-gl-cts/vulkan-cts-1.0.2 into vk-gl-cts/master
Change-Id: I0a9fdded2cbfd25f1e2a1c73da97b2d8b8431962
Pyry Haulos [Tue, 30 May 2017 01:56:32 +0000 (18:56 -0700)]
Merge vk-gl-cts/vulkan-cts-1.0.1 into vk-gl-cts/vulkan-cts-1.0.2
Change-Id: Ib63e665cb64989f8c5f0c53c9d229e5f17172d62
Boris Zanin [Tue, 16 May 2017 12:32:06 +0000 (14:32 +0200)]
Allow pop-free clipping for lines
Following test checks has been relaxed:
* dEQP-VK.rasterization.primitives.lines_wide
* dEQP-VK.rasterization.primitives.line_strip_wide
* dEQP-VK.rasterization.primitives_multisample_2_bit.lines_wide
* dEQP-VK.rasterization.primitives_multisample_4_bit.lines_wide
* dEQP-VK.rasterization.primitives_multisample_8_bit.lines_wide
Components: Vulkan
VK-GL-CTS issue: 421
Change-Id: I21c04015d36ae55c20ef1c1dda8e2d1fee471221
Yanjun Zhang [Thu, 11 May 2017 22:51:37 +0000 (15:51 -0700)]
Check 'drawIndirectFirstInstance' feature to run indirect draw tests
Component: Vulkan
VK-GL-CTS issue: 413
Change-Id: I13a86721ec76ac50af55e0730fd50e3d7ce159d8
Jason Ekstrand [Fri, 19 May 2017 04:36:15 +0000 (21:36 -0700)]
dEQP-VK: Fix an incorrect layout transition
The tests upload data to the resolve destination using CopyImageToBuffer
prior to doing a resolve to a chunk out of the middle of the image. This
lets the test validate the resolve to a subarea works correctly.
However, they were also transitioning the destination from UNDEFINED to
TRANSFER_DST_OPTIMAL between uploading the data and doing the resolve.
This transition destroys the contents of the image making verifying that
contents incorrect. The correct transition is from TRANSFER_DST_OPTIMAL
to TRANSFER_DST_OPTIMAL.
This affects the following tests:
- dEQP-VK.api.copy_and_blit.resolve_image.partial*
- dEQP-VK.api.copy_and_blit.resolve_image.with_regions*
Change-Id: I9336195d7977d7dd2ffb057525134846b10e8010
Oivind Boge [Tue, 16 May 2017 14:04:01 +0000 (16:04 +0200)]
Fixed invalid usage of VkBufferImageCopy struct
The offset member of VkBufferImageCopy was violating the
valid usage. The offset is now calculated using lowest
common denominator between the pixelSize and 4.
Affects:
dEQP-VK.api.image_clearing.*
Components: Vulkan
VK-GL-CTS issue: 422
Change-Id: I1ef07e06f790a9ed403941b1d94c7840485cec3e
Slawomir Cygan [Mon, 29 May 2017 20:01:49 +0000 (22:01 +0200)]
Build fix for X11-less Linux builds
The combination of recent refactor on release branch and
merge to master resulted in XinitThreads being called from
code that may be compiled even if X11 API is not available.
Components: Framework
VK-GL-CTS Issue: 450
Change-Id: Ia7d1d23eabd1b222d5039868c1fb762e1d42f01f
Alexander Galazin [Mon, 29 May 2017 08:32:47 +0000 (10:32 +0200)]
Update KC CTS ref
Components: OpenGL
VK-GL-CTS issue: 440
Affects:
GL4*-CTS.gtf42.GL3Tests.texture_storage.texture_storage_texture_levels
Change-Id: Id0b338bb74d3b1923744556527b45f3e8db8db38
Jeannot Breton [Thu, 25 May 2017 19:10:31 +0000 (14:10 -0500)]
Use 1.0 for shadow texture expected result
Change the texture clamp test to use 1.0 as the expected value
for shadow texture.
It's now required to pass <format> to generateExpectedResult
Note that the path using compute shader is doing an imageLoad on
depth texture so is not using a depth compare
Affects:
KHR-GL45.sparse_texture_clamp_tests.*
Components: OpenGL
VK-GL-CTS issue: 444
Change-Id: I94c79abe1b9b932471d1d8abdb8819ee3d7cc947
Jeannot Breton [Thu, 25 May 2017 00:40:47 +0000 (19:40 -0500)]
Skip uncommitted depth/stencil test validation
The test in UncommittedDepthStencil expects the stencil buffer to be
unmodified because the shader is doing an uncommitted sparse fetch
This is incorrect, the depth/stencil should be unmodified only if
the depth/stencil buffer are uncommitted and it's not the case,
they are fully-committed non-sparse depth/stencil buffer
This change skip uncommitted depth/stencil test validation
Affects:
KHR-GL45.sparse_texture2_tests.*
Components: OpenGL
VK-GL-CTS issue: 439
Change-Id: I909937081f7058d0fbc57469626ab3d34d43486a
Arkadiusz Sarwa [Thu, 6 Apr 2017 09:56:17 +0000 (11:56 +0200)]
MultiView extended tests
Affects:
dEQP-VK.multiview.*
New testcases:
dEQP-VK.multiview.input_attachments.*
dEQP-VK.multiview.instanced.*
dEQP-VK.multiview.input_instance.*
dEQP-VK.multiview.draw_indirect.*
dEQP-VK.multiview.clear_attachments.*
dEQP-VK.multiview.secondary_cmd_buffer.*
Components: Vulkan
VK_GL_CTS Issue: #70
Authors: Iago Toral Quiroga, Arkadiusz Sarwa
Change-Id: If45159d462186380cf3e8e1b6cd70c38af153762
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
Jeannot Breton [Thu, 25 May 2017 20:48:20 +0000 (15:48 -0500)]
Fix sparse cubemap array tests issues
Add cubeMapArrayRefZDef, a new shader token used as <compare>
parameters on some shadow cube map array texture instructions
Add <CUBE_REFZ_DEF> to some FunctionToken argument list definitions.
It will be replaced by the value of cubeMapArrayRefZDef.
Copy the depth reference value to s.cubeMapArrayRefZDef when we
generate the shader tokens
Change the way cube map array texture coordinate are computed in
the shader to support array with more than 6 layers
Specify that textureGradClampARB on shadow cubemap array is not
supported
Generate cube map array texture coordinate attributes as a vec4
with different coordinate for each layer
Affects:
KHR-GL45.sparse_texture2_tests.*
KHR-GL45.sparse_texture_clamp_tests.*
Components: OpenGL
VK-GL-CTS issue: 445
Change-Id: Ia9fb2240396ab4a34dd697d0b96985da35dfe802
Jeannot Breton [Wed, 24 May 2017 21:21:13 +0000 (16:21 -0500)]
Skip height validation on TEXTURE_1D_ARRAY
In verifyTexStorageInvalidValueErrors the test validate that a
GL_INVALID_VALUE error is returned by the GL when the height
parameters of the texStorage call is invalid.
The height is ignored by the texStorage call for 1d array, so the
error is never generated.
We should skip this validation for 1d array
Affects:
KHR-GL45.sparse_texture_tests.*
Components: OpenGL
VK-GL-CTS issue: 437
Change-Id: Ibe93db467deb560f5394b4b658dfa3f32a953709
Jeannot Breton [Thu, 25 May 2017 00:10:18 +0000 (19:10 -0500)]
Fix texPageCommitment alignment test
In verifyInvalidValueErrors, the test wants to validate that
texPageCommitment returns a GL_INVALID_VALUE error when the page
depth offset is not a multiple of pageSizeZ.
However if pageSizeZ equals 1, any z offset will be a multiple of
pageSizeZ and the test should not return an error.
Logic is added to make sure there's really an alignment error
Affects:
KHR-GL45.sparse_texture_tests.*
Components: OpenGL
VK-GL-CTS issue: 438
Change-Id: If7a00dee071c1dafabbda608f7cdbb14d1eb56b3
Jeannot Breton [Thu, 25 May 2017 18:08:39 +0000 (13:08 -0500)]
textureClamp texcoord with shadow 1d uses vec3
This change modifies the current shader generation for textureClamp
subtests.
s.coordType and s.sizeDef will now use vec3 for sampler1DArrayShadow
and sampler1DShadow
Affects:
KHR-GL45.sparse_texture_clamp_tests.*
Components: OpenGL
VK-GL-CTS issue: 443
Change-Id: I025061981877a62b6eed6bcc6c783f6fdc68c7d3
Jeannot Breton [Thu, 25 May 2017 14:34:52 +0000 (09:34 -0500)]
Initialize FunctionToken for every iteration
The change initializes the variable inside the loop so it gets
re-initialized at every iteration.
This help avoid issues where changes accumulates at every iteration
Affects:
KHR-GL45.sparse_texture_clamp_tests.*
Components: OpenGL
VK-GL-CTS issue: 442
Change-Id: I10eac411a03b3eff5139026ac004dc2df0c025f0
Jeannot Breton [Thu, 25 May 2017 14:02:56 +0000 (09:02 -0500)]
Set uncommited region access expected data to 0
In the GL_TEXTURE_CUBE_MAP path, the expected data is initialized
to 0xff. This seems incorrect.
The test will only fecth the uncommitted region of the texture which
should return 0.
This change fixes this issue and initializes the data to 0
Affects:
KHR-GL45.sparse_texture2_tests.*
KHR-GL45.sparse_texture_clamp_tests.*
Components: OpenGL
VK-GL-CTS issue: 441
Change-Id: Ic00cdfde24248d1640fe458c8f0a547d7d174e3d
Jeannot Breton [Wed, 24 May 2017 20:27:14 +0000 (15:27 -0500)]
Return an error if the pagesize index is invalid
In verifyTexStorageVirtualPageSizeIndexError, the test call
texStorage with a VIRTUAL_PAGE_SIZE_INDEX texture parameter set
to NUM_VIRTUAL_PAGE_SIZES + 1.
However the verifyError after the texStorage expect GL_NO_ERROR.
It should be GL_INVALID_OPERATION
Affects:
KHR-GL45.sparse_texture_tests.*
Components: OpenGL
VK-GL-CTS issue: 436
Change-Id: I43d02dcbee4bbe2c81feb4a17e9fde7386375656
Jeannot Breton [Mon, 22 May 2017 20:26:07 +0000 (15:26 -0500)]
Fix pack alignment issue on odd window width
The test allocates a buffer of width*height elements and expects the
readPixels to only write to this memory.
This is not correct if the window width is not a multiple of 4
Adding a gl.pixelStorei(GL_PACK_ALIGNMENT, 1) before the readPixels
fixes the issue
Affects:
KHR-GL45.indirect_parameters_tests.MultiDrawArraysIndirectCount
Components: OpenGL
VK-GL-CTS issue: 433
Change-Id: I7f8b92af7b5a27a6770e7cde23e51df30508a3c0
James Helferty [Wed, 24 May 2017 15:54:42 +0000 (11:54 -0400)]
Remove OUT_OF_MEMORY coverage of buffer api
The OpenGL spec leaves much of the behaviour around OUT_OF_MEMORY
errors undefined, which makes it difficult to test for them. Regardless
of whether the error is generated or not, the GL context is by
definition left in an undefined state, which could invalidate any
subsequent tests' results.
This change removes OUT_OF_MEMORY test coverage.
VK-GL-CTS issue 435
Component: OpenGL
Affects:
KHR-GL45.direct_state_access.buffers_errors
Change-Id: I6436d4d72a0a7b7cd08336895e400d85bea8da15
Filip Demczewski [Wed, 4 Jan 2017 13:30:28 +0000 (14:30 +0100)]
Added CTS_ARB_shader_ballot specification proposal
affects:
GL45-CTS.shader_ballot_tests.*
components: OpenGL
VK-GL-CTS issue: 143
Change-Id: Ida320ac444665f09edd86d6a69aae9af7515a237
Alexander Galazin [Wed, 24 May 2017 15:15:12 +0000 (17:15 +0200)]
Merge vk-gl-cts/master into vk-gl-cts/vulkan-cts-next-dev
Change-Id: I7b3bddd72baec1544475f3320aca2a13a59ffa3c
Alexander Galazin [Wed, 24 May 2017 15:15:11 +0000 (17:15 +0200)]
Merge vk-gl-cts/opengl-es-cts-3.2.3 into vk-gl-cts/master
Change-Id: I95690b5479602db484d2f89bdc711a683afe96b4
Graeme Leese [Thu, 11 May 2017 15:17:02 +0000 (16:17 +0100)]
Fix uniform location use in robust_buffer_access
Common code will try to set the texture at uniform location 0, so change
the ES shader to use location 0.
Affects: KHR-GLES32.robust.robust_buffer_access_behavior.texel_fetch
Components: OpenGL
VK-GL-CTS Issue: 416
Change-Id: I6e4e291b33072b16e1ab73eb8592afd00687adc7
Alexander Galazin [Wed, 17 May 2017 09:39:12 +0000 (11:39 +0200)]
Remove dEQP-GLES31.*.vertex_array.*_invalid_map
The tests expects GL_INVALID_OPERATION to be generated if
a non-zero buffer object name is bound to an enabled array
or the element array and the buffer object's data store
is currently mapped.
Such behavior is not required by the specification.
Components: OpenGL
Affects:
dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_elements_base_vertex_invalid_map
dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_elements_instanced_base_vertex_invalid_map
dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_range_elements_base_vertex_invalid_map
VK-GL-CTS issue: 429
Change-Id: Ib7e9c95dde9b86f227b3d014210a2fe732315f31
Pyry Haulos [Tue, 16 May 2017 14:25:35 +0000 (07:25 -0700)]
Remove unused function from es31fSRGBDecodeTests.cpp
Unused function causes compiler warnings to appear with recent GCC
versions.
Change-Id: I941c579994acbc9146df86acf5b9da9ee85341f5
(cherry picked from commit
1ee59ff98641dc0be7511e03e37b5843ff7eed82)
Alexander Galazin [Thu, 11 May 2017 12:27:20 +0000 (14:27 +0200)]
Fix texture/sampler mapping in sRGB tests
sRGB decode tests assume that an API side texture with index i
is connected with a shader sampler variable uTexture with index i.
This relation was however incorrectly established, e.g.
the tests were mapping texture0 to a sampler with location 0, while
such sampler was not necessarily uTexture0.
This change fixes the mapping and makes the relation more obvious.
Components: AOSP
Affects:
dEQP-GLES31.functional.srgb_texture_decode.skip_decode.*.toggled
dEQP-GLES31.functional.srgb_texture_decode.skip_decode.*.conversion_gpu
Google bug:
38257749
VK-GL-CTS issue: 428
Change-Id: I16508f6033b31583b1c5973b70a610dd59e78e8f
(cherry picked from commit
c8efb45eadba4a910ab5770b2207582cf1bb7ca0)
Alexander Galazin [Wed, 10 May 2017 08:36:53 +0000 (10:36 +0200)]
Adjust out of surface verification for wide lines
Wide lines rasterization tests may draw lines out of
the allocated surfaces. Such situation causes verification
failures.
This change adjust the verification algorithm to ignore
missing pixels for out of surface rendering.
Components: Framework
Affects:
dEQP-GLES2.functional.rasterization.primitives.lines_wide
dEQP-GLES2.functional.rasterization.primitives.line_strip_wide
dEQP-GLES2.functional.rasterization.primitives.line_loop_wide
VK-GL-CTS issue: 427
Change-Id: Ia70f33fb6daad0d3774ae9edbd438bd14296f1d3
(cherry picked from commit
c065847203ba5c1ec0bba76fe06e0b7a17cbc6af)
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
VK-GL-CTS issue: 426
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
(cherry picked from commit
f5f087e9bd571b5aee3b810957af7051cd82d2c0)
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
VK-GL-CTS issue: 425
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
(cherry picked from commit
e490e2f2158aa9d3aec7d8e385ca3995fefc9ffd)
Alexander Galazin [Mon, 8 May 2017 12:31:15 +0000 (14:31 +0200)]
Fix negative CompressedTexImage2D tests
Certain tests expect GL_INVALID_VAULE for
glCompressedTexImage2D(GL_TEXTURE_2D, -1, 0x8b90, 0, 0, 0, 0, 0).
0x8b90 is a palette format PALETTE4_RGB8 and
the OES_compressed_paletted_texture extension allows
negative values for the level parameter:
Accepted by the <level> parameter of CompressedTexImage2D
Zero and negative values. |level| + 1 determines the number of
mip levels defined for the paletted texture.
This change fixes the tests in presence of
the OES_compressed_paletted_texture extension.
Components: AOSP
Google bug:
38109626
VK-GL-CTS issue: 424
Affects:
dEQP-GLES2.functional.negative_api.texture.compressedteximage2d_neg_level_tex2d
dEQP-GLES2.functional.negative_api.texture.compressedteximage2d_neg_level_cube
Change-Id: Ia37e3fecaf3547abfb209803378114043c63a243
(cherry picked from commit
9de005f0355e389f1782543f34e0fb3c65a0a700)
Graeme Leese [Tue, 9 May 2017 14:21:53 +0000 (15:21 +0100)]
Correct the test conditions for sRGB_write_control
The extension is not part of ES3.2, so the not-supported version of the
tests should be run on ES3.2 implementations without the
GL_EXT_sRGB_write_control extension.
VK-GL-CTS Issue: 389
Components: AOSP
Affects:
dEQP-GLES31.functional.fbo.srgb_write_control.framebuffer_srgb_enabled
dEQP-GLES31.functional.fbo.srgb_write_control.framebuffer_srgb_unsupported_enum
Change-Id: I42a531aa7d1ad38f7a85cde1a5da659f780ec5d5
(cherry picked from commit
2d987e3b1e3c564ddc197124b1c7689aed060b8e)
Alexander Galazin [Wed, 24 May 2017 06:59:51 +0000 (08:59 +0200)]
Update KC CTS ref
Components: OpenGL
VK-GL-CTS issue: 430
Affects:
GTF-GL45.gtf30.GL3Tests.framebuffer_srgb.framebuffer_srgb_draw
Change-Id: I01b5d5bb9ae37b24a44427c1a7cd735f98e60675
David Sodman [Thu, 18 May 2017 16:30:17 +0000 (09:30 -0700)]
Remove dEQP-GLES31.*vertex_array.*_invalid_map tests
Tests made assumptions about GL error returned from glDrawElements*
functions when passed a mapped buffer object, but, that error is not
supported by the specification.
Affects: dEQP-GLES31.*vertex_array.*
Components: AOSP
Bug:
37942569
Change-Id: Ic066dfbe717ff1e7741bec8ee870b09b99362dc7
Pyry Haulos [Wed, 3 May 2017 22:08:12 +0000 (15:08 -0700)]
Add tests for VK_KHR_storage_buffer_storage_class
This change extends following groups to cover the new StorageBuffer
decoration:
* dEQP-VK.glsl.opaque_type_indexing
* dEQP-VK.spirv_assembly.compute.opatomic
VK-GL-CTS issue: 357
Components: Vulkan
Change-Id: I283a39f4e92f1be6597d843c67debc3ae28c9f22
Pyry Haulos [Mon, 22 May 2017 19:44:03 +0000 (12:44 -0700)]
Merge vk-gl-cts/master into vk-gl-cts/vulkan-cts-next-dev
Change-Id: I7d89570a93664a95736113863921985ee1af9d6c
Pyry Haulos [Mon, 22 May 2017 19:34:20 +0000 (12:34 -0700)]
Merge vk-gl-cts/vulkan-cts-1.0.2 into vk-gl-cts/master
Change-Id: Ie841d0a435d1d587450b7c2d57307b37b3295bbb
Slawomir Cygan [Wed, 11 Jan 2017 16:17:11 +0000 (17:17 +0100)]
Refactor X11 and wayland platforms to run alongside each other
This adds a capability for running Vulkan WSI ane EGL tests on both
X11 and wayland compositors from one binary built in 'default' target.
The change replaces X11 & wayland tcu::Platform-s with one common
'linux' platform, that is parametrized by DEQP_SUPPORT_
(X11|GLX|XCB|WAYLAND) at compile time.
This new platform supports creating WSI displays and EGL contexts
for each of compositors enabled at build-time. To choose EGL compositor
use --deqp-egl-display-type=x11 or Wayland.
No functional change is made to 'wayland' target: it is still possible
to build Wayland-only binary using that target.
VK-GL-CTS issue: 83
Components: Framework
Affects: dEQP-VK.wsi.* and all tests using EGL.
Change-Id: I1d8725d1329e1071ac545f765c374d2d7d5a29df
Iago Toral Quiroga [Thu, 11 May 2017 09:11:48 +0000 (11:11 +0200)]
Fix compute shader in robustness tests to produce an output
The compute shader only writes to shared variables, which means
that it doesn't produce any useful output. Shader compiler
backends can see this and mark all uniform variables declared
by the shader as "inactive" and remove them, which would defeat
the purpose of the 'getnuniform' test and lead to a failure.
Fix this by making the compute shader write to a shader storage
buffer object instead, so that uniforms remain active for being
involved in generating a shader output.
Component: OpenGL
VK-GL-CTS issue: 415
Affects:
KHR-GL45.robustness.getnuniform
Change-Id: I67b3fd8eb3a63012b6c46713e17c86d51b42d82e
James Helferty [Mon, 10 Apr 2017 18:20:30 +0000 (14:20 -0400)]
Tie TCS XFB to Desktop GL + NV_gpu_shader5
This change ties the ability to read PATCHES data directly from a
tessellation control shader via transform feedback to the presence of
NV_gpu_shader5 and a desktop context. Any other use of transform
feedback from a tessellation control shader is considered an error.
As part of this change, we also revert a change that used the wrong
notation for consuming PATCHES data with transform feedback.
(Reverts part of
1ab254234c4f6c45036ba68f67980858e0ef5001)
Affects:
KHR-GLES31.core.tessellation_shader.single.xfb_captures_data_from_correct_stage
KHR-GLES32.core.tessellation_shader.single.xfb_captures_data_from_correct_stage
KHR-GL44.tessellation_shader.single.xfb_captures_data_from_correct_stage
KHR-GL45.tessellation_shader.single.xfb_captures_data_from_correct_stage
Component: OpenGL
VK-GL-CTS issue: 365
Change-Id: Ie5619f9146448c54906401d2805de676000b34e8
Jeannot Breton [Wed, 10 May 2017 19:25:02 +0000 (14:25 -0500)]
Remove copy_image special path for rgb9e5/rg11b10
Copy_image is similar to a memcpy. When analyzing copy_image result,
the test have a special path for rgb9e5 and rg11b10.
Instead of using a memcmp, it converts each component to float and
then compare values.
This could be problematic, when data from other formats is
reinterpreted as rgb9e5/rg11b10, the result can be INF or NAN.
Doing a float equal comparison on 2 NAN values will return false,
so we can have 2 identical 32-bits values that are considered
different by the test because they are reinterpreted as float.
This change remove the special path for rgb9e5 and rg11b10.
I don't think it is required since copy_image should be like a
memcpy, a memcmp should be enough to verify the result
Affects:
KHR-GL45.copy_image.functional
Components: OpenGL
VK-GL-CTS issue: 404
Change-Id: Ifc7f7b4c8d62692e9364510ebc4e4162468e9568
Slawomir Cygan [Wed, 10 May 2017 17:09:07 +0000 (19:09 +0200)]
KHR-GL44.khr_debug: create texture before calling glObjectLabel
The test does not call glBindTexture after glGenTextures, so
texture object is not created.
This causes later glObjectLabel GL error checks to fail due to wrong
GL error codes.
Affects: KHR-GL44.khr_debug.*
Components: OpenGL
VK-GL-CTS Issue: 410
Change-Id: I9036264b2c549c58a5a80fb1ec89e1fdaae4b6b7
Pyry Haulos [Thu, 18 May 2017 23:02:58 +0000 (16:02 -0700)]
Merge vk-gl-cts/master into vk-gl-cts/vulkan-cts-next-dev
Change-Id: Ia3866a3a0df54013e3f62f0b1263b9b5085bc548
Pyry Haulos [Thu, 18 May 2017 23:02:57 +0000 (16:02 -0700)]
Merge vk-gl-cts/vulkan-cts-1.0.2 into vk-gl-cts/master
Change-Id: I305e5144dee58d10e2284e1824d9d4683a9c67d8
Pyry Haulos [Thu, 18 May 2017 22:42:53 +0000 (15:42 -0700)]
Fix Vulkan null driver
Vulkan platform was changed to use vkGetInstanceProcAddr(NULL, pName)
for loading all platform-level functions, except vkGetInstanceProcAddr
itself, in commit
bbd3dce44fafaa4b1952b63564022f19b3a65ca3. Null
driver was not adjusted for that change and that resulted calling into
null function pointer early in the initialization code.
Additionally, null driver now advertises HOST_COHERENT memory.
Change-Id: I65c8b37722950de08e337d7df95aa46a0e826c7b
Gabryelle Chamberlin [Wed, 17 May 2017 16:59:34 +0000 (12:59 -0400)]
Added VS2017 Support to Generator
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
Graeme Leese [Thu, 11 May 2017 16:03:23 +0000 (17:03 +0100)]
Fix extension check in ES3.2 BoundingBox test
The test is still using the suffixed name to access gl_BoundingBox[EXT],
which means it still needs to enable the extension.
Affects: dEQP-GLES31.functional.android_extension_pack.shaders.es32.
extension_directive.ext_primitive_bounding_box
Components: AOSP
VK-GL-CTS issue: 423
Change-Id: I652e59b6ca29b1d237028eac57fc860731378c35
(cherry picked from commit
abef7613781dfc4b07b8a37cd17ab5fe3dfe0c01)
Pyry Haulos [Tue, 16 May 2017 18:05:37 +0000 (11:05 -0700)]
Merge vk-gl-cts/master into vk-gl-cts/vulkan-cts-next-dev
Change-Id: I538752108415ebe9a68ca04289e2d3048083a77e
Pyry Haulos [Tue, 16 May 2017 18:03:58 +0000 (11:03 -0700)]
Merge vk-gl-cts/vulkan-cts-1.0.2 into vk-gl-cts/master
Change-Id: Icf7defc7279b1b0cf9f6b13498de3d1456239e9c
Pyry Haulos [Wed, 10 May 2017 16:54:23 +0000 (09:54 -0700)]
Update vulkan.h.in to 1.0.49 and strip unused exts
This change updates vulkan.h.in to match header version 49.
Vendor-specific extensions and KHX extensions that are not covered by CTS
are removed.
gen_framework.py now auto-detects function class from its first argument,
except for vkGet*ProcAddr, which require special handling.
Components: Vulkan
Change-Id: If6e1d959091a9064585bf29ef9983d03649ce513
Pyry Haulos [Tue, 16 May 2017 16:23:57 +0000 (09:23 -0700)]
Merge vk-gl-cts/master into vk-gl-cts/vulkan-cts-next-dev
Change-Id: I6f2d23322dbd2b82afcf6439c8f4c62891745a43
Pyry Haulos [Tue, 16 May 2017 16:12:09 +0000 (09:12 -0700)]
Merge vk-gl-cts/aosp-deqp-dev into vk-gl-cts/master
Change-Id: Iee00ded195e3178e685470b19df25a9b352ddfb5
Pyry Haulos [Tue, 16 May 2017 16:03:30 +0000 (16:03 +0000)]
Remove unused function from es31fSRGBDecodeTests.cpp
am:
1ee59ff986
Change-Id: I0bf132f2d1a09e66768bddc5818906aa0e066967
Pyry Haulos [Tue, 16 May 2017 14:25:35 +0000 (07:25 -0700)]
Remove unused function from es31fSRGBDecodeTests.cpp
Unused function causes compiler warnings to appear with recent GCC
versions.
Change-Id: I941c579994acbc9146df86acf5b9da9ee85341f5
Alexander Galazin [Mon, 15 May 2017 20:17:42 +0000 (20:17 +0000)]
Fix texture/sampler mapping in sRGB tests
am:
c8efb45ead
Change-Id: I23849cbcae67248ac5ca55f443f226d6b1e4389e
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
Change-Id: I01f1273ce0e50f6dd3e8bfa8b13550bff0b6907d
Alexander Galazin [Thu, 11 May 2017 12:27:20 +0000 (14:27 +0200)]
Fix texture/sampler mapping in sRGB tests
sRGB decode tests assume that an API side texture with index i
is connected with a shader sampler variable uTexture with index i.
This relation was however incorrectly established, e.g.
the tests were mapping texture0 to a sampler with location 0, while
such sampler was not necessarily uTexture0.
This change fixes the mapping and makes the relation more obvious.
Components: AOSP
Affects:
dEQP-GLES31.functional.srgb_texture_decode.skip_decode.*.toggled
dEQP-GLES31.functional.srgb_texture_decode.skip_decode.*.conversion_gpu
Google bug:
38257749
Change-Id: I16508f6033b31583b1c5973b70a610dd59e78e8f
Filip Demczewski [Mon, 16 Jan 2017 12:27:50 +0000 (13:27 +0100)]
Added CTS_ARB_shader_ballot tests
Added CTS_ARB_shader_ballot cases:
ShaderBallotAvailabilityTestCase
ShaderBallotBitmasksTestCase
ShaderBallotFunctionBallotTestCase
ShaderBallotFunctionReadTestCase
affects:
GL45-CTS.shader_ballot_tests.*
components: OpenGL
VK-GL-CTS issue: 143
Change-Id: I28c724a84adab7e40edb542e70bc019cde0a0156
Boris Zanin [Mon, 15 May 2017 08:00:50 +0000 (10:00 +0200)]
Fix VS2013 build by avoiding using non-standard C extension
Avoid using C++14 0b prefix.
Affects:
* GL45-CTS.shader_atomic_counter_ops_tests.*
Components: OpenGL
VK-GL-CTS issue: 175
Change-Id: Ia500db76e1112933ad3471e9ac29423ccda81d4f
Boris Zanin [Mon, 15 May 2017 08:00:50 +0000 (10:00 +0200)]
Fix VS2013 build by avoiding using non-standard C extension
Avoid using C++14 0b prefix.
Affects:
* GL45-CTS.shader_atomic_counter_ops_tests.*
Components: OpenGL
VK-GL-CTS issue: 175
Change-Id: Ia500db76e1112933ad3471e9ac29423ccda81d4f