Revert "gallium: add flag PIPE_TRANSFER_MAP_PERMANENTLY"
[mesa.git] / src / gallium / drivers / i915 / i915_resource_buffer.c
index c54e481698e5e0dd542e7d946ce50d6746910b3d..77c03450b3a24b81449838c82d2cca95a8e1bdcf 100644 (file)
@@ -68,13 +68,8 @@ i915_get_transfer(struct pipe_context *pipe,
                   const struct pipe_box *box)
 {
    struct i915_context *i915 = i915_context(pipe);
-   struct pipe_transfer *transfer;
+   struct pipe_transfer *transfer = util_slab_alloc(&i915->transfer_pool);
 
-   if (usage & PIPE_TRANSFER_MAP_PERMANENTLY) {
-      return NULL;
-   }
-
-   transfer = util_slab_alloc(&i915->transfer_pool);
    if (transfer == NULL)
       return NULL;