History log of /frameworks/native/vulkan/nulldrv/null_driver.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2676338dd692b7d1e1c276d82e6b0492db53ab2e 20-May-2016 Jesse Hall <jessehall@google.com> vulkan: Update vulkan.h to 1.0.13

vulkan.h and vk_platform.h imported from
github.com:KhronosGroup/Vulkan-Docs @ 2656f459333b3a1dc63619a9ebd83490eea22e93

Updated vulkan.api to reflect the changes in vulkan.h. There were no
changes to any of the code we generate. I didn't update the
vulkan_h.tmpl, since we're not currently using it and it was already
out of date.

Bug: 28878216
Change-Id: I71676683148fae7ad8799bd39386a931319aa395
/frameworks/native/vulkan/nulldrv/null_driver.cpp
d3b1450e6606cacff0d2c6e0ff6e45f1420ad5ee 21-Apr-2016 Jesse Hall <jessehall@google.com> vknulldrv: Use a default allocator when none provided

The loader used to always provide an allocator, even if the app
didn't. It no longer does that, so the null driver must be prepared to
provide its own default allocator.

Fixes bug 28303142

Change-Id: I6ab946913dc4edaf2a0b07ab9ae8c43be69b3ed6
/frameworks/native/vulkan/nulldrv/null_driver.cpp
e2948d83f352b9a093252a06757f76a88f5355d3 25-Feb-2016 Jesse Hall <jessehall@google.com> vulkan: Update to vulkan.h 1.0.3

Change-Id: Ic607533768989aa65e41b9b0e459d7af170ab180
/frameworks/native/vulkan/nulldrv/null_driver.cpp
45ba96e44c0d7d5dac6e86f0bfbfc44b4f2618ac 10-Feb-2016 Jesse Hall <jessehall@google.com> Merge "vknulldrv: Report physical device limits" into nyc-dev
c34849e83c9bdf2a1d768e621ba6304f905fba93 10-Feb-2016 Jesse Hall <jessehall@google.com> vknulldrv: Report physical device limits

Limits are set to the minimum values allowed by the spec.

Change-Id: Ib3ca99ad6d1537e2ed3fa29e15368419f2331ba7
/frameworks/native/vulkan/nulldrv/null_driver.cpp
00f10fec7d5cb96bc980a6d272dc8d33597a1b20 09-Feb-2016 Jesse Hall <jessehall@google.com> vkinfo: Fix bytes -> megabytes conversion

Also only report 256 MiB (chosen arbitrarily) as the null driver's
memory heap size. The previous value wasn't reasonable on 64-bit
systems (2^63 + 1).

Change-Id: Id57a4895752af45d046072ae8fee386ca219e82d
/frameworks/native/vulkan/nulldrv/null_driver.cpp
8e37cf3509b211e8acd4e60437bdbda1cb9278cb 18-Jan-2016 Jesse Hall <jessehall@google.com> vknulldrv: Report valid VkPhysicalDeviceFeatures

Change-Id: I616f8e40d42abb812cc150d31b3a07d41d86b43c
/frameworks/native/vulkan/nulldrv/null_driver.cpp
4b62e4fd280d4f7a24f906a83ff16f5cd74bf171 21-Jan-2016 Jesse Hall <jessehall@google.com> libvulkan: Fix dEQP-VK.api.device_init.create_instance_unsupported_extensions

The existing check was only executed if the driver reported at least
one instance extension, because it was part of filtering the extension
list down to just the ones supported by the driver. Now do it
separately, and before we do anything else.

Also changed the null driver to not report any extensions; reporting
an extension masked the bug for me when I ran this test before.

Change-Id: I2b62229c6acbc9406c036f1f1b766a21c03922d4
(cherry picked from commit 1f7e9e0e771ac4045c5f669290dc01b01dd01342)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
b147127b06c1ce6443839e8102d1ed2631a57b07 18-Jan-2016 Jesse Hall <jessehall@google.com> vulkan: Driver device extension enumeration and filtering

- Return VK_ERROR_EXTENSION_NOT_PRESENT if a requested device
extension is not supported by the loader, driver, or any enabled
device layer.
- Filter out device extensions not supported by the driver when
creating the driver device.
- Enumerate device extensions supported by the driver or loader.

Change-Id: I538e37bc74cc7f0eb27b1211b9324fb3b8a06e14
(cherry picked from commit 35873021f4f79ded0f584e433076c2675c6aed69)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
57f7f8c140c4b665f05c17866ebf201e9f4f46a4 18-Jan-2016 Jesse Hall <jessehall@google.com> vulkan: Enumerate device layer extensions

Change-Id: I453d815ffd910fd56103f1c624cca63ac2014df8
(cherry picked from commit 82a2b6626286610f417df3d48b8e9a56e3726f38)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
715b86ac7d0853131b375ff786c87d8d87a762a1 17-Jan-2016 Jesse Hall <jessehall@google.com> vulkan: Support VK_EXT_debug_report in loader and nulldrv

* Add extension to vulkan.api.
* Fix a few errors in upstream vk_ext_debug_report.h; bugs filed.
* Loader enumerates extension iff the driver supports it.
- TODO: Also enumerate if any layers that support it are implicitly
enabled.
- Note extension may still be enabled if any layer supports it.
* Add loader bottom procs for the extension functions. These will call
through to the driver version if the driver supports the extension.
* Add no-op support to nulldrv, mostly for testing the loader.

Change-Id: I092d2da56ee4c64498f8edae75e0d995478bb6f2
(cherry picked from commit a5ef7c27bc85e3628814532a32ffb9a5c33c4b73)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
275d76c8158c90ec5317b82cb10b094bca2b43cf 09-Jan-2016 Jesse Hall <jessehall@google.com> vulkan: Pass vkQueuePresentKHR wait semaphores to vkQueueSignalReleaseImageANDROID

Change-Id: I4073ced5e0e155d424699f636654ec226cd9d91c
(cherry picked from commit 69ce2beade5386111ef85382cc659a439a5a3b44)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
3dd678a6a30e2d94bfd570ec43ffd379e9c5d409 09-Jan-2016 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.221.0 to 1.0!

Change-Id: I9453454cc47046ad9f64a72a812a4e5da694c223
(cherry picked from commit 3fc8ed14c5d6890348400bf3e6dab2870b3fbbc5)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
f9fa9a50d5e87dacce36ef2a56b392fc053cf8ce 09-Jan-2016 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.210.1 to 0.213.0

Change-Id: I441a2ddf872298a5415b40299fc1143c879c5e86
(cherry picked from commit 842515ca8d8705627e3ce7c196405cac60707629)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
1f91d390ac013ea2514a67e12ddb083119d636d7 12-Dec-2015 Jesse Hall <jessehall@google.com> vulkan: Implement new vkGet*ProcAddrBehavior

The primary goal of this change is to switch to the revised GPA
behavior:
- GIPA(NULL, ..) only works for non-dispatched (global) commands
- GIPA(instance, ..) returns functions for commands that dispatch on any
object type, and the function works for any object of the appropriate
type if it is a child of the instance.
- GDPA(NULL, ..) returns NULL.
- GDPA(device, ..) returns a device-specific function for the command.

This change refactors/tidies many of the things it modified. Some
notable changes:
- All the loader generated code is now in dispatch.tmpl ->
dispatch_gen.{h,cpp}, instead of two separate templates.
- Reorganization allowed generating the dispatch table structures,
eliminating one source of frequent bugs.
- Removes some error-prone macro duplication.
- Handling of extensions and special loader functions is now much
more uniform and hopefully clearer.
- Loader top- and bottom-level functions are now consistently named with
_Top and _Bottom suffixes, and are grouped by level in loader.cpp.
- The VkInstance and VkDevice implementations are no longer derived from
::VkInstance_T and ::VkDevice_T. Was more trouble than it was worth.
- Renamed 'vtbl' to 'dispatch' in most places.
- Renamed nulldrv template and generated files to match the loader
naming pattern: null_driver.tmpl -> null_driver_gen.{h,cpp}
- Now all the entry point prototypes are generated, instead of having
to be updated by hand (another source of several bugs).

Change-Id: Ic263f802d0d523b18a0f00420b3a722aa04ce299
(cherry picked from commit 3cffb8e837222f413a1fe53522e2cc33366b8eeb)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
3fec89ea37127fe292a6766b5320fcbf9574c0ed 05-Dec-2015 Michael Lentine <mlentine@google.com> vknulldrv: Fix 64-bit build

Change-Id: I5dad7520ab513d230ba4af0ce2a4feb18b43bc82
(cherry picked from commit 1eb7f719d235708420898cdf4c18bc4cd46e19be)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
e1b12783fff0b8e2defcc94c54fac8d737e6b996 30-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.203.0 to 0.204.0

Change-Id: I2de0935df66b0110b566ed2025c39e0c17b98f17
(cherry picked from commit 79c20c98e47ce5a7d0608cda59b19d153455cbae)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
a9e5703e380d9d7f096d177adb792621a1e8d4ba 30-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.202.0 to 0.203.0

Change-Id: I21a390bd57082194f6131b118ecd6c94874d2f7f
(cherry picked from commit 5f1b8406c88d20f23e77426d4d786caca659540b)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
091ed9e69400edcc549c9b11635d1a305d6b5a83 30-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.200.0 to 0.202.0

Change-Id: If8eb49cd7e5516931f9900b691d6d32af2aa98b0
(cherry picked from commit 5b9c3a1af7088351d49431a496ef9f7fd078e9f6)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
3e0dc8f0d9f4de86ac61c4d3c33c3958f35e0a25 30-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.198.0 to 0.200.0

Change-Id: I071a9143332dd8b8c2ef899105073ed8791fc5db
(cherry picked from commit 9568691bea351152b340c0cbb3d31e5246ac469b)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
65ab552c18df3e94c5d275294a20dd4d20dda119 30-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.197.0 to 0.198.0

Change-Id: I182b21c68374e8eae962b2ae391bb283f07d5517
(cherry picked from commit ef5b7de781a9d803be4fba7ba243e6e96dd61851)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
d1af812f20e0793d94702817d441ab799bf46df7 30-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.196.0 to 0.197.0

Change-Id: I1c7aecd276cb8d831b8d7bf7eef58b5c6ad8b82c
(cherry picked from commit bef4966ad22d7690626b3dc048c59cb9e9eab870)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
3fbc856120217247c72fb5ed88500000f3881c45 30-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.194.0 to 0.196.0

Change-Id: Ib62cc358b1f2575daeaa2a893eb4afca458ec5c3
(cherry picked from commit 48e9a8af39134fc2e995867668e113e56931167b)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
dc6d36cb7f1d35059ae8153168e379fc925cb468 30-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.190.0 to 0.192.0

Change-Id: I5d38543a4ae1c522cacb45a3c011ceab62d2e1d5
(cherry picked from commit c10af6dde1e91deb70ef055838f1b51240fc66f2)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
a64292517b1876c4bbe5d3e62c577812f40bd922 30-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.189.0 to 0.190.0

Change-Id: I0ac3f2797b65ef49cca90e76a47f1e6ca3a341a3
(cherry picked from commit 888efcf06fdbfa02587ffbfaa8fe6ca8e1b6e58a)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
23ff73fe377acb99b5ea1824d5a11320bdaee745 29-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.188.0 to 0.189.0

Change-Id: Ib8171ce1d3f804f9a866e1c216db0911043056c6
(cherry picked from commit 48c1928e091dd7eb6ca4fc6564e0be072028c38a)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
03b6fe1b099764c6010c173c1416ea102cdfe5a4 24-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.186.0 to 0.188.0

Change-Id: Ida08d51f4e892202b594072d1e765ba5c55444db
(cherry picked from commit 2ca0449bdeecd0257c7473f663896b00d0082def)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
a3a7a1d37bdfad56245b75edac49f8aceded321d 24-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.185.0 to 0.186.0

Change-Id: I6acb7742a1d4628930bc0807adfd222bc8349c43
(cherry picked from commit 9148de67a84540aa7d70ae72fbf587e26cbd0891)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
6f39a6d1c6202b5d1bb0aa0dc9b2e130e5b73666 24-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.184.0 to 0.185.0

Change-Id: I1d6012db32441fe3a99480bfed0e41dfce068980
(cherry picked from commit 8b07f118b46ae01f709e7bfd92e29c6f6df5d7c0)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
a9bb62b44be381292b893055cd01cdc89ba55c97 22-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.183.0 to 0.184.0

Change-Id: I11802010d9171877e3fc8cc6e0931f8c746660c4
(cherry picked from commit 821c3aebdbac594a9b977e8183a863bed7419132)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
fbf97b0e5e25349b951dce1016b263ec3acbf376 20-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.181.0 to 0.183.0

Change-Id: I721bfc6891974e2bab7dce7e92e7884de360412a
(cherry picked from commit 85009ebe92a71d3c707efad6387118b186cca0c9)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
a15a4bf4bafd6114ae8f28c2df2fc622cb3baace 20-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.180.0 to 0.181.0

Change-Id: I4a7e216d9966f2dcf873bcb952472463dfb59f95
(cherry picked from commit 2c3539bab4b81b6e55d690c5e113d3421cc15021)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
a366a5186ea941c5653cbdb8df18dc19318912b6 20-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.179.0 to 0.180.0

Change-Id: I2cbf4a8b065e8150734d76d614ab0850bc8324dc
(cherry picked from commit 2b2221bd4c5cbc2580bf7b4e487bffe36fd25c4a)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
606a54e194a5884c628130ba2eda1b3bfbc157d7 20-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.177.0 to 0.179.0

Change-Id: I4d596efec04a712d7b38323e012282fe9f98192b
(cherry picked from commit daf915168b0aea3a47401a838448d737e955c154)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
acfa53409aa45de2c12f10617222e0d593e8f2df 20-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.174.0 to 0.177.0

Change-Id: I4b837c0bdb4fd6120688e8389ab8591178d370fb
(cherry picked from commit 5804cbcdb3c6444c7bb6904578ed339d9339de83)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
ae38f7355fd03b777313e13586585a74e0dee05b 20-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: Update from version 0.172.2 to 0.174.0

Change-Id: If89614476735e5fb83cbeb4cf473e32e6f0cc386
(cherry picked from commit 18896311f868ab1b2b8a9a6ca34de4c0de6cf0d7)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
ab9aeef063119445b59166f781c464c64e3909db 04-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: allow drivers to see image acquire/release

Change-Id: I8143aeebd1f65142486cc55662c685d081ba41eb
(cherry picked from commit 58b4df743ecad9f1a0fc7cb7c0f5340dd8365308)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
70f9335d77282e34fa1cdb8d1baed89892ccd2e1 04-Nov-2015 Jesse Hall <jessehall@google.com> vulkan: Allow drivers to add private gralloc usage flags

Change-Id: Iea33990b3a85a761e27d54bb323d866267c88901
(cherry picked from commit c040fbedde52d632a7ceeef3a9266d35b22ce53f)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
cf25c4174dca708032ea83ac7ae2baad9e575b29 30-Oct-2015 Jesse Hall <jessehall@google.com> vknulldrv: Fix several entry point prototypes

Entry point implementations were never used where the appropriate
PFN_vk* type was expected, so when the prototypes were wrong the
compiler wouldn't know or be able to tell us. Of course, this means
several of them were wrong after the update to header 0.170.2.

This change adds an explicit static_cast to the appropriate function
pointer type for each function so the compiler will issue an error
when the prototype is wrong. It also fixes all of the resulting
errors.

Change-Id: I44211353476b56c8b429ee5d7ca7a669e8a95afd
(cherry picked from commit 90018472e9c4eed2fae226bd64f29da065d4b1e7)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
5ae3abb3ca6728de04935b0c81bcdbdfc37b0d47 08-Oct-2015 Jesse Hall <jessehall@google.com> vulkan: Update from header 0.138.2 to 0.170.2

Change-Id: I011e1f27d025730d448ee5cfefc6701300b455c2
(cherry picked from commit 6761b6067555557599e8c30096614642a5223646)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
03c64b0b525a2f259456a220c51bbc8438ae2c03 27-Aug-2015 Michael Lentine <mlentine@google.com> Add layer loading to android vulkan loader.

Change-Id: I500d248f03a14db82ce725e600aef82c115b9b35
(cherry picked from commit ad17ac2e5bec7a65e3170043eb958e5a97107bd4)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
d7b994a0cfb9054aafc1dadc85085a7d0ef8789a 07-Sep-2015 Jesse Hall <jessehall@google.com> vulkan: Implement vk_ext_khr_*swapchain extensions

Change-Id: I46312c9ba1332e0a5b8ac4c1b5608f0465c3962c
(cherry picked from commit e5ca41cb11212bbfbd608eddb92d794e12e1528e)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
b1352bce9cd82ceaef287b8b3cd7a5c39703a14c 05-Sep-2015 Jesse Hall <jessehall@google.com> vulkan: Add skeleton swapchain support

Loader and driver entry points exist and the call chains are hooked up
properly, but functions are just empty stubs for now.

Change-Id: I6ff95e47d1d09ebed41eda8accb71686c8249546
(cherry picked from commit 038c8a740bbda4650bec776023a26a7fcbf93864)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
d02edcbb40d476b6d3b5ae279a6ccef786be8848 08-Sep-2015 Jesse Hall <jessehall@google.com> vulkan: add copyright notices

Change-Id: I62ec6d02a052c9e9cee9753057d55c165dfc9713
(cherry picked from commit b7f416a9cc3d136ffe4a60b5f6fb2dc8b92a623b)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
85c05b60435ef61e833bcedced9ff0699e829f7c 02-Sep-2015 Jesse Hall <jessehall@google.com> vknulldrv: Implement VkImage

Change-Id: Ief50f433fc9b1ad4f4b0ee28912993d59d9df411
(cherry picked from commit cd1a7c4312ac5828682e580fdbbad7b10dbf5a45)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
bde8ee3037ed1e26d4e603332137c88e6c6d55cb 02-Sep-2015 Jesse Hall <jessehall@google.com> vulkan: warn on bogus CreateBuffer args

Change-Id: I415a367f3952ef08f8b659d15ce4278da8c4b70a
(cherry picked from commit f96997afd168a31582217d19fc237163c963dad0)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
c7a6eb56a2c967685f70d30c643f899b0425c0ea 31-Aug-2015 Jesse Hall <jessehall@google.com> vulkan: Set up VkCmdBuffer dispatching

Change-Id: Ifb3cea05dab8828c2c00b8ed60c5ad991cdcbea7
(cherry picked from commit 10bf73e13b6904afa606fdcdc05bcc510c605180)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
f8faf0ce17a6435e58c7d2744d9e0e84f3b25bd7 31-Aug-2015 Jesse Hall <jessehall@google.com> vknulldrv: Implement creation of no-op object types

Change-Id: If093f4c0775415608851b9c0ce356d4916e16ee8
(cherry picked from commit d1a9e4154cdacdba0f84054688f3b2c8d530e073)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
2077ce0c0d7ca716c408826449314ac799eda650 29-Aug-2015 Jesse Hall <jessehall@google.com> vknulldrv: implement VkDeviceMemory objects

Change-Id: If9c22b3800058877c7854d59622b7205b79cf731
(cherry picked from commit 4ff851997ef2972b3b846656d93a06e44858259e)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
f6578743278da9b55d96a4984f4fcaa9d73eda8d 29-Aug-2015 Jesse Hall <jessehall@google.com> vknulldrv: implement VkBuffer objects

Change-Id: Idda564392cf8daae6ea8c3a9809e6df990433a33
(cherry picked from commit aee62ea7ff379dde787344e1377b51fefb2385d6)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
73ab0acc1990326b4e51b675f4b2b44b6366c0a7 25-Aug-2015 Jesse Hall <jessehall@google.com> vulkan: add memory property queries to nulldrv and vkinfo

Change-Id: Ib3ceb46ff4e46a25787d8c980b8339328b471925
(cherry picked from commit 6c5ee23b92f420387f46da97714780f9ce12681a)
/frameworks/native/vulkan/nulldrv/null_driver.cpp
04f4f4746481571148eaf3aaf768ee5c6dccec9d 17-Aug-2015 Jesse Hall <jessehall@google.com> vulkan: initial loader and null driver

Change-Id: Id5ebb5f01e61e9b114990f49c64c88fbbb7b730e
(cherry picked from commit 4df205cdfc61e66de774ba50be9ef59a08cf88bb)
/frameworks/native/vulkan/nulldrv/null_driver.cpp