diff options
| author | Tobin Ehlis <tobine@google.com> | 2017-10-26 15:21:51 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2017-10-30 11:01:05 -0600 |
| commit | 9638acc0d8266d56a86270e2fc5f772dbfd0aaf9 (patch) | |
| tree | 218a3448734d87ae9e768d1819f23e298a0cf770 /scripts | |
| parent | ce653bcdf04b8b6f33b8d6c5603f0bba6706bb88 (diff) | |
| download | usermoji-9638acc0d8266d56a86270e2fc5f772dbfd0aaf9.tar.xz | |
icd:Limit image properties for linear images
If an image is linear, return max mips, layers, and sample count of 1.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/mock_icd_generator.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/mock_icd_generator.py b/scripts/mock_icd_generator.py index f9597881..e9dda6f6 100644 --- a/scripts/mock_icd_generator.py +++ b/scripts/mock_icd_generator.py @@ -599,7 +599,12 @@ CUSTOM_C_INTERCEPTS = { ''', 'vkGetPhysicalDeviceImageFormatProperties': ''' // TODO: Just hard-coding some values for now - *pImageFormatProperties = { { 4096, 4096, 256 }, 12, 256, 0x7F, 4294967296 }; + // TODO: If tiling is linear, limit the mips, levels, & sample count + if (VK_IMAGE_TILING_LINEAR == tiling) { + *pImageFormatProperties = { { 4096, 4096, 256 }, 1, 1, VK_SAMPLE_COUNT_1_BIT, 4294967296 }; + } else { + *pImageFormatProperties = { { 4096, 4096, 256 }, 12, 256, 0x7F, 4294967296 }; + } return VK_SUCCESS; ''', 'vkGetPhysicalDeviceImageFormatProperties2KHR': ''' |
