1
0
mirror of https://github.com/Yours3lf/rpi-vk-driver.git synced 2025-02-07 04:54:20 +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 #ifdef DEBUG_BUILD
#define assert(expr) \ #define assert(expr) \
if( expr ){} \ if( expr ){} \
else \ else \
{ \ { \
printf("Assert failed: %s\n" \ printf("Assert failed: %s\n" \
"File: %s\n" \ "File: %s\n" \
"Line: %i\n", #expr, __FILE__, __LINE__); \ "Line: %i\n", #expr, __FILE__, __LINE__); \
DEBUG_BREAK(); \ DEBUG_BREAK(); \
} }
#else #else
#define assert(expr) //do nothing #define assert(expr) //do nothing
#endif #endif
#if defined (__cplusplus) #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 vc4_bo_open_name(int fd, uint32_t name)
//uint32_t winsys_stride) //uint32_t winsys_stride)
{ {
struct drm_gem_open o = { struct drm_gem_open o = {
.name = name .name = name

View File

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