Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix validation warnings #57

Open
wants to merge 23 commits into
base: main
Choose a base branch
from

Commits on Sep 20, 2023

  1. Add a test runner to avoid regressions

    Only tested on Linux.
    
    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    1e9cd15 View commit details
    Browse the repository at this point in the history
  2. Fix validation setup

    VK_LAYER_KHRONOS_validation is the more modern layer
    name. VK_EXT_DEBUG_REPORT_EXTENSION_NAME was mistakenly being
    requested as a layer, request the instance extension instead.
    
    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    7da694c View commit details
    Browse the repository at this point in the history
  3. Fix vkGetDeviceQueue-queueFamilyIndex-00384 validation error

    This happens in noPresent mode, since we aren't supposed to be
    retrieving queues from these families.
    
    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    f9345fa View commit details
    Browse the repository at this point in the history
  4. Add a utility to ignore VUIDs

    And use it to ignore the buffer profile information errors. These will
    become optional soon, and wiring them into the sample app is
    problematic, since the bitstream buffers are created before the video
    profile is known!
    
    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    ef283fa View commit details
    Browse the repository at this point in the history
  5. Forward selection of presentation to the decoder

    Various initialization paths will need this information to become
    validation clean
    
    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    6dd27e5 View commit details
    Browse the repository at this point in the history
  6. Check for physical device features before using them

    This is not complete, but silences some validation warnings. Before
    all features were being turned off!
    
    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    2d3519d View commit details
    Browse the repository at this point in the history
  7. Fix for update sequence count validation error

    Needs better testing
    
    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    f80c786 View commit details
    Browse the repository at this point in the history
  8. Align bitstream offset and size as advertised by implementation

    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    9157d2b View commit details
    Browse the repository at this point in the history
  9. Ignore DPB management validation errors

    Need to figure out better how to handle these
    
    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    fea2318 View commit details
    Browse the repository at this point in the history
  10. Expose transfer queues

    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    e743a86 View commit details
    Browse the repository at this point in the history
  11. NFC: Rename get -> getVideoRelatedQueuesProperties

    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    2dae733 View commit details
    Browse the repository at this point in the history
  12. NFC: AddOptinalDeviceExtension -> AddOptionalDeviceExtension

    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    81d4881 View commit details
    Browse the repository at this point in the history
  13. NFC: Remove unnecessary nesting

    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    87524e1 View commit details
    Browse the repository at this point in the history
  14. NFC: Remove dead variable

    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    babc3a5 View commit details
    Browse the repository at this point in the history
  15. Fix a sync2 validation warning

    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    997557e View commit details
    Browse the repository at this point in the history
  16. NFC: Display the device being used

    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    fe439ee View commit details
    Browse the repository at this point in the history
  17. Use concurrent sharing when the transfer queue != decode queue

    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    f16ad34 View commit details
    Browse the repository at this point in the history
  18. Always keep DECODE_DST bit on the output image

    For linear mode on coincident implementations, this gives an
    validation error (although it feels OK to do...)
    
    Just make the layer happy, I suspect we should be using the image
    copying approach in general, and rather copy to a buffer.
    
    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    e7c6207 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    401baf4 View commit details
    Browse the repository at this point in the history
  20. Ensure the timeline semaphore is selected

    This is now unconditionally used, perhaps we should flag it off if not
    supported, so as to run on more devices.
    
    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    5c40245 View commit details
    Browse the repository at this point in the history
  21. Properly check supported formats and assert linear tiling is not supp…

    …orted
    
    Demonstration for Tony, per our discussion in the weekly meeting.
    
    +    assert(!outputImageSupportsLinearTiling);
    
    Please check if this is a driver bug. In general it might not be
    supported though, and we will need the ImageToBuffer fallback anyway.
    
    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    1892443 View commit details
    Browse the repository at this point in the history
  22. Remove linear output handling

    Lets rely on CopyImageToBuffer, and tidy up the image handling code in
    the process.
    
    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    9a818dd View commit details
    Browse the repository at this point in the history
  23. Use CopyToBuffer in ConvertFrameToNV12

    This is not proposed to merge, rather to help a discussion. Of course
    the code should be abstracted a bit, looking for early feedback.
    
    This also doesn't work for 10-bit out of the box. Need to do some bit
    manipulations of the packed 10-bit values to convert it properly to
    RAW YUV format (bottom 6 bits clear, rather than top 6)
    
    Before doing that, want to check if this is an acceptable approach in
    general, or whether we should enforce linear tiling for output images.
    
    Signed-off-by: Charlie Turner <[email protected]>
    charlie-ht committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    b18ab00 View commit details
    Browse the repository at this point in the history