summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/radeon_drv.h
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-03-05 22:51:33 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-03-05 22:51:33 +0000
commit14610802c50667e08386cd998c794795cc94418a (patch)
tree576c17c2f5da765cb00e411bf56f3cad5bed572c /sys/dev/pci/drm/radeon_drv.h
parent5899f1c3618e6db2f37f47ef99fa640ebdda5506 (diff)
Remove the stats_boxes counters and associated code from radeondrm.
They're really not all that useful.
Diffstat (limited to 'sys/dev/pci/drm/radeon_drv.h')
-rw-r--r--sys/dev/pci/drm/radeon_drv.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/sys/dev/pci/drm/radeon_drv.h b/sys/dev/pci/drm/radeon_drv.h
index 26cfb5d83a5..707f6e96bae 100644
--- a/sys/dev/pci/drm/radeon_drv.h
+++ b/sys/dev/pci/drm/radeon_drv.h
@@ -242,18 +242,6 @@ typedef struct drm_radeon_private {
int usec_timeout;
- struct {
- u32 boxes;
- int freelist_timeouts;
- int freelist_loops;
- int requested_bufs;
- int last_frame_reads;
- int last_clear_reads;
- int clears;
- int texture_uploads;
- } stats;
-
- int do_boxes;
int page_flipping;
u32 color_fmt;
@@ -411,14 +399,6 @@ extern int r300_do_cp_cmdbuf(struct drm_device *dev,
struct drm_file *file_priv,
drm_radeon_kcmd_buffer_t *cmdbuf);
-/* Flags for stats.boxes
- */
-#define RADEON_BOX_DMA_IDLE 0x1
-#define RADEON_BOX_RING_FULL 0x2
-#define RADEON_BOX_FLIP 0x4
-#define RADEON_BOX_WAIT_IDLE 0x8
-#define RADEON_BOX_TEXTURE_LOAD 0x10
-
/* Register definitions, register access macros and drmAddMap constants
* for Radeon kernel driver.
*/
@@ -1350,17 +1330,6 @@ do { \
* Misc helper macros
*/
-/* Perfbox functionality only.
- */
-#define RING_SPACE_TEST_WITH_RETURN( dev_priv ) \
-do { \
- if (!(dev_priv->stats.boxes & RADEON_BOX_DMA_IDLE)) { \
- u32 head = GET_RING_HEAD( dev_priv ); \
- if (head == dev_priv->ring.tail) \
- dev_priv->stats.boxes |= RADEON_BOX_DMA_IDLE; \
- } \
-} while (0)
-
#define VB_AGE_TEST_WITH_RETURN( dev_priv ) \
do { \
drm_radeon_sarea_t *sarea_priv = dev_priv->sarea_priv; \