diff options
| author | John Zulauf <jzulauf@lunarg.com> | 2018-01-03 08:47:35 -0700 |
|---|---|---|
| committer | jzulauf-lunarg <32470354+jzulauf-lunarg@users.noreply.github.com> | 2018-01-04 15:51:15 -0700 |
| commit | 7b3eaf4ad96b307fa75bddea1bbd9938893ef665 (patch) | |
| tree | c107342d812b0037eb619ff20943d9692688c8bf | |
| parent | 90732cebb37d1524e90026235da2b1f72076acee (diff) | |
| download | usermoji-7b3eaf4ad96b307fa75bddea1bbd9938893ef665.tar.xz | |
icd: GetImageSubresourceLayout zeros passed layout
Calling tests use return values from GetImageSubresourceLayout to
compute offsets in texures. Zero'd values are safe for this usage and
add minimal overhead to icd.
Change-Id: If52cf240925d2f7a41bb22d87519a918be5eb60a
| -rw-r--r-- | scripts/mock_icd_generator.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/mock_icd_generator.py b/scripts/mock_icd_generator.py index de8a9066..38895215 100644 --- a/scripts/mock_icd_generator.py +++ b/scripts/mock_icd_generator.py @@ -663,6 +663,10 @@ CUSTOM_C_INTERCEPTS = { } mapped_memory_map.erase(memory); ''', +'vkGetImageSubresourceLayout': ''' + // Need safe values. Callers are computing memory offsets from pLayout, with no return code to flag failure. + *pLayout = VkSubresourceLayout(); // Default constructor zero values. +''', } # MockICDGeneratorOptions - subclass of GeneratorOptions. |
