/external/mesa3d/src/amd/vulkan/ |
radv_wsi.c | 255 struct wsi_swapchain *swapchain; local 265 &swapchain); 270 swapchain->alloc = *pAllocator; 272 swapchain->alloc = device->alloc; 274 for (unsigned i = 0; i < ARRAY_SIZE(swapchain->fences); i++) 275 swapchain->fences[i] = VK_NULL_HANDLE; 277 *pSwapchain = wsi_swapchain_to_handle(swapchain); 288 RADV_FROM_HANDLE(wsi_swapchain, swapchain, _swapchain); 299 for (unsigned i = 0; i < ARRAY_SIZE(swapchain->fences); i++) { 300 if (swapchain->fences[i] != VK_NULL_HANDLE [all...] |
/external/mesa3d/src/intel/vulkan/ |
anv_wsi.c | 266 struct wsi_swapchain *swapchain; local 277 &swapchain); 281 swapchain->alloc = *alloc; 283 for (unsigned i = 0; i < ARRAY_SIZE(swapchain->fences); i++) 284 swapchain->fences[i] = VK_NULL_HANDLE; 286 *pSwapchain = wsi_swapchain_to_handle(swapchain); 297 ANV_FROM_HANDLE(wsi_swapchain, swapchain, _swapchain); 300 if (!swapchain) 307 for (unsigned i = 0; i < ARRAY_SIZE(swapchain->fences); i++) { 308 if (swapchain->fences[i] != VK_NULL_HANDLE [all...] |
/frameworks/native/vulkan/libvulkan/ |
swapchain.cpp | 199 // Maximum number of TimingInfo structs to keep per swapchain: 205 struct Swapchain { 206 Swapchain(Surface& surface_, 243 VkSwapchainKHR HandleFromSwapchain(Swapchain* swapchain) { 244 return VkSwapchainKHR(reinterpret_cast<uint64_t>(swapchain)); 247 Swapchain* SwapchainFromHandle(VkSwapchainKHR handle) { 248 return reinterpret_cast<Swapchain*>(handle); 254 Swapchain::Image& image) { 268 // We get here during swapchain destruction, or various seriou 1303 Swapchain* swapchain = SwapchainFromHandle(swapchain_handle); local 1327 Swapchain& swapchain = *SwapchainFromHandle(swapchain_handle); local 1355 Swapchain& swapchain = *SwapchainFromHandle(swapchain_handle); local 1510 Swapchain& swapchain = local 1675 Swapchain& swapchain = *SwapchainFromHandle(swapchain_handle); local 1690 Swapchain& swapchain = *SwapchainFromHandle(swapchain_handle); local 1714 Swapchain& swapchain = *SwapchainFromHandle(swapchain_handle); local 1733 Swapchain* swapchain = SwapchainFromHandle(pSwapchains[idx]); local [all...] |
driver_gen.cpp | 43 VKAPI_ATTR void checkedDestroySwapchainKHR(VkDevice device, VkSwapchainKHR swapchain, const VkAllocationCallbacks* pAllocator) { 45 DestroySwapchainKHR(device, swapchain, pAllocator); 51 VKAPI_ATTR VkResult checkedGetSwapchainImagesKHR(VkDevice device, VkSwapchainKHR swapchain, uint32_t* pSwapchainImageCount, VkImage* pSwapchainImages) { 53 return GetSwapchainImagesKHR(device, swapchain, pSwapchainImageCount, pSwapchainImages); 60 VKAPI_ATTR VkResult checkedAcquireNextImageKHR(VkDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t* pImageIndex) { 62 return AcquireNextImageKHR(device, swapchain, timeout, semaphore, fence, pImageIndex); 105 VKAPI_ATTR VkResult checkedGetRefreshCycleDurationGOOGLE(VkDevice device, VkSwapchainKHR swapchain, VkRefreshCycleDurationGOOGLE* pDisplayTimingProperties) { 107 return GetRefreshCycleDurationGOOGLE(device, swapchain, pDisplayTimingProperties); 114 VKAPI_ATTR VkResult checkedGetPastPresentationTimingGOOGLE(VkDevice device, VkSwapchainKHR swapchain, uint32_t* pPresentationTimingCount, VkPastPresentationTimingGOOGLE* pPresentationTimings) { 116 return GetPastPresentationTimingGOOGLE(device, swapchain, pPresentationTimingCount, pPresentationTimings) [all...] |
swapchain.h | 41 VKAPI_ATTR VkResult GetRefreshCycleDurationGOOGLE(VkDevice device, VkSwapchainKHR swapchain, VkRefreshCycleDurationGOOGLE* pDisplayTimingProperties); 42 VKAPI_ATTR VkResult GetPastPresentationTimingGOOGLE(VkDevice device, VkSwapchainKHR swapchain, uint32_t* pPresentationTimingCount, VkPastPresentationTimingGOOGLE* pPresentationTimings); 43 VKAPI_ATTR VkResult GetSwapchainStatusKHR(VkDevice device, VkSwapchainKHR swapchain);
|
Android.bp | 63 "swapchain.cpp",
|
/external/mesa3d/src/gallium/state_trackers/nine/ |
threadpool.h | 53 struct threadpool *_mesa_threadpool_create(struct NineSwapChain9 *swapchain); 54 void _mesa_threadpool_destroy(struct NineSwapChain9 *swapchain, struct threadpool *pool);
|
threadpool.c | 80 _mesa_threadpool_create(struct NineSwapChain9 *swapchain) 90 pool->wthread = NineSwapChain9_CreateThread(swapchain, threadpool_worker, pool); 99 _mesa_threadpool_destroy(struct NineSwapChain9 *swapchain, struct threadpool *pool) 110 NineSwapChain9_WaitForThread(swapchain, pool->wthread);
|
iunknown.h | 53 * Can be a texture, a volume texture or a swapchain. 54 * forward is set to false for the swapchain case.
|
device9ex.c | 277 struct NineSwapChain9Ex *swapchain; local 284 swapchain = NineSwapChain9Ex(This->base.swapchains[iSwapChain]); 285 return NineSwapChain9Ex_GetDisplayModeEx(swapchain, pMode, pRotation);
|
/external/swiftshader/src/D3D9/ |
Direct3DDevice9Ex.hpp | 65 long __stdcall GetDisplayMode(unsigned int swapChain ,D3DDISPLAYMODE *mode) override; 70 long __stdcall CreateAdditionalSwapChain(D3DPRESENT_PARAMETERS *presentParameters, IDirect3DSwapChain9 **swapChain) override; 71 long __stdcall GetSwapChain(unsigned int index, IDirect3DSwapChain9 **swapChain) override; 75 long __stdcall GetBackBuffer(unsigned int swapChain, unsigned int index, D3DBACKBUFFER_TYPE type, IDirect3DSurface9 **backBuffer) override; 76 long __stdcall GetRasterStatus(unsigned int swapChain, D3DRASTER_STATUS *rasterStatus) override; 78 void __stdcall SetGammaRamp(unsigned int swapChain, unsigned long flags, const D3DGAMMARAMP *ramp) override; 79 void __stdcall GetGammaRamp(unsigned int swapChain, D3DGAMMARAMP *ramp) override; 90 long __stdcall GetFrontBufferData(unsigned int swapChain, IDirect3DSurface9 *destSurface) override; 183 long __stdcall WaitForVBlank(unsigned int swapChain) override; 192 long __stdcall GetDisplayModeEx(unsigned int swapChain, D3DDISPLAYMODEEX *mode, D3DDISPLAYROTATION *rotation) override [all...] |
Direct3DDevice9.hpp | 69 long __stdcall CreateAdditionalSwapChain(D3DPRESENT_PARAMETERS *presentParameters, IDirect3DSwapChain9 **swapChain) override; 94 long __stdcall GetBackBuffer(unsigned int swapChain, unsigned int index, D3DBACKBUFFER_TYPE type, IDirect3DSurface9 **backBuffer) override; 102 long __stdcall GetDisplayMode(unsigned int swapChain ,D3DDISPLAYMODE *mode) override; 103 long __stdcall GetFrontBufferData(unsigned int swapChain, IDirect3DSurface9 *destSurface) override; 105 void __stdcall GetGammaRamp(unsigned int swapChain, D3DGAMMARAMP *ramp) override; 117 long __stdcall GetRasterStatus(unsigned int swapChain, D3DRASTER_STATUS *rasterStatus) override; 126 long __stdcall GetSwapChain(unsigned int index, IDirect3DSwapChain9 **swapChain) override; 149 void __stdcall SetGammaRamp(unsigned int swapChain, unsigned long flags, const D3DGAMMARAMP *ramp) override; 286 Direct3DSwapChain9 *swapChain;
|
/frameworks/native/vulkan/doc/implementors_guide/ |
implementors_guide.adoc | 50 Implementations may need swapchain buffers to be allocated with implementation-defined private gralloc usage flags that depend not only on +format+ and +imageUsage+, but also on the intended usage of the swapchain. The swapchain usage bits are defined as 60 Implementations may need swapchain buffers to be allocated with implementation-defined private gralloc usage flags. When creating a swapchain, the platform will ask the driver to translate the requested format and image usage flags into gralloc usage flags by calling 72 The +format+ and +imageUsage+ parameters are taken from the +VkSwapchainCreateInfoKHR+ structure. The driver should fill +*grallocConsumerUsage+ and +*grallocProducerUsage+ with the gralloc usage flags it requires for that format and usage. These will be combined with the usage flags requested by the swapchain consumer when allocating buffers. 85 +VkNativeBufferANDROID+ is a +vkCreateImage+ extension structure for creating an image backed by a gralloc buffer. This structure is provided to +vkCreateImage+ in the +VkImageCreateInfo+ structure chain. Calls to +vkCreateImage+ with this structure will happen during the first call to +vkGetSwapChainInfoWSI(.. VK_SWAP_CHAIN_INFO_TYPE_IMAGES_WSI ..)+. The WSI implementation will allocate the number of native buffers requested for the swapchain, then create a +VkImage+ for each one. 124 Additionally, when any swapchain image usage flags are required for the swapchain, the platform will provide a +VkSwapchainImageCreateInfoANDROID+ extension structure in the +VkImageCreateInfo+ chain provided to +vkCreateImage+, containing the swapchain image usage flags [all...] |
/external/deqp/external/vulkancts/framework/vulkan/ |
vkWsiUtil.hpp | 47 SWAPCHAIN_EXTENT_MUST_MATCH_WINDOW_SIZE = 0, //!< Swapchain extent must match window size 48 SWAPCHAIN_EXTENT_SETS_WINDOW_SIZE, //!< Window will be resized to swapchain size when first image is presented 99 VkSwapchainKHR swapchain);
|
vkConcreteDeviceInterface.inl | 141 virtual void destroySwapchainKHR (VkDevice device, VkSwapchainKHR swapchain, const VkAllocationCallbacks* pAllocator) const; 142 virtual VkResult getSwapchainImagesKHR (VkDevice device, VkSwapchainKHR swapchain, deUint32* pSwapchainImageCount, VkImage* pSwapchainImages) const; 143 virtual VkResult acquireNextImageKHR (VkDevice device, VkSwapchainKHR swapchain, deUint64 timeout, VkSemaphore semaphore, VkFence fence, deUint32* pImageIndex) const; 159 virtual VkResult getSwapchainStatusKHR (VkDevice device, VkSwapchainKHR swapchain) const; 184 virtual VkResult getSwapchainCounterEXT (VkDevice device, VkSwapchainKHR swapchain, VkSurfaceCounterFlagBitsEXT counter, deUint64* pCounterValue) const; 185 virtual VkResult getRefreshCycleDurationGOOGLE (VkDevice device, VkSwapchainKHR swapchain, VkRefreshCycleDurationGOOGLE* pDisplayTimingProperties) const; 186 virtual VkResult getPastPresentationTimingGOOGLE (VkDevice device, VkSwapchainKHR swapchain, deUint32* pPresentationTimingCount, VkPastPresentationTimingGOOGLE* pPresentationTimings) const;
|
vkDeviceDriverImpl.inl | 690 void DeviceDriver::destroySwapchainKHR (VkDevice device, VkSwapchainKHR swapchain, const VkAllocationCallbacks* pAllocator) const 692 m_vk.destroySwapchainKHR(device, swapchain, pAllocator); 695 VkResult DeviceDriver::getSwapchainImagesKHR (VkDevice device, VkSwapchainKHR swapchain, deUint32* pSwapchainImageCount, VkImage* pSwapchainImages) const 697 return m_vk.getSwapchainImagesKHR(device, swapchain, pSwapchainImageCount, pSwapchainImages); 700 VkResult DeviceDriver::acquireNextImageKHR (VkDevice device, VkSwapchainKHR swapchain, deUint64 timeout, VkSemaphore semaphore, VkFence fence, deUint32* pImageIndex) const [all...] |
vkWsiUtil.cpp | 315 VkSwapchainKHR swapchain) 319 VK_CHECK(vkd.getSwapchainImagesKHR(device, swapchain, &numImages, DE_NULL)); 325 VK_CHECK(vkd.getSwapchainImagesKHR(device, swapchain, &numImages, &images[0]));
|
/external/mesa3d/src/vulkan/wsi/ |
wsi_common.h | 58 VkResult (*destroy)(struct wsi_swapchain *swapchain, 60 VkResult (*get_images)(struct wsi_swapchain *swapchain, 90 struct wsi_swapchain **swapchain);
|
/external/vulkan-validation-layers/demos/smoke/ |
Helpers.h | 97 inline VkResult get(VkDevice dev, VkSwapchainKHR swapchain, std::vector<VkImage> &images) { 99 vk::GetSwapchainImagesKHR(dev, swapchain, &count, nullptr); 102 return vk::GetSwapchainImagesKHR(dev, swapchain, &count, images.data());
|
Shell.cpp | 283 // BackBuffer is used to track which swapchain image and its associated 284 // sync primitives are busy. Having more BackBuffer's than swapchain 324 ctx_.swapchain = VK_NULL_HANDLE; 330 if (ctx_.swapchain != VK_NULL_HANDLE) { 333 vk::DestroySwapchainKHR(ctx_.dev, ctx_.swapchain, nullptr); 334 ctx_.swapchain = VK_NULL_HANDLE; 415 swapchain_info.oldSwapchain = ctx_.swapchain; 417 vk::assert_success(vk::CreateSwapchainKHR(ctx_.dev, &swapchain_info, nullptr, &ctx_.swapchain)); 420 // destroy the old swapchain 454 vk::AcquireNextImageKHR(ctx_.dev, ctx_.swapchain, UINT64_MAX, buf.acquire_semaphore, VK_NULL_HANDLE, &buf.image_index)) [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
d3d10misc.h | 41 IDXGISwapChain **swapchain, ID3D10Device **device);
|
/external/deqp/external/vulkancts/modules/vulkan/wsi/ |
vktWsiSwapchainTests.cpp | 582 const Unique<VkSwapchainKHR> swapchain (createSwapchainKHR(devHelper.vkd, *devHelper.device, &curParams)); 586 return tcu::TestStatus::pass("Creating swapchain succeeded"); 637 const Unique<VkSwapchainKHR> swapchain (createSwapchainKHR(devHelper.vkd, *devHelper.device, &curParams, failingAllocator.getCallbacks())); 648 log << TestLog::Message << "Creating swapchain succeeded!" << TestLog::EndMessage; 656 results.addResult(QP_TEST_RESULT_QUALITY_WARNING, "Creating swapchain did not succeed, callback limit exceeded"); [all...] |
/prebuilts/ndk/r16/sources/third_party/vulkan/src/layers/ |
swapchain.cpp | 27 #include "swapchain.h" 32 namespace swapchain { namespace 59 // TBD: Should we leave error in (since Swapchain really needs this 62 reinterpret_cast<uint64_t>(physicalDevice), __LINE__, SWAPCHAIN_INVALID_HANDLE, "Swapchain", [all...] |
/cts/tests/tests/graphics/jni/ |
VulkanPreTransformTestHelpers.h | 60 VkSwapchainKHR swapchain() const { return mSwapchain; } function in class:SwapchainInfo
|
/external/vulkan-validation-layers/layers/ |
object_tracker_utils.cpp | 297 void CreateSwapchainImageObject(VkDevice dispatchable_object, VkImage swapchain_image, VkSwapchainKHR swapchain) { 308 pNewObjNode->parent_object = HandleToUint64(swapchain); [all...] |