"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gallium/frontends/lavapipe/lvp_image.c" between
mesa-21.2.0-rc1.tar.xz and mesa-21.2.0-rc2.tar.xz

About: Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics (main library code). Release candidate.

lvp_image.c  (mesa-21.2.0-rc1.tar.xz):lvp_image.c  (mesa-21.2.0-rc2.tar.xz)
skipping to change at line 80 skipping to change at line 80
if (pCreateInfo->usage & VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT) if (pCreateInfo->usage & VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT)
template.bind |= PIPE_BIND_DEPTH_STENCIL; template.bind |= PIPE_BIND_DEPTH_STENCIL;
if (pCreateInfo->usage & VK_IMAGE_USAGE_SAMPLED_BIT) if (pCreateInfo->usage & VK_IMAGE_USAGE_SAMPLED_BIT)
template.bind |= PIPE_BIND_SAMPLER_VIEW; template.bind |= PIPE_BIND_SAMPLER_VIEW;
if (pCreateInfo->usage & VK_IMAGE_USAGE_STORAGE_BIT) if (pCreateInfo->usage & VK_IMAGE_USAGE_STORAGE_BIT)
template.bind |= PIPE_BIND_SHADER_IMAGE; template.bind |= PIPE_BIND_SHADER_IMAGE;
template.format = vk_format_to_pipe(pCreateInfo->format); template.format = lvp_vk_format_to_pipe_format(pCreateInfo->format);
template.width0 = pCreateInfo->extent.width; template.width0 = pCreateInfo->extent.width;
template.height0 = pCreateInfo->extent.height; template.height0 = pCreateInfo->extent.height;
template.depth0 = pCreateInfo->extent.depth; template.depth0 = pCreateInfo->extent.depth;
template.array_size = pCreateInfo->arrayLayers; template.array_size = pCreateInfo->arrayLayers;
template.last_level = pCreateInfo->mipLevels - 1; template.last_level = pCreateInfo->mipLevels - 1;
template.nr_samples = pCreateInfo->samples; template.nr_samples = pCreateInfo->samples;
template.nr_storage_samples = pCreateInfo->samples; template.nr_storage_samples = pCreateInfo->samples;
if (create_info->bind_flags) if (create_info->bind_flags)
template.bind = create_info->bind_flags; template.bind = create_info->bind_flags;
image->bo = device->pscreen->resource_create_unbacked(device->pscreen, image->bo = device->pscreen->resource_create_unbacked(device->pscreen,
skipping to change at line 202 skipping to change at line 202
view = vk_alloc2(&device->vk.alloc, pAllocator, sizeof(*view), 8, view = vk_alloc2(&device->vk.alloc, pAllocator, sizeof(*view), 8,
VK_SYSTEM_ALLOCATION_SCOPE_OBJECT); VK_SYSTEM_ALLOCATION_SCOPE_OBJECT);
if (view == NULL) if (view == NULL)
return vk_error(device->instance, VK_ERROR_OUT_OF_HOST_MEMORY); return vk_error(device->instance, VK_ERROR_OUT_OF_HOST_MEMORY);
vk_object_base_init(&device->vk, &view->base, vk_object_base_init(&device->vk, &view->base,
VK_OBJECT_TYPE_IMAGE_VIEW); VK_OBJECT_TYPE_IMAGE_VIEW);
view->view_type = pCreateInfo->viewType; view->view_type = pCreateInfo->viewType;
view->format = pCreateInfo->format; view->format = pCreateInfo->format;
view->pformat = vk_format_to_pipe(pCreateInfo->format); view->pformat = lvp_vk_format_to_pipe_format(pCreateInfo->format);
view->components = pCreateInfo->components; view->components = pCreateInfo->components;
view->subresourceRange = pCreateInfo->subresourceRange; view->subresourceRange = pCreateInfo->subresourceRange;
view->image = image; view->image = image;
view->surface = NULL; view->surface = NULL;
*pView = lvp_image_view_to_handle(view); *pView = lvp_image_view_to_handle(view);
return VK_SUCCESS; return VK_SUCCESS;
} }
VKAPI_ATTR void VKAPI_CALL VKAPI_ATTR void VKAPI_CALL
skipping to change at line 405 skipping to change at line 405
struct lvp_buffer_view *view; struct lvp_buffer_view *view;
view = vk_alloc2(&device->vk.alloc, pAllocator, sizeof(*view), 8, view = vk_alloc2(&device->vk.alloc, pAllocator, sizeof(*view), 8,
VK_SYSTEM_ALLOCATION_SCOPE_OBJECT); VK_SYSTEM_ALLOCATION_SCOPE_OBJECT);
if (!view) if (!view)
return vk_error(device->instance, VK_ERROR_OUT_OF_HOST_MEMORY); return vk_error(device->instance, VK_ERROR_OUT_OF_HOST_MEMORY);
vk_object_base_init(&device->vk, &view->base, vk_object_base_init(&device->vk, &view->base,
VK_OBJECT_TYPE_BUFFER_VIEW); VK_OBJECT_TYPE_BUFFER_VIEW);
view->buffer = buffer; view->buffer = buffer;
view->format = pCreateInfo->format; view->format = pCreateInfo->format;
view->pformat = vk_format_to_pipe(pCreateInfo->format); view->pformat = lvp_vk_format_to_pipe_format(pCreateInfo->format);
view->offset = pCreateInfo->offset; view->offset = pCreateInfo->offset;
view->range = pCreateInfo->range; view->range = pCreateInfo->range;
*pView = lvp_buffer_view_to_handle(view); *pView = lvp_buffer_view_to_handle(view);
return VK_SUCCESS; return VK_SUCCESS;
} }
VKAPI_ATTR void VKAPI_CALL VKAPI_ATTR void VKAPI_CALL
lvp_DestroyBufferView(VkDevice _device, VkBufferView bufferView, lvp_DestroyBufferView(VkDevice _device, VkBufferView bufferView,
const VkAllocationCallbacks *pAllocator) const VkAllocationCallbacks *pAllocator)
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)