Skip to content
  • Juston Li's avatar
    zink: disable cpu_storage for PIPE_USAGE_STREAM · e1b4b399
    Juston Li authored and Marge Bot's avatar Marge Bot committed
    See 8af8dc97
    
     ("tc: do a GPU->CPU copy to initialize cpu_storage")
    
    On zink, initializing cpu_storage that requires a GPU->CPU copy is
    particularly expensive; in addition to a sync, the buffer_map call to
    copy the GPU data submits a batch and has to wait for that batch.
    
    Take the PIPE_USAGE_STREAM hint and disable using cpu_storage on
    resources that "will be modified once and used at most a few times"
    where the benefit of cpu_storage is outweighed by the heavy init time.
    
    Signed-off-by: default avatarJuston Li <justonli@google.com>
    Part-of: <!29294>
    e1b4b399