"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gallium/frontends/lavapipe/lvp_private.h" 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_private.h  (mesa-21.2.0-rc1.tar.xz):lvp_private.h  (mesa-21.2.0-rc2.tar.xz)
skipping to change at line 58 skipping to change at line 58
#define VK_PROTOTYPES #define VK_PROTOTYPES
#include <vulkan/vulkan.h> #include <vulkan/vulkan.h>
#include <vulkan/vk_icd.h> #include <vulkan/vk_icd.h>
#include "lvp_entrypoints.h" #include "lvp_entrypoints.h"
#include "vk_device.h" #include "vk_device.h"
#include "vk_instance.h" #include "vk_instance.h"
#include "vk_physical_device.h" #include "vk_physical_device.h"
#include "vk_shader_module.h" #include "vk_shader_module.h"
#include "vk_util.h" #include "vk_util.h"
#include "vk_format.h"
#include "wsi_common.h" #include "wsi_common.h"
#include <assert.h> #include <assert.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#define MAX_SETS 8 #define MAX_SETS 8
#define MAX_PUSH_CONSTANTS_SIZE 128 #define MAX_PUSH_CONSTANTS_SIZE 128
skipping to change at line 1167 skipping to change at line 1168
struct lvp_cmd_set_rasterizer_discard_enable set_rasterizer_discard_enable ; struct lvp_cmd_set_rasterizer_discard_enable set_rasterizer_discard_enable ;
} u; } u;
}; };
VkResult lvp_execute_cmds(struct lvp_device *device, VkResult lvp_execute_cmds(struct lvp_device *device,
struct lvp_queue *queue, struct lvp_queue *queue,
struct lvp_cmd_buffer *cmd_buffer); struct lvp_cmd_buffer *cmd_buffer);
struct lvp_image *lvp_swapchain_get_image(VkSwapchainKHR swapchain, struct lvp_image *lvp_swapchain_get_image(VkSwapchainKHR swapchain,
uint32_t index); uint32_t index);
enum pipe_format vk_format_to_pipe(VkFormat format);
static inline VkImageAspectFlags static inline enum pipe_format
vk_format_aspects(VkFormat format) lvp_vk_format_to_pipe_format(VkFormat format)
{ {
switch (format) { /* Some formats cause problems with CTS right now.*/
case VK_FORMAT_UNDEFINED: if (format == VK_FORMAT_R4G4B4A4_UNORM_PACK16 ||
return 0; format == VK_FORMAT_A4R4G4B4_UNORM_PACK16_EXT || /* VK_EXT_4444_formats *
/
case VK_FORMAT_S8_UINT: format == VK_FORMAT_A4B4G4R4_UNORM_PACK16_EXT || /* VK_EXT_4444_formats *
return VK_IMAGE_ASPECT_STENCIL_BIT; /
format == VK_FORMAT_R5G5B5A1_UNORM_PACK16 ||
case VK_FORMAT_D16_UNORM_S8_UINT: format == VK_FORMAT_R8_SRGB ||
case VK_FORMAT_D24_UNORM_S8_UINT: format == VK_FORMAT_R8G8_SRGB ||
case VK_FORMAT_D32_SFLOAT_S8_UINT: format == VK_FORMAT_R64G64B64A64_SFLOAT ||
return VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; format == VK_FORMAT_R64_SFLOAT ||
format == VK_FORMAT_R64G64_SFLOAT ||
case VK_FORMAT_D16_UNORM: format == VK_FORMAT_R64G64B64_SFLOAT ||
case VK_FORMAT_X8_D24_UNORM_PACK32: format == VK_FORMAT_A2R10G10B10_SINT_PACK32 ||
case VK_FORMAT_D32_SFLOAT: format == VK_FORMAT_A2B10G10R10_SINT_PACK32 ||
return VK_IMAGE_ASPECT_DEPTH_BIT; format == VK_FORMAT_G8B8G8R8_422_UNORM ||
format == VK_FORMAT_B8G8R8G8_422_UNORM ||
default: format == VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM ||
return VK_IMAGE_ASPECT_COLOR_BIT; format == VK_FORMAT_G8_B8R8_2PLANE_420_UNORM ||
} format == VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM ||
format == VK_FORMAT_G8_B8R8_2PLANE_422_UNORM ||
format == VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM ||
format == VK_FORMAT_G16_B16_R16_3PLANE_420_UNORM ||
format == VK_FORMAT_G16_B16R16_2PLANE_420_UNORM ||
format == VK_FORMAT_G16_B16_R16_3PLANE_422_UNORM ||
format == VK_FORMAT_G16_B16R16_2PLANE_422_UNORM ||
format == VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM ||
format == VK_FORMAT_D16_UNORM_S8_UINT)
return PIPE_FORMAT_NONE;
return vk_format_to_pipe_format(format);
} }
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
 End of changes. 4 change blocks. 
23 lines changed or deleted 34 lines changed or added

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