]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/libdrm.git/commitdiff
modetest: use gtt unmap for object
authorJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 22 Jun 2009 19:27:49 +0000 (12:27 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 22 Jun 2009 19:27:49 +0000 (12:27 -0700)
Match gtt map/unmap for correctness.

tests/modetest/modetest.c

index 58e0e4cfc100cc0fa3e9f77f9bac02c283fb0cc1..6c69a570a76a99f6623bf769a3364bd0523752cb 100644 (file)
@@ -447,7 +447,7 @@ create_test_buffer(drm_intel_bufmgr *bufmgr,
                d = div(i, width);
                fb_ptr[i] = 0x00130502 * (d.quot >> 6) + 0x000a1120 * (d.rem >> 6);
        }
-       drm_intel_bo_unmap(bo);
+       drm_intel_gem_bo_unmap_gtt(bo);
 
        *bo_out = bo;
        *stride_out = stride;