iris: use u_transfer helpers for now
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 7 Jun 2018 08:25:35 +0000 (01:25 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:06 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_resource.c

index dde859ab795df2a6b7ceaf3efbd4d515ad7ea458..aeed6ce594379372770cd69c1ed35eb6e853af88 100644 (file)
@@ -30,6 +30,7 @@
 #include "util/u_cpu_detect.h"
 #include "util/u_inlines.h"
 #include "util/u_format.h"
+#include "util/u_transfer.h"
 #include "util/u_upload_mgr.h"
 #include "util/ralloc.h"
 #include "iris_batch.h"
@@ -564,27 +565,6 @@ iris_transfer_unmap(struct pipe_context *pipe, struct pipe_transfer *xfer)
    free(map);
 }
 
-static void
-iris_buffer_subdata(struct pipe_context *pipe,
-                    struct pipe_resource *resource,
-                    unsigned usage, unsigned offset,
-                    unsigned size, const void *data)
-{
-}
-
-static void
-iris_texture_subdata(struct pipe_context *pipe,
-                     struct pipe_resource *resource,
-                     unsigned level,
-                     unsigned usage,
-                     const struct pipe_box *box,
-                     const void *data,
-                     unsigned stride,
-                     unsigned layer_stride)
-{
-}
-
-
 static void
 iris_resource_copy_region(struct pipe_context *ctx,
                           struct pipe_resource *dst,
@@ -631,7 +611,7 @@ iris_init_resource_functions(struct pipe_context *ctx)
    ctx->transfer_map = iris_transfer_map;
    ctx->transfer_flush_region = iris_transfer_flush_region;
    ctx->transfer_unmap = iris_transfer_unmap;
-   ctx->buffer_subdata = iris_buffer_subdata;
-   ctx->texture_subdata = iris_texture_subdata;
+   ctx->buffer_subdata = u_default_buffer_subdata;
+   ctx->texture_subdata = u_default_texture_subdata;
    ctx->resource_copy_region = iris_resource_copy_region;
 }