RADEON_COMMON_SOURCES = \
radeon_texture.c \
radeon_common_context.c \
+ radeon_common.c \
radeon_dma.c \
radeon_lock.c \
radeon_bo_legacy.c \
RADEON_COMMON_SOURCES = \
radeon_texture.c \
radeon_common_context.c \
+ radeon_common.c \
radeon_dma.c \
radeon_lock.c \
radeon_bo_legacy.c \
RADEON_COMMON_SOURCES = \
radeon_texture.c \
radeon_common_context.c \
+ radeon_common.c \
radeon_dma.c \
radeon_lock.c \
radeon_bo_legacy.c \
#include <stdio.h>
#include <stdint.h>
-#include "radeon_track.h"
+//#include "radeon_track.h"
/* bo object */
#define RADEON_BO_FLAGS_MACRO_TILE 1
struct radeon_bo_manager {
struct radeon_bo_funcs *funcs;
int fd;
+
+#ifdef RADEON_BO_TRACK
struct radeon_tracker tracker;
+#endif
};
static inline void _radeon_bo_debug(struct radeon_bo *bo,
{
}
+static inline void *radeon_cs_manager_gem_ctor(int fd)
+{
+ return NULL;
+}
+
+static inline void radeon_cs_manager_gem_dtor(void *dummy)
+{
+}
+static inline void radeon_tracker_print(void *ptr, int io)
+{
+}
#endif
#include "radeon_bo_legacy.h"
#include "radeon_common.h"
#include "radeon_bocs_wrapper.h"
+#include "radeon_lock.h"
#include "radeon_drm.h"
#include "radeon_mipmap_tree.h"
#include "utils.h"
#include "drirenderbuffer.h"
#include "vblank.h"
+#include "main/state.h"
#define DRIVER_DATE "20090101"
*/
void radeonCleanupContext(radeonContextPtr radeon)
{
+#ifdef RADEON_BO_TRACK
FILE *track;
+#endif
struct radeon_renderbuffer *rb;
GLframebuffer *fb;
FREE(radeon->state.scissor.pClipRects);
radeon->state.scissor.pClipRects = 0;
}
+#ifdef RADEON_BO_TRACK
track = fopen("/tmp/tracklog", "w");
if (track) {
radeon_tracker_print(&radeon->radeonScreen->bom->tracker, track);
fclose(track);
}
+#endif
}
/* Force the context `c' to be unbound from its buffer.
return;
if (screen->kernel_mm) {
+#ifdef RADEON_BO_TRACK
radeon_tracker_print(&screen->bom->tracker, stderr);
+#endif
radeon_bo_manager_gem_dtor(screen->bom);
} else {
radeon_bo_manager_legacy_dtor(screen->bom);