aboutsummaryrefslogtreecommitdiff
path: root/scripts/unique_objects_generator.py
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2017-03-15 12:18:31 -0600
committerTobin Ehlis <tobine@google.com>2017-03-22 10:19:45 -0600
commit59adbdf4c9c5adf8333f86cba7a5dce76f72fc45 (patch)
treefd4e1071c1bf25e277eb83b808277809ee3e1b32 /scripts/unique_objects_generator.py
parent4ed818a0ae67be5bdb70d7d772e4faac2ee0199a (diff)
downloadusermoji-59adbdf4c9c5adf8333f86cba7a5dce76f72fc45.tar.xz
layers:Refactor image layout verify/set
VerifyImageLayout had a side effect of setting image layout state if the layout had not been seen by the cmd buffer. This update moves the code to set the layout outside of the verify function and instead puts it into new SetLayout* functions that are now called in the appropriate PreCallRecord* functions. Note that the previous behavior caused a side effect where layouts could be updated even when the call down the chain did not occur. The updated behavior will always update the layout to what is passed as the explicit layout for any image copy operations whenever the call down the chain is made. This is desirable b/c if the layout didn't match the app saw the error during the Validate* portion of the call and if they chose to ignore it then validation should reflect the layout state of the image that was set by the call. Since the side effect mentioned above is no longer present, this change includes an update to InvalidImageLayout test where a second call to vkCmdCopyImage() is made in order to actually transition the initial image layout state so that expected errors are correct going fwd.
Diffstat (limited to 'scripts/unique_objects_generator.py')
0 files changed, 0 insertions, 0 deletions