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) &&
unblocked = true;
}
break;
- case ILO_TRANSFER_MAP_GTT_UNSYNC:
+ case ILO_TRANSFER_MAP_GTT_ASYNC:
case ILO_TRANSFER_MAP_STAGING:
unblocked = true;
break;
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:
{
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:
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);
#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,
* 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);
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.