Module Name:    src
Committed By:   riastradh
Date:           Sun Sep  8 16:04:09 UTC 2013

Modified Files:
        src/sys/external/bsd/drm2/dist/drm/i915 [riastradh-drm2]: i915_gem.c

Log Message:
The bus_dmamap_load_raw got moved to i915_gem_gtt but not committed.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1.2.12 -r1.1.1.1.2.13 \
    src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c
diff -u src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c:1.1.1.1.2.12 src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c:1.1.1.1.2.13
--- src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c:1.1.1.1.2.12	Sun Sep  8 16:03:21 2013
+++ src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c	Sun Sep  8 16:04:09 2013
@@ -2034,7 +2034,6 @@ i915_gem_object_put_pages_gtt(struct drm
 
 	/* XXX Maintain dirty flag?  */
 
-	bus_dmamap_unload(dev->dmat, obj->igo_dmamap);
 	bus_dmamap_destroy(dev->dmat, obj->igo_dmamap);
 	bus_dmamem_unwire_uvm_object(dev->dmat, obj->base.gemo_shm_uao, 0,
 	    obj->base.size, obj->pages, obj->igo_nsegs);
@@ -2198,12 +2197,6 @@ i915_gem_object_get_pages_gtt(struct drm
 	if (error)
 		goto fail2;
 
-	/* XXX errno NetBSD->Linux */
-	error = -bus_dmamap_load_raw(dev->dmat, obj->igo_dmamap, obj->pages,
-	    obj->igo_nsegs, obj->base.size, BUS_DMA_NOWAIT);
-	if (error)
-		goto fail3;
-
 	/* XXX Cargo-culted from the Linux code.  */
 	if (i915_gem_object_needs_bit17_swizzle(obj))
 		i915_gem_object_do_bit_17_swizzle(obj);
@@ -2211,7 +2204,6 @@ i915_gem_object_get_pages_gtt(struct drm
 	/* Success!  */
 	return 0;
 
-fail3:	bus_dmamap_destroy(dev->dmat, obj->igo_dmamap);
 fail2:	bus_dmamem_unwire_uvm_object(dev->dmat, obj->base.gemo_shm_uao, 0,
 	    obj->base.size, obj->pages, (obj->base.size / PAGE_SIZE));
 fail1:	kfree(obj->pages);

Reply via email to