ilo: s/TRANSFER_MAP_UNSYNC/TRANSFER_MAP_GTT_UNSYNC/
authorChia-I Wu <olvaffe@gmail.com>
Mon, 28 Jul 2014 04:56:02 +0000 (12:56 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Mon, 28 Jul 2014 14:57:22 +0000 (22:57 +0800)
It maps to drm_intel_gem_bo_map_unsynchronized(), which results in
unsynchronized GTT mapping.

src/gallium/drivers/ilo/ilo_transfer.c
src/gallium/drivers/ilo/ilo_transfer.h

index 1615343..f77f3f3 100644 (file)
@@ -165,7 +165,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_UNSYNC;
+         xfer->method = ILO_TRANSFER_MAP_GTT_UNSYNC;
          unblocked = true;
       }
       else if ((xfer->base.usage & PIPE_TRANSFER_DISCARD_WHOLE_RESOURCE) &&
@@ -177,7 +177,7 @@ xfer_unblock(struct ilo_transfer *xfer, bool *resource_renamed)
          /* TODO */
       }
       break;
-   case ILO_TRANSFER_MAP_UNSYNC:
+   case ILO_TRANSFER_MAP_GTT_UNSYNC:
       unblocked = true;
       break;
    default:
@@ -227,7 +227,7 @@ xfer_map(struct ilo_transfer *xfer)
    case ILO_TRANSFER_MAP_GTT:
       xfer->ptr = intel_bo_map_gtt(resource_get_bo(xfer->base.resource));
       break;
-   case ILO_TRANSFER_MAP_UNSYNC:
+   case ILO_TRANSFER_MAP_GTT_UNSYNC:
       xfer->ptr =
          intel_bo_map_unsynchronized(resource_get_bo(xfer->base.resource));
       break;
@@ -253,7 +253,7 @@ xfer_unmap(struct ilo_transfer *xfer)
    switch (xfer->method) {
    case ILO_TRANSFER_MAP_CPU:
    case ILO_TRANSFER_MAP_GTT:
-   case ILO_TRANSFER_MAP_UNSYNC:
+   case ILO_TRANSFER_MAP_GTT_UNSYNC:
       intel_bo_unmap(resource_get_bo(xfer->base.resource));
       break;
    default:
@@ -892,7 +892,7 @@ tex_map(struct ilo_transfer *xfer)
    switch (xfer->method) {
    case ILO_TRANSFER_MAP_CPU:
    case ILO_TRANSFER_MAP_GTT:
-   case ILO_TRANSFER_MAP_UNSYNC:
+   case ILO_TRANSFER_MAP_GTT_UNSYNC:
       success = xfer_map(xfer);
       if (success) {
          const struct ilo_texture *tex = ilo_texture(xfer->base.resource);
index 3ba4bac..22137ce 100644 (file)
@@ -36,7 +36,7 @@ enum ilo_transfer_map_method {
    /* map() / map_gtt() / map_unsynchronized() */
    ILO_TRANSFER_MAP_CPU,
    ILO_TRANSFER_MAP_GTT,
-   ILO_TRANSFER_MAP_UNSYNC,
+   ILO_TRANSFER_MAP_GTT_UNSYNC,
 
    /* use staging system buffer */
    ILO_TRANSFER_MAP_SW_CONVERT,