diff options
author | Thomas Hellstrom | 2007-02-07 10:25:13 -0600 |
---|---|---|
committer | Thomas Hellstrom | 2007-02-07 10:25:13 -0600 |
commit | c1fbd8a56653b91af57a408bbcf20a760a2bd8c8 (patch) | |
tree | 7da84cce76fa47b7950a2f849d2fbd4b5925b223 /tests | |
parent | af24465b2eddfcc5296edc830ea5ed86065a4abd (diff) | |
download | external-libdrm-c1fbd8a56653b91af57a408bbcf20a760a2bd8c8.tar.gz external-libdrm-c1fbd8a56653b91af57a408bbcf20a760a2bd8c8.tar.xz external-libdrm-c1fbd8a56653b91af57a408bbcf20a760a2bd8c8.zip |
Checkpoint commit.
Flag handling and memory type selection cleanup.
glxgears won't start.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ttmtest/src/ttmtest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ttmtest/src/ttmtest.c b/tests/ttmtest/src/ttmtest.c index 085a0746..606fb0cb 100644 --- a/tests/ttmtest/src/ttmtest.c +++ b/tests/ttmtest/src/ttmtest.c | |||
@@ -182,7 +182,7 @@ benchmarkBuffer(TinyDRIContext * ctx, unsigned long size, | |||
182 | drm_bo_type_dc, | 182 | drm_bo_type_dc, |
183 | DRM_BO_FLAG_READ | | 183 | DRM_BO_FLAG_READ | |
184 | DRM_BO_FLAG_WRITE | | 184 | DRM_BO_FLAG_WRITE | |
185 | DRM_BO_FLAG_MEM_LOCAL | DRM_BO_FLAG_NO_MOVE, 0, &buf)); | 185 | DRM_BO_FLAG_MEM_LOCAL /*| DRM_BO_FLAG_NO_MOVE*/, 0, &buf)); |
186 | curTime = fastrdtsc(); | 186 | curTime = fastrdtsc(); |
187 | *ticks++ = time_diff(oldTime, curTime); | 187 | *ticks++ = time_diff(oldTime, curTime); |
188 | 188 | ||
@@ -260,8 +260,8 @@ benchmarkBuffer(TinyDRIContext * ctx, unsigned long size, | |||
260 | 260 | ||
261 | oldTime = fastrdtsc(); | 261 | oldTime = fastrdtsc(); |
262 | ret = drmBOValidate(ctx->drmFD, &buf, | 262 | ret = drmBOValidate(ctx->drmFD, &buf, |
263 | DRM_BO_FLAG_MEM_TT | DRM_BO_FLAG_BIND_CACHED, | 263 | DRM_BO_FLAG_MEM_TT | DRM_BO_FLAG_CACHED | DRM_BO_FLAG_FORCE_CACHING, |
264 | DRM_BO_MASK_MEM | DRM_BO_FLAG_BIND_CACHED, DRM_BO_HINT_DONT_FENCE); | 264 | DRM_BO_MASK_MEMTYPE | DRM_BO_FLAG_FORCE_CACHING, DRM_BO_HINT_DONT_FENCE); |
265 | curTime = fastrdtsc(); | 265 | curTime = fastrdtsc(); |
266 | drmUnlock(ctx->drmFD, ctx->hwContext); | 266 | drmUnlock(ctx->drmFD, ctx->hwContext); |
267 | 267 | ||