Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 3772 → Rev 3771

/drivers/video/Gallium/auxiliary/cso_cache/cso_cache.c
File deleted
/drivers/video/Gallium/auxiliary/cso_cache/cso_hash.c
File deleted
/drivers/video/Gallium/auxiliary/cso_cache/cso_context.c
File deleted
/drivers/video/Gallium/auxiliary/cso_cache/cso_hash.h
File deleted
/drivers/video/Gallium/auxiliary/cso_cache/cso_cache.h
File deleted
/drivers/video/Gallium/auxiliary/cso_cache/cso_context.h
File deleted
/drivers/video/Gallium/auxiliary/pipebuffer/pb_buffer_fenced.c
File deleted
/drivers/video/Gallium/auxiliary/pipebuffer/pb_buffer.h
File deleted
/drivers/video/Gallium/auxiliary/pipebuffer/pb_validate.h
File deleted
/drivers/video/Gallium/auxiliary/pipebuffer/pb_buffer_malloc.c
File deleted
/drivers/video/Gallium/auxiliary/pipebuffer/pb_bufmgr_alt.c
File deleted
/drivers/video/Gallium/auxiliary/pipebuffer/pb_buffer_fenced.h
File deleted
/drivers/video/Gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c
File deleted
/drivers/video/Gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c
File deleted
/drivers/video/Gallium/auxiliary/pipebuffer/pb_bufmgr.h
File deleted
/drivers/video/Gallium/auxiliary/pipebuffer/pb_bufmgr_ondemand.c
File deleted
/drivers/video/Gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c
File deleted
/drivers/video/Gallium/auxiliary/pipebuffer/pb_validate.c
File deleted
/drivers/video/Gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c
File deleted
/drivers/video/Gallium/auxiliary/pipebuffer/pb_bufmgr_pool.c
File deleted
/drivers/video/Gallium/auxiliary/translate/translate.c
File deleted
/drivers/video/Gallium/auxiliary/translate/translate_cache.c
File deleted
/drivers/video/Gallium/auxiliary/translate/translate.h
File deleted
/drivers/video/Gallium/auxiliary/translate/translate_cache.h
File deleted
/drivers/video/Gallium/auxiliary/translate/translate_sse.c
File deleted
/drivers/video/Gallium/auxiliary/translate/translate_generic.c
File deleted
/drivers/video/Gallium/auxiliary/rtasm/rtasm_x86sse.c
File deleted
/drivers/video/Gallium/auxiliary/rtasm/rtasm_execmem.c
File deleted
/drivers/video/Gallium/auxiliary/rtasm/rtasm_x86sse.h
File deleted
/drivers/video/Gallium/auxiliary/rtasm/rtasm_cpu.c
File deleted
/drivers/video/Gallium/auxiliary/rtasm/rtasm_execmem.h
File deleted
/drivers/video/Gallium/auxiliary/rtasm/rtasm_cpu.h
File deleted
/drivers/video/Gallium/auxiliary/os/os_time.c
35,8 → 35,14
 
#include "pipe/p_config.h"
 
#if defined(PIPE_OS_UNIX)
# include <time.h> /* timeval */
# include <sys/time.h> /* timeval */
#elif defined(PIPE_SUBSYSTEM_WINDOWS_USER)
# include <windows.h>
#else
# error Unsupported OS
#endif
 
#include "os_time.h"
 
44,8 → 50,32
int64_t
os_time_get_nano(void)
{
#if defined(PIPE_OS_LINUX)
 
struct timespec tv;
clock_gettime(CLOCK_MONOTONIC, &tv);
return tv.tv_nsec + tv.tv_sec*INT64_C(1000000000);
 
#elif defined(PIPE_OS_UNIX)
 
struct timeval tv;
gettimeofday(&tv, NULL);
return tv.tv_usec*INT64_C(1000) + tv.tv_sec*INT64_C(1000000000);
 
#elif defined(PIPE_SUBSYSTEM_WINDOWS_USER)
 
static LARGE_INTEGER frequency;
LARGE_INTEGER counter;
if(!frequency.QuadPart)
QueryPerformanceFrequency(&frequency);
QueryPerformanceCounter(&counter);
return counter.QuadPart*INT64_C(1000000000)/frequency.QuadPart;
 
#else
 
#error Unsupported OS
 
#endif
}
 
 
/drivers/video/Gallium/include/pipe/p_config.h
212,6 → 212,10
#define PIPE_OS_UNIX
#endif
 
#if defined(_WIN32) || defined(WIN32)
#define PIPE_OS_WINDOWS
#endif
 
#if defined(__HAIKU__)
#define PIPE_OS_HAIKU
#define PIPE_OS_UNIX