Skip to content
Snippets Groups Projects
  1. May 14, 2018
  2. May 12, 2018
    • Tobin Ehlis's avatar
      icd:Add GPDP2 support for descriptor indexing · e2b20b17
      Tobin Ehlis authored
      Set some default mock icd values for vkGetPhysicalDeviceProperties2
      query of VkPhysicalDeviceDescriptorIndexingPropertiesEXT props.
      e2b20b17
    • Tobin Ehlis's avatar
      layers:Moving to GPDF2 · 2490b80e
      Tobin Ehlis authored
      Update layer_data struct to track safe_VkPhysicalDeviceFeatures2 struct
      instead of VkPhysicalDeviceFeatures. Currently just doing previous
      checks using the VkPhysicalDeviceFeatures member of GPDF2 struct. Will
      follow-on with checking against extension structs.
      2490b80e
    • Tobin Ehlis's avatar
      layers:Store GPDF2 struct · 863f214c
      Tobin Ehlis authored
      In PHYSICAL_DEVICE_STATE track safe_VkPhysicalDeviceFeatures2 instead
      of the old VkPhysicalDeviceFeatures. Initially just passing the
      VkPhysicalDeviceFeatures of VkPhysicalDeviceFeatures2 wherever this was
      used. This is laying groundwork to start using/comparing extended
      features in core validation.
      863f214c
  3. May 11, 2018
    • Tobin Ehlis's avatar
      icd:Fix Windows build · dbb498ce
      Tobin Ehlis authored
      Make sure we generate vk_typemap_helper.h for mock icd.
      dbb498ce
    • Cort Stratton's avatar
      layers: add missing VkFormatFeatureFlags checks · 0b0f2ef4
      Cort Stratton authored
      Checks for TRANSFER_SRC / TRANSFER_DST formats were added to:
      - vkCmdClearColorImage
      - vkCmdCopyImage
      - vkCmdResolveImage
      - vkCmdCopyImageToBuffer
      - vkCmdCopyBufferToImage
      These checks require VK_KHR_maintenance1 or Vulkan 1.1.
      
      Existing checks were adapted to use the new helper function:
      - vkCmdClearDepthStencilImage
      - vkCmdBlitImage
      0b0f2ef4
    • Cort Stratton's avatar
      layers: Add GetApiVersion() helper · e65b8445
      Cort Stratton authored
      e65b8445
    • Dave Houlton's avatar
      layers: fix imageview 3D layout transition · 56fe30ef
      Dave Houlton authored
      Fix an oversight when recording a 3D image subresource layout transition
      that is set by way of a 2D or 2D_ARRAY image view.
      
      Change-Id: Ifbf7645fb2705fef6f82030f4e3e1da0e9da2f2c
      56fe30ef
    • Jeremy Kniager's avatar
      demos: Add MacOS surface output to vulkaninfo · 2ae2eee3
      Jeremy Kniager authored
      Added output for a MacOSSurface in vulkaninfo
      and modified the CMake files to include the
      new files needed for this change:
      
      metal_view.m Objective-C code to hook into Metal
      metal_view.h metal_view.m's header file
      
      Change-Id: Ib7f9185a86703b2a300b2ce3be46f130c90d1b6b
      2ae2eee3
    • Tobin Ehlis's avatar
      icd:Add support for extended features queries · 49601bab
      Tobin Ehlis authored
      Update mock ICD generator so that if we have an extension that's been
      promoted to core, the core version will call any existing custom
      implementation of the extension function.
      
      Update Features query to detect the two existing extension structs
      (VkPhysicalDeviceDescriptorIndexingFeaturesEXT and
      VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT) and enable all of
      those features when those queries are present.
      49601bab
    • Tobin Ehlis's avatar
      tests:Compare VkBool32 against VK_FALSE · 10cf18c3
      Tobin Ehlis authored
      10cf18c3
  4. May 10, 2018
  5. May 09, 2018
    • William Henning's avatar
      tests: Fix min image transfer granularity test · 9b993e42
      William Henning authored
      This test as written was guaranteed to be skipped. It would skip the
      test if the first graphics queue family found had a
      minImageTransferGranularity with a width, height, or depth of less
      than 4. The spec guarantees that any graphics queue family's min
      transfer granularity will be 1 for the width, height, and depth. The
      rewritten test is now only skipped if no queue supporting copy
      operations is found with a large enough granularity.
      
      Also the usage flags on the src and dst image needed to be fixed.
      Additionally, the extent of the copies dst and src images were changed
      to always be multiples of the min transfer granularity.
      
      Finally, I added a device profile that has a queue with a large enough
      min transfer granularity to not skip this test.
      9b993e42
    • William Henning's avatar
      tests: Clean up multiplane view format test · 2bfdad9b
      William Henning authored
      Simplified this test by using VkImageObj in place of direct vulkan
      calls. Additionally added a fake multiplane image format to the geforce
      940m device profile so that this repo would have a device profile that
      doesn't skip this test.
      2bfdad9b
  6. May 08, 2018
  7. May 07, 2018
  8. May 04, 2018
    • Shannon McPherson's avatar
      layers: Track display and display mode objects · 3fb58f98
      Shannon McPherson authored
      Add VkDisplayKHR and VkDisplayModeKHR tracking to
      VK_LAYER_LUNARG_object_tracker.
      
      Change-Id: I63004cfe734793593bea12700ea9cd1bdefeab0d
      3fb58f98
    • Cort Stratton's avatar
      layers: image transfer granularity check fixes · 766591b5
      Cort Stratton authored
      - Use appropriate VUIDs for all checks
      - Update tests to check for VUIDs instead of message substrings
      - Image granularity tests should be also be run on compressed images.
        They're *mostly* redundant with existing compressed-format-only checks,
        but I can't convince myself that they're *always* redundant, and the
        spec doesn't say to skip them.
      - Removed comments that the checks should be moved elsewhere; IMO they're
        fine where they are, but I welcome second opinions.
      - Compressed-format alignment checks should also apply to _422 single-plane
        formats.
      766591b5
    • Mark Lobodzinski's avatar
      layers: Fix down-chain null funcptr crashes · 365a649c
      Mark Lobodzinski authored
      Modified dispatch table helper to replace null device extension
      function pointers with an appropriate stub function.
      
      Change-Id: If5e22333f084d3f41c0eefdf3e82c9060b872e8c
      365a649c
    • Liam Middlebrook's avatar
      demos: Fix cube ActualTimeLate function · b8d7659a
      Liam Middlebrook authored
      
      The ActualTimeLate function in cube.c is supposed to check if a
      VkPastPresentationTimingGOOGLE structure indicates that the
      presentation happened within a refresh-cycle duration of the
      desired presentation time.
      
      However currently ActualTimeLate will always return false, because
      it is calculating the presentation deadline as `actual + rdur`.
      This change calculated the presentation deadline as
      `desired + rdur`.
      
      Reviewed-by: default avatarAndy Ritger <aritger@nvidia.com>
      b8d7659a
    • Karl Schultz's avatar
      tests: Add tests for indexed draw checking · eace35d5
      Karl Schultz authored
      New tests to exercise new checks for indexed draw count and offset.
      
      Add VkRenderFramework::DestroyRenderTarget() and call it from
      VkTriangleTest so that VkTriangleTest cleans up after itself,
      allowing it to be called multiple times within a single framework
      instantiation.
      
      Introduce VkBufferObj as a typedef for vk_testing::Buffer.
      
      Fixes #2448
      
      Change-Id: Iab513c7f50ef390c210ea76e7ef3f67d7e3d40f8
      eace35d5
    • Karl Schultz's avatar
      layers: Add checks for indexed draw count/offset · 629a6939
      Karl Schultz authored
      Check that the first index and index count are within the bounds
      of an index buffer for DrawIndexed, taking into account any
      offset specified in the binding of the index buffer.
      
      Fixes #2448
      
      Change-Id: I47a1acbf0bb0e586692c75380d8d43a1c72450fd
      629a6939
    • Cort Stratton's avatar
  9. May 03, 2018
  10. May 02, 2018
  11. Apr 30, 2018
    • John Zulauf's avatar
      layers: PreRecord Free/Destroy calls · 66cd8ddf
      John Zulauf authored
      To avoid Destroy/Create and Free/Alloc race conditions (when a driver
      returns a destroyed(freed) handle between the PreCall and PostCall
      phases of a validation intercept routine, PostCallRecord functionality
      has been moved to PreCall.  This affects the following calls
      
      	FreeMemory
      	DestroyFence
      	DestroySemaphore
      	DestroyEvent
      	DestroyQueryPool
      	DestroyBuffer
      	DestroyBufferView
      	DestroyImage
      	DestroyImageView
      	DestroyPipeline
      	DestroySampler
      	DestroyDescriptorSetLayout
      	DestroyFramebuffer
      	DestroyRenderPass
      	FreeDescriptorSets
      
      Did not alter the destroy functions for Instance, Device, or the Debug
      or layer extensions.
      
      Change-Id: I5133982eaa1a0c94283fa922d9c3bcc90b5a6223
      66cd8ddf
    • Slawomir Cygan's avatar
      core validation: extend CLEAR LOAD_OP check to new DS image layouts · abaf0ff0
      Slawomir Cygan authored
      Extend check for load operation vs first time use image layout to
      new read-only depth stencil image layouts.
      
      The new layouts were added in VK_KHR_maintenance2 / Vulkan 1.1
      and follow similar restrictions to VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL.
      
      Spec:
      
      "
      For any member of pAttachments with a loadOp equal to VK_ATTACHMENT_LOAD_OP_CLEAR,
       the first use of that attachment must not specify a layout equal to
      VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL.
      
      For any member of pAttachments with a stencilLoadOp equal to VK_ATTACHMENT_LOAD_OP_CLEAR,
      the first use of that attachment must not specify a layout equal to
      VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL.
      "
      abaf0ff0
    • Cort Stratton's avatar
    • Cort Stratton's avatar
      layers: validate dual-source-blend factors · 7f49d491
      Cort Stratton authored
      Fixes #2614
      
      Fixed the following issues with the previous checks:
      
      - Only alpha blend factors were checked
      - The checks did not use the individual VUIDs for
        each blend factor field
      - The check was being run at pipeline bind time,
        not pipeline creation time
      7f49d491
  12. Apr 28, 2018
Loading