Skip to content

Conversation

@qining
Copy link
Contributor

@qining qining commented Jun 5, 2018

  1. If an image has linear tiling and has initial layout set to
    PREINITIALIZED, all its subresources data pool will be linked back to
    the bound device memory, no new pool will be created for those
    subresources.

  2. If an image has linear tiling and has initial layout set to
    PREINITIALIZED, and it can not be used as TRANSFER_DST, render target or
    imageStore target, its data will be primed by maping memory and flush
    map memory ranges.

qining added 2 commits June 5, 2018 18:56
1) If an image has linear tiling and has initial layout set to
PREINITIALIZED, all its subresources data pool will be linked back to
the bound device memory, no new pool will be created for those
subresources.

2) If an image has linear tiling and has initial layout set to
PREINITIALIZED, and it can not be used as TRANSFER_DST, render target or
imageStore target, its data will be primed by maping memory and flush
map memory ranges.
@qining qining requested a review from AWoloszyn June 5, 2018 23:00
@qining
Copy link
Contributor Author

qining commented Jun 5, 2018

Most of the changes in image_primer.go is just to return 'better' errors. The only real change in that file is func primeByPreinitialization().

@qining
Copy link
Contributor Author

qining commented Jun 6, 2018

Windows and Mac builds are tested locally, all passed.

@qining qining merged commit b468b98 into google:master Jun 6, 2018
@qining qining deleted the preinitialized-image branch October 23, 2018 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants