Skip to content
  • Niklas Haas's avatar
    vulkan: rewrite buffer memory placement logic · 3ef1cfc2
    Niklas Haas authored
    Explicitly defaulting the buffer type was also not the right thing,
    since it e.g. conflicted with the `params->host_mapped` logic further
    below. Instead of trying to default the memory type up there, I instead
    inverted this logic to do the defaulting at the bottom, after all of the
    type-specific requirements have been forced.
    
    This order should hopefully be more robust against future such bugs.
    3ef1cfc2