Hehe, sleep may be necessary now.
/* TODO: call dri2CopyRegion */
}
-struct pipe_winsys* radeon_pipe_winsys(int fd)
+struct radeon_winsys* radeon_pipe_winsys(int fd)
{
struct radeon_winsys* radeon_ws;
struct radeon_bo_manager* bom;
struct radeon_bo_manager* bom;
};
-struct pipe_winsys *radeon_pipe_winsys(int fb);
+struct radeon_winsys* radeon_pipe_winsys(int fb);
struct pipe_surface *radeon_surface_from_handle(struct radeon_context *radeon_context,
uint32_t handle,
enum pipe_format format,
/* Create a pipe_screen. */
struct pipe_screen* radeon_create_screen(int drmFB, int pciID)
{
- struct pipe_winsys* winsys = radeon_pipe_winsys(drmFB);
+ struct radeon_winsys* winsys = radeon_pipe_winsys(drmFB);
if (getenv("RADEON_SOFTPIPE")) {
- return softpipe_create_screen(winsys);
+ return softpipe_create_screen((struct pipe_winsys*)winsys);
} else {
struct r300_winsys* r300 = radeon_create_r300_winsys(drmFB, winsys);
FREE(winsys);
}
-struct r300_winsys* radeon_create_r300_winsys(int fd, struct pipe_winsys* old_winsys)
+struct r300_winsys*
+radeon_create_r300_winsys(int fd, struct radeon_winsys* old_winsys)
{
struct r300_winsys* winsys = CALLOC_STRUCT(r300_winsys);
winsys->end_cs = radeon_cs_end;
winsys->flush_cs = radeon_r300_flush_cs;
- winsys->base = *old_winsys;
+ memcpy(winsys, old_winsys, sizeof(struct radeon_winsys));
return winsys;
}
#include "radeon_buffer.h"
-struct r300_winsys* radeon_create_r300_winsys(int fd, struct pipe_winsys* old_winsys);
+struct r300_winsys*
+radeon_create_r300_winsys(int fd, struct radeon_winsys* old_winsys);