1
0
mirror of https://github.com/Yours3lf/rpi-vk-driver.git synced 2025-01-30 22:52:14 +01:00
This commit is contained in:
Unknown 2018-05-13 19:29:47 +01:00
parent a7918ba249
commit 601d21296e
7 changed files with 403 additions and 403 deletions

View File

@ -14,17 +14,17 @@ __inline__ static void DEBUG_BREAK(void)
}
#ifdef DEBUG_BUILD
#define assert(expr) \
#define assert(expr) \
if( expr ){} \
else \
{ \
{ \
printf("Assert failed: %s\n" \
"File: %s\n" \
"Line: %i\n", #expr, __FILE__, __LINE__); \
DEBUG_BREAK(); \
}
}
#else
#define assert(expr) //do nothing
#define assert(expr) //do nothing
#endif
#if defined (__cplusplus)

View File

@ -291,7 +291,7 @@ uint32_t vc4_bo_alloc_shader(int fd, const void *data, uint32_t* size)
}
uint32_t vc4_bo_open_name(int fd, uint32_t name)
//uint32_t winsys_stride)
//uint32_t winsys_stride)
{
struct drm_gem_open o = {
.name = name

View File

@ -18,7 +18,7 @@ typedef struct VkRpiSurfaceCreateInfoKHR {
const void* pNext;
VkRpiSurfaceCreateFlagsKHR flags; //reserved
//maybe include some other stuff dunno
} VkRpiSurfaceCreateInfoKHR;
} VkRpiSurfaceCreateInfoKHR;
//extension name something like: VK_KHR_rpi_surface
VkResult vkCreateRpiSurfaceKHR(