diff options
| author | Nian Wu <nian@graphics.(none)> | 2007-02-25 17:06:13 -0800 | 
|---|---|---|
| committer | Nian Wu <nian@graphics.(none)> | 2007-02-25 17:06:13 -0800 | 
| commit | df2fc3ec62d6799a3266cfb18b1279a126892f44 (patch) | |
| tree | 94d39b9172bce8c93cb035e40d12e635dfaeb12f /tests/ttmtest | |
| parent | 80095ffe01efe79983c2124ecc99ce979d7ac6a9 (diff) | |
| parent | 9d8ba2d0d479f53b996c0a0e366acfee52daab3b (diff) | |
Merge git://proxy01.pd.intel.com:9419/git/mesa/drm into crestline
Diffstat (limited to 'tests/ttmtest')
| -rw-r--r-- | tests/ttmtest/src/ttmtest.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/tests/ttmtest/src/ttmtest.c b/tests/ttmtest/src/ttmtest.c index ae261e28..606fb0cb 100644 --- a/tests/ttmtest/src/ttmtest.c +++ b/tests/ttmtest/src/ttmtest.c @@ -182,7 +182,7 @@ benchmarkBuffer(TinyDRIContext * ctx, unsigned long size,  	    drm_bo_type_dc,  	    DRM_BO_FLAG_READ |  	    DRM_BO_FLAG_WRITE | -	    DRM_BO_FLAG_MEM_LOCAL | DRM_BO_FLAG_NO_MOVE, 0, &buf)); +			   DRM_BO_FLAG_MEM_LOCAL /*| DRM_BO_FLAG_NO_MOVE*/, 0, &buf));      curTime = fastrdtsc();      *ticks++ = time_diff(oldTime, curTime); @@ -260,8 +260,8 @@ benchmarkBuffer(TinyDRIContext * ctx, unsigned long size,      oldTime = fastrdtsc();      ret = drmBOValidate(ctx->drmFD, &buf, -	DRM_BO_FLAG_MEM_TT | DRM_BO_FLAG_BIND_CACHED, -	DRM_BO_MASK_MEM | DRM_BO_FLAG_BIND_CACHED, DRM_BO_HINT_DONT_FENCE); +	DRM_BO_FLAG_MEM_TT | DRM_BO_FLAG_CACHED | DRM_BO_FLAG_FORCE_CACHING, +	DRM_BO_MASK_MEMTYPE | DRM_BO_FLAG_FORCE_CACHING, DRM_BO_HINT_DONT_FENCE);      curTime = fastrdtsc();      drmUnlock(ctx->drmFD, ctx->hwContext); @@ -304,7 +304,7 @@ static void  testAGP(TinyDRIContext * ctx)  {      unsigned long ticks[128], *pTicks; -    unsigned long size = 4096 * 1024; +    unsigned long size = 8 * 1024;      int ret;      ret = benchmarkBuffer(ctx, size, ticks); | 
