aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeif Delgass2003-04-24 11:47:32 -0500
committerLeif Delgass2003-04-24 11:47:32 -0500
commit2dc672a7908817f43391703a8341cb873fbb1543 (patch)
tree9b1a6e3ad7e6558c8915599f0ef5b6495add1ac4 /tests/dristat.c
parentcd3d6090b79ad5583494938a231cfc4da610ca9b (diff)
downloadexternal-libdrm-2dc672a7908817f43391703a8341cb873fbb1543.tar.gz
external-libdrm-2dc672a7908817f43391703a8341cb873fbb1543.tar.xz
external-libdrm-2dc672a7908817f43391703a8341cb873fbb1543.zip
Minor cleanups for dri/drmstat test progs (Both still need targets for new
Makefile)
Diffstat (limited to 'tests/dristat.c')
-rw-r--r--tests/dristat.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/dristat.c b/tests/dristat.c
index 07ab54ea..1fba0f05 100644
--- a/tests/dristat.c
+++ b/tests/dristat.c
@@ -82,7 +82,8 @@ static void getvm(int fd)
82 drmHandle handle; 82 drmHandle handle;
83 int mtrr; 83 int mtrr;
84 84
85 printf(" VM map information (Restricted locked kernel WC Lock):\n"); 85 printf(" VM map information:\n");
86 printf(" flags: (R)estricted (r)ead/(w)rite (l)ocked (k)ernel (W)rite-combine (L)ock:\n");
86 printf(" slot offset size type flags address mtrr\n"); 87 printf(" slot offset size type flags address mtrr\n");
87 88
88 for (i = 0; 89 for (i = 0;
@@ -90,11 +91,12 @@ static void getvm(int fd)
90 i++) { 91 i++) {
91 92
92 switch (type) { 93 switch (type) {
93 case DRM_FRAME_BUFFER: typename = "FB"; break; 94 case DRM_FRAME_BUFFER: typename = "FB"; break;
94 case DRM_REGISTERS: typename = "REG"; break; 95 case DRM_REGISTERS: typename = "REG"; break;
95 case DRM_SHM: typename = "SHM"; break; 96 case DRM_SHM: typename = "SHM"; break;
96 case DRM_AGP: typename = "AGP"; break; 97 case DRM_AGP: typename = "AGP"; break;
97 default: typename = "???"; break; 98 case DRM_SCATTER_GATHER: typename = "SG"; break;
99 default: typename = "???"; break;
98 } 100 }
99 101
100 flagname[0] = (flags & DRM_RESTRICTED) ? 'R' : ' '; 102 flagname[0] = (flags & DRM_RESTRICTED) ? 'R' : ' ';