/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/ |
D | vk_image.c | 44 struct vk_image *image, in vk_image_init() argument 47 vk_object_base_init(device, &image->base, VK_OBJECT_TYPE_IMAGE); in vk_image_init() 62 image->create_flags = pCreateInfo->flags; in vk_image_init() 63 image->image_type = pCreateInfo->imageType; in vk_image_init() 64 vk_image_set_format(image, pCreateInfo->format); in vk_image_init() 65 image->extent = vk_image_sanitize_extent(image, pCreateInfo->extent); in vk_image_init() 66 image->mip_levels = pCreateInfo->mipLevels; in vk_image_init() 67 image->array_layers = pCreateInfo->arrayLayers; in vk_image_init() 68 image->samples = pCreateInfo->samples; in vk_image_init() 69 image->tiling = pCreateInfo->tiling; in vk_image_init() [all …]
|
D | vk_image.h | 91 struct vk_image *image, 93 void vk_image_finish(struct vk_image *image); 101 struct vk_image *image); 110 void vk_image_set_format(struct vk_image *image, VkFormat format); 112 VkImageUsageFlags vk_image_usage(const struct vk_image *image, 115 VkImageAspectFlags vk_image_expand_aspect_mask(const struct vk_image *image, 119 vk_image_mip_level_extent(const struct vk_image *image, in vk_image_mip_level_extent() argument 123 u_minify(image->extent.width, mip_level), in vk_image_mip_level_extent() 124 u_minify(image->extent.height, mip_level), in vk_image_mip_level_extent() 125 u_minify(image->extent.depth, mip_level), in vk_image_mip_level_extent() [all …]
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/chapters/commonvalidity/ |
D | bind_image_common.adoc | 6 // Common to binding any memory to an image 7 * [[VUID-{refpage}-image-07460]] 8 pname:image must: not have been bound to a memory object 9 * [[VUID-{refpage}-image-01045]] 10 pname:image must: not have been created with any sparse memory binding 15 * [[VUID-{refpage}-image-01445]] 16 If pname:image requires a dedicated allocation (as reported by 19 for pname:image), pname:memory must: have been created with 20 slink:VkMemoryDedicatedAllocateInfo::pname:image equal to pname:image 29 pname:pNext chain, and slink:VkMemoryDedicatedAllocateInfo::pname:image [all …]
|
D | image_memory_barrier_common.adoc | 11 <<synchronization-image-layout-transitions, image layout transition>>, 13 ename:VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL then pname:image must: 19 <<synchronization-image-layout-transitions, image layout transition>>, 21 ename:VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL then pname:image 28 <<synchronization-image-layout-transitions, image layout transition>>, 30 ename:VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL then pname:image 37 <<synchronization-image-layout-transitions, image layout transition>>, 39 ename:VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL then pname:image must: 46 <<synchronization-image-layout-transitions, image layout transition>>, 48 ename:VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL then pname:image must: have [all …]
|
D | image_layout_transition_common.adoc | 10 pname:mipLevels specified in slink:VkImageCreateInfo when pname:image 17 pname:image was created 20 pname:arrayLayers specified in slink:VkImageCreateInfo when pname:image 27 pname:arrayLayers specified in slink:VkImageCreateInfo when pname:image 29 * [[VUID-{refpage}-image-01932]] 30 If pname:image is non-sparse then it must: be bound completely and 33 * [[VUID-{refpage}-image-02902]] 34 If pname:image has a color format, then the pname:aspectMask member of 38 * [[VUID-{refpage}-image-09241]] 39 If pname:image has a color format that is single-plane, then the [all …]
|
D | get_image_subresource_layout_common.adoc | 12 pname:mipLevels specified in slink:VkImageCreateInfo when pname:image 16 pname:arrayLayers specified in slink:VkImageCreateInfo when pname:image 20 If pname:format of the pname:image is a color format, pname:tiling of 21 the pname:image is ename:VK_IMAGE_TILING_LINEAR or 23 <<formats-requiring-sampler-ycbcr-conversion, multi-planar image 29 If pname:format of the pname:image is a color format and pname:tiling of 30 the pname:image is ename:VK_IMAGE_TILING_LINEAR or 35 If pname:format of the pname:image has a depth component, the 39 If pname:format of the pname:image has a stencil component, the 43 If pname:format of the pname:image does not contain a stencil or depth [all …]
|
/hardware/google/easel/amber/camera/libhdrplusclient/ |
D | HdrPlusClientUtils.cpp | 33 switch (streamConfig.image.format) { in getRgb() 37 if (streamConfig.image.planes.size() != 2) { in getRgb() 39 streamConfig.image.planes.size()); in getRgb() 44 uint32_t yIndex = y * streamConfig.image.planes[0].stride + x; in getRgb() 45 uint32_t vIndex = streamConfig.image.planes[0].scanline * in getRgb() 46 streamConfig.image.planes[0].stride + in getRgb() 47 (y / 2) * streamConfig.image.planes[1].stride + (x & ~0x1); in getRgb() 62 if (streamConfig.image.planes.size() != 1) { in getRgb() 64 streamConfig.image.planes.size()); in getRgb() 68 uint32_t offset = y * streamConfig.image.planes[0].stride + x * 3; in getRgb() [all …]
|
/hardware/google/gfxstream/guest/mesa/src/vulkan/wsi/ |
D | wsi_common_drm.c | 99 const struct wsi_image *image) in prepare_signal_dma_buf_from_semaphore() argument 108 result = wsi_dma_buf_export_sync_file(image->dma_buf_fd, &sync_file_fd); in prepare_signal_dma_buf_from_semaphore() 112 result = wsi_dma_buf_import_sync_file(image->dma_buf_fd, sync_file_fd); in prepare_signal_dma_buf_from_semaphore() 137 const struct wsi_image *image) in wsi_prepare_signal_dma_buf_from_semaphore() argument 143 result = prepare_signal_dma_buf_from_semaphore(chain, image); in wsi_prepare_signal_dma_buf_from_semaphore() 155 const struct wsi_image *image) in wsi_signal_dma_buf_from_semaphore() argument 170 result = wsi_dma_buf_import_sync_file(image->dma_buf_fd, sync_file_fd); in wsi_signal_dma_buf_from_semaphore() 193 const struct wsi_image *image, in wsi_create_sync_for_dma_buf_wait() argument 206 result = wsi_dma_buf_export_sync_file(image->dma_buf_fd, &sync_file_fd); in wsi_create_sync_for_dma_buf_wait() 307 struct wsi_image *image); [all …]
|
D | wsi_common.c | 678 struct wsi_image *image) in wsi_create_image() argument 683 memset(image, 0, sizeof(*image)); in wsi_create_image() 686 image->dma_buf_fd = -1; in wsi_create_image() 690 &chain->alloc, &image->image); in wsi_create_image() 694 result = info->create_mem(chain, info, image); in wsi_create_image() 698 result = wsi->BindImageMemory(chain->device, image->image, in wsi_create_image() 699 image->memory, 0); in wsi_create_image() 704 result = info->finish_create(chain, info, image); in wsi_create_image() 712 wsi_destroy_image(chain, image); in wsi_create_image() 718 struct wsi_image *image) in wsi_destroy_image() argument [all …]
|
D | wsi_common_headless.c | 340 if (chain->images[i].base.image != VK_NULL_HANDLE) in wsi_headless_swapchain_destroy() 366 struct wsi_image *image) in wsi_create_null_image_mem() argument 372 wsi->GetImageMemoryRequirements(chain->device, image->image, &reqs); in wsi_create_null_image_mem() 377 .image = image->image, in wsi_create_null_image_mem() 388 &chain->alloc, &image->memory); in wsi_create_null_image_mem() 392 image->dma_buf_fd = -1; in wsi_create_null_image_mem() 399 image->image, in wsi_create_null_image_mem() 404 image->drm_modifier = image_mod_props.drmFormatModifier; in wsi_create_null_image_mem() 405 assert(image->drm_modifier != DRM_FORMAT_MOD_INVALID); in wsi_create_null_image_mem() 408 get_modifier_props(info, image->drm_modifier); in wsi_create_null_image_mem() [all …]
|
/hardware/google/gfxstream/guest/GLESv2/ |
D | gl2.cpp | 68 EGLImage_t *image = (EGLImage_t*)img; in glEGLImageTargetTexture2DOES() local 69 GLeglImageOES hostImage = reinterpret_cast<GLeglImageOES>((intptr_t)image->host_egl_image); in glEGLImageTargetTexture2DOES() 74 if (image->target == EGL_NATIVE_BUFFER_ANDROID) { in glEGLImageTargetTexture2DOES() 75 EGLClientBuffer buffer = image->buffer; in glEGLImageTargetTexture2DOES() 83 ctx->associateEGLImage(target, hostImage, image->width, image->height); in glEGLImageTargetTexture2DOES() 88 } else if (image->target == EGL_GL_TEXTURE_2D_KHR) { in glEGLImageTargetTexture2DOES() 90 ctx->associateEGLImage(target, hostImage, image->width, image->height); in glEGLImageTargetTexture2DOES() 103 EGLImage_t *image = (EGLImage_t*)img; in glEGLImageTargetRenderbufferStorageOES() local 104 GLeglImageOES hostImage = reinterpret_cast<GLeglImageOES>((intptr_t)image->host_egl_image); in glEGLImageTargetRenderbufferStorageOES() 106 if (image->target == EGL_NATIVE_BUFFER_ANDROID) { in glEGLImageTargetRenderbufferStorageOES() [all …]
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/reflow-tests/ |
D | expect-vu-noreflow-novuid.adoc | 17 [open,refpage='vkCmdClearColorImage',desc='Clear regions of a color image',type='protos'] 19 To clear one or more subranges of a color image, call: 25 * pname:image is the image to be cleared. 26 …* pname:imageLayout specifies the current layout of the image subresource ranges to be cleared, an… 31 …ter to a slink:VkClearColorValue structure containing the values that the image subresource ranges… 32 * pname:rangeCount is the number of image subresource range structures in pname:pRanges. 35 aspects to be cleared, as described in <<resources-image-views,Image Views>>. 43 * [[VUID-vkCmdClearColorImage-image-01993]] 44 …The <<resources-image-format-features,format features>> of pname:image must: contain ename:VK_FORM… 46 * [[VUID-vkCmdClearColorImage-image-00002]] [all …]
|
D | expect-vu-default.adoc | 17 [open,refpage='vkCmdClearColorImage',desc='Clear regions of a color image',type='protos'] 19 To clear one or more subranges of a color image, call: 25 * pname:image is the image to be cleared. 26 * pname:imageLayout specifies the current layout of the image subresource 34 containing the values that the image subresource ranges will be cleared 36 * pname:rangeCount is the number of image subresource range structures in 40 aspects to be cleared, as described in <<resources-image-views,Image 49 * [[VUID-vkCmdClearColorImage-image-01993]] 50 The <<resources-image-format-features,format features>> of pname:image 53 * [[VUID-vkCmdClearColorImage-image-00002]] [all …]
|
D | src-vu.adoc | 17 [open,refpage='vkCmdClearColorImage',desc='Clear regions of a color image',type='protos'] 19 To clear one or more subranges of a color image, call: 25 * pname:image is the image to be cleared. 26 …* pname:imageLayout specifies the current layout of the image subresource ranges to be cleared, an… 31 …ter to a slink:VkClearColorValue structure containing the values that the image subresource ranges… 32 * pname:rangeCount is the number of image subresource range structures in pname:pRanges. 35 aspects to be cleared, as described in <<resources-image-views,Image Views>>. 43 * [[VUID-vkCmdClearColorImage-image-01993]] 44 …The <<resources-image-format-features,format features>> of pname:image must: contain ename:VK_FORM… 46 * [[VUID-vkCmdClearColorImage-image-00002]] [all …]
|
D | expect-vu-noreflow.adoc | 17 [open,refpage='vkCmdClearColorImage',desc='Clear regions of a color image',type='protos'] 19 To clear one or more subranges of a color image, call: 25 * pname:image is the image to be cleared. 26 …* pname:imageLayout specifies the current layout of the image subresource ranges to be cleared, an… 31 …ter to a slink:VkClearColorValue structure containing the values that the image subresource ranges… 32 * pname:rangeCount is the number of image subresource range structures in pname:pRanges. 35 aspects to be cleared, as described in <<resources-image-views,Image Views>>. 43 * [[VUID-vkCmdClearColorImage-image-01993]] 44 …The <<resources-image-format-features,format features>> of pname:image must: contain ename:VK_FORM… 46 * [[VUID-vkCmdClearColorImage-image-00002]] [all …]
|
D | expect-vu-novuid.adoc | 17 [open,refpage='vkCmdClearColorImage',desc='Clear regions of a color image',type='protos'] 19 To clear one or more subranges of a color image, call: 25 * pname:image is the image to be cleared. 26 * pname:imageLayout specifies the current layout of the image subresource 34 containing the values that the image subresource ranges will be cleared 36 * pname:rangeCount is the number of image subresource range structures in 40 aspects to be cleared, as described in <<resources-image-views,Image 49 * [[VUID-vkCmdClearColorImage-image-01993]] 50 The <<resources-image-format-features,format features>> of pname:image 53 * [[VUID-vkCmdClearColorImage-image-00002]] [all …]
|
D | expect-new-vuid-default.adoc | 12 [open,refpage='vkCmdClearColorImage',desc='Clear regions of a color image',type='protos'] 14 To clear one or more subranges of a color image, call: 21 * [[VUID-vkCmdClearColorImage-image-01993]] 22 The <<resources-image-format-features,format features>> of pname:image 25 * [[VUID-vkCmdClearColorImage-image-10000]] 26 pname:image must: have been created with 29 * [[VUID-vkCmdClearColorImage-image-01545]] 30 pname:image must: not use any of the 34 * [[VUID-vkCmdClearColorImage-image-10001]] 35 If pname:image is non-sparse then it must: be bound completely and [all …]
|
D | expect-new-vuid-noreflow.adoc | 12 [open,refpage='vkCmdClearColorImage',desc='Clear regions of a color image',type='protos'] 14 To clear one or more subranges of a color image, call: 21 * [[VUID-vkCmdClearColorImage-image-01993]] 22 …The <<resources-image-format-features,format features>> of pname:image must: contain ename:VK_FORM… 24 * [[VUID-vkCmdClearColorImage-image-10000]] 25 pname:image must: have been created with ename:VK_IMAGE_USAGE_TRANSFER_DST_BIT usage flag 27 * [[VUID-vkCmdClearColorImage-image-01545]] 28 …pname:image must: not use any of the <<formats-requiring-sampler-ycbcr-conversion, formats that re… 30 * [[VUID-vkCmdClearColorImage-image-10001]] 31 …If pname:image is non-sparse then it must: be bound completely and contiguously to a single sname:… [all …]
|
D | src-new-vuid.adoc | 12 [open,refpage='vkCmdClearColorImage',desc='Clear regions of a color image',type='protos'] 14 To clear one or more subranges of a color image, call: 21 * [[VUID-vkCmdClearColorImage-image-01993]] 22 …The <<resources-image-format-features,format features>> of pname:image must: contain ename:VK_FORM… 24 * pname:image must: have been created with ename:VK_IMAGE_USAGE_TRANSFER_DST_BIT usage flag 26 * [[VUID-vkCmdClearColorImage-image-01545]] 27 …pname:image must: not use any of the <<formats-requiring-sampler-ycbcr-conversion, formats that re… 29 …* If pname:image is non-sparse then it must: be bound completely and contiguously to a single snam… 31 …pname:imageLayout must: specify the layout of the image subresource ranges of pname:image specifie… 46 pname:mipLevels specified in slink:VkImageCreateInfo when pname:image [all …]
|
D | expect-new-vuid-noreflow-novuid.adoc | 12 [open,refpage='vkCmdClearColorImage',desc='Clear regions of a color image',type='protos'] 14 To clear one or more subranges of a color image, call: 21 * [[VUID-vkCmdClearColorImage-image-01993]] 22 …The <<resources-image-format-features,format features>> of pname:image must: contain ename:VK_FORM… 24 * pname:image must: have been created with ename:VK_IMAGE_USAGE_TRANSFER_DST_BIT usage flag 26 * [[VUID-vkCmdClearColorImage-image-01545]] 27 …pname:image must: not use any of the <<formats-requiring-sampler-ycbcr-conversion, formats that re… 29 …* If pname:image is non-sparse then it must: be bound completely and contiguously to a single snam… 31 …pname:imageLayout must: specify the layout of the image subresource ranges of pname:image specifie… 46 pname:mipLevels specified in slink:VkImageCreateInfo when pname:image [all …]
|
D | expect-new-vuid-novuid.adoc | 12 [open,refpage='vkCmdClearColorImage',desc='Clear regions of a color image',type='protos'] 14 To clear one or more subranges of a color image, call: 21 * [[VUID-vkCmdClearColorImage-image-01993]] 22 The <<resources-image-format-features,format features>> of pname:image 25 * pname:image must: have been created with 28 * [[VUID-vkCmdClearColorImage-image-01545]] 29 pname:image must: not use any of the 33 * If pname:image is non-sparse then it must: be bound completely and 36 pname:imageLayout must: specify the layout of the image subresource 37 ranges of pname:image specified in pname:pRanges at the time this [all …]
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/appendices/ |
D | VK_NV_dedicated_allocation.adoc | 19 or image resource, which on some devices can significantly improve the 29 allocation: a new structure that flags whether am image/buffer will have a 30 dedicated allocation, and a structure indicating the image or buffer that an 39 // Create an image with 57 VkImage image; 62 &image); 67 image, 70 // Allocate memory with VkDedicatedAllocationMemoryAllocateInfoNV::image 71 // pointing to the image we are allocating the memory for 77 .image = image, [all …]
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/proposals/ |
D | VK_EXT_host_image_copy.adoc | 10 This document identifies inefficiencies with image data initialization and proposes an extension to… 15 Similarly, copying data out of an optimal-layout image requires a copy to a buffer. 18 Take initializing an image for the purpose of sampling as an example, where the source of data is a… 19 …ne copy), then initialize the buffer (second copy) and finally copy over to the image (third copy). 20 … scenario by creating and memory mapping the buffer first and loading the image data from disk dir… 24 The buffer that is allocated for the image copy is at least as big as the image itself, and lives f… 25 When an application performs a large number of image initialization at the same time, such as a gam… 28 This document proposes an extension that allows image data to be copied from/to host memory directl… 29 While copying to an optimal layout image on the CPU has its own costs, this extension can still lea… 34 The extension's API is designed to be similar to buffer-image and image-image copies. [all …]
|
/hardware/google/gfxstream/host/gl/ |
D | EmulatedEglImage.cpp | 31 EGLImageKHR image = s_egl.eglCreateImageKHR(display, context, target, buffer, nullptr); in create() local 32 if (image == EGL_NO_IMAGE_KHR) { in create() 41 HandleType handle = (HandleType)reinterpret_cast<uintptr_t>(image); in create() 43 return std::unique_ptr<EmulatedEglImage>(new EmulatedEglImage(handle, display, image)); in create() 48 EGLImageKHR image) in EmulatedEglImage() argument 51 mEglImage(image) {} in EmulatedEglImage()
|
/hardware/google/gfxstream/host/vulkan/ |
D | BorrowedImageVk.cpp | 37 .image = borrowedImageInfo.image, in addNeededBarriersToUseBorrowedImage() 60 .image = borrowedImageInfo.image, in addNeededBarriersToUseBorrowedImage() 82 .image = borrowedImageInfo.image, in addNeededBarriersToUseBorrowedImage() 104 .image = borrowedImageInfo.image, in addNeededBarriersToUseBorrowedImage()
|