• Lynne's avatar
    hwcontext_vulkan: correctly download and upload flipped images · e3c7b224
    Lynne authored
    We derive the destination buffer stride from the input stride,
    which meant if the image was flipped with a negative stride,
    we'd be FFALIGNING a negative number which ends up being huge,
    thus making the Vulkan buffer allocation fail and the whole
    image transfer fail.
    
    Only found out about this as OpenGL compositors can copy an entire
    image with a single call if its flipped, rather than iterate over
    each line.
    e3c7b224
hwcontext_vulkan.c 98.1 KB