ilo: rename intel_bo_map_unsynchronized()
authorChia-I Wu <olvaffe@gmail.com>
Tue, 26 Aug 2014 05:41:11 +0000 (13:41 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Tue, 26 Aug 2014 06:10:50 +0000 (14:10 +0800)
Rename it to intel_bo_map_gtt_async().

src/gallium/drivers/ilo/ilo_transfer.c
src/gallium/drivers/ilo/ilo_transfer.h
src/gallium/winsys/intel/drm/intel_drm_winsys.c
src/gallium/winsys/intel/intel_winsys.h

index a38708d88a6b1ecd98128b3393673a165939a6f4..de6f4324b9aafcb835a8a112037b90c94ef08173 100644 (file)
@@ -224,7 +224,7 @@ xfer_unblock(struct ilo_transfer *xfer, bool *resource_renamed)
    case ILO_TRANSFER_MAP_CPU:
    case ILO_TRANSFER_MAP_GTT:
       if (xfer->base.usage & PIPE_TRANSFER_UNSYNCHRONIZED) {
-         xfer->method = ILO_TRANSFER_MAP_GTT_UNSYNC;
+         xfer->method = ILO_TRANSFER_MAP_GTT_ASYNC;
          unblocked = true;
       }
       else if ((xfer->base.usage & PIPE_TRANSFER_DISCARD_WHOLE_RESOURCE) &&
@@ -238,7 +238,7 @@ xfer_unblock(struct ilo_transfer *xfer, bool *resource_renamed)
          unblocked = true;
       }
       break;
-   case ILO_TRANSFER_MAP_GTT_UNSYNC:
+   case ILO_TRANSFER_MAP_GTT_ASYNC:
    case ILO_TRANSFER_MAP_STAGING:
       unblocked = true;
       break;
@@ -291,9 +291,8 @@ xfer_map(struct ilo_transfer *xfer)
    case ILO_TRANSFER_MAP_GTT:
       ptr = intel_bo_map_gtt(ilo_resource_get_bo(xfer->base.resource));
       break;
-   case ILO_TRANSFER_MAP_GTT_UNSYNC:
-      ptr = intel_bo_map_unsynchronized(
-            ilo_resource_get_bo(xfer->base.resource));
+   case ILO_TRANSFER_MAP_GTT_ASYNC:
+      ptr = intel_bo_map_gtt_async(ilo_resource_get_bo(xfer->base.resource));
       break;
    case ILO_TRANSFER_MAP_STAGING:
       {
@@ -337,7 +336,7 @@ xfer_unmap(struct ilo_transfer *xfer)
    switch (xfer->method) {
    case ILO_TRANSFER_MAP_CPU:
    case ILO_TRANSFER_MAP_GTT:
-   case ILO_TRANSFER_MAP_GTT_UNSYNC:
+   case ILO_TRANSFER_MAP_GTT_ASYNC:
       intel_bo_unmap(ilo_resource_get_bo(xfer->base.resource));
       break;
    case ILO_TRANSFER_MAP_STAGING:
@@ -953,7 +952,7 @@ tex_map(struct ilo_transfer *xfer)
    switch (xfer->method) {
    case ILO_TRANSFER_MAP_CPU:
    case ILO_TRANSFER_MAP_GTT:
-   case ILO_TRANSFER_MAP_GTT_UNSYNC:
+   case ILO_TRANSFER_MAP_GTT_ASYNC:
       ptr = xfer_map(xfer);
       if (ptr) {
          const struct ilo_texture *tex = ilo_texture(xfer->base.resource);
index d7f4838d3845cf526d2ba25a2bb08db2dc0de036..e41edc1aa5326ff8e0393ca80b4f2889f2fe93c3 100644 (file)
 #define ILO_TRANSFER_MAP_BUFFER_ALIGNMENT 64
 
 enum ilo_transfer_map_method {
-   /* map() / map_gtt() / map_unsynchronized() */
+   /* map() / map_gtt() / map_gtt_async() */
    ILO_TRANSFER_MAP_CPU,
    ILO_TRANSFER_MAP_GTT,
-   ILO_TRANSFER_MAP_GTT_UNSYNC,
+   ILO_TRANSFER_MAP_GTT_ASYNC,
 
    /* use staging resource */
    ILO_TRANSFER_MAP_STAGING,
index 6f85852c2643c2b52d11fdf2549b0d3344d0ddf5..2da7b02657a585f900e125105d9d3128d08154c2 100644 (file)
@@ -510,7 +510,7 @@ intel_bo_map_gtt(struct intel_bo *bo)
 }
 
 void *
-intel_bo_map_unsynchronized(struct intel_bo *bo)
+intel_bo_map_gtt_async(struct intel_bo *bo)
 {
    int err;
 
index c928cad4316d67f93c392b010fd5af63a3c16b49..2f053146bb255a88a32afe229b8bdc11bebc3ed2 100644 (file)
@@ -226,8 +226,7 @@ intel_bo_unreference(struct intel_bo *bo);
  * sequential writes, but reads would be very slow.  Callers always have a
  * linear view of the bo.
  *
- * map_unsynchronized() is similar to map_gtt(), except that it does not
- * block.
+ * map_gtt_async() is similar to map_gtt(), except that it does not block.
  */
 void *
 intel_bo_map(struct intel_bo *bo, bool write_enable);
@@ -236,7 +235,7 @@ void *
 intel_bo_map_gtt(struct intel_bo *bo);
 
 void *
-intel_bo_map_unsynchronized(struct intel_bo *bo);
+intel_bo_map_gtt_async(struct intel_bo *bo);
 
 /**
  * Unmap \p bo.