From ad6ba5a7122c1f9f05857ed36200a9592b3c82f7 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 16 Aug 2018 23:48:24 -0700 Subject: [PATCH] iris: drop pwrite nobody uses it --- src/gallium/drivers/iris/iris_bufmgr.c | 24 ------------------------ src/gallium/drivers/iris/iris_bufmgr.h | 3 --- 2 files changed, 27 deletions(-) diff --git a/src/gallium/drivers/iris/iris_bufmgr.c b/src/gallium/drivers/iris/iris_bufmgr.c index 450a28ae482..ebec10bf093 100644 --- a/src/gallium/drivers/iris/iris_bufmgr.c +++ b/src/gallium/drivers/iris/iris_bufmgr.c @@ -1185,30 +1185,6 @@ iris_bo_map(struct pipe_debug_callback *dbg, return map; } -int -iris_bo_subdata(struct iris_bo *bo, uint64_t offset, - uint64_t size, const void *data) -{ - struct iris_bufmgr *bufmgr = bo->bufmgr; - - struct drm_i915_gem_pwrite pwrite = { - .handle = bo->gem_handle, - .offset = offset, - .size = size, - .data_ptr = (uint64_t) (uintptr_t) data, - }; - - int ret = drm_ioctl(bufmgr->fd, DRM_IOCTL_I915_GEM_PWRITE, &pwrite); - if (ret != 0) { - ret = -errno; - DBG("%s:%d: Error writing data to buffer %d: " - "(%"PRIu64" %"PRIu64") %s .\n", - __FILE__, __LINE__, bo->gem_handle, offset, size, strerror(errno)); - } - - return ret; -} - /** Waits for all GPU rendering with the object to have completed. */ void iris_bo_wait_rendering(struct iris_bo *bo) diff --git a/src/gallium/drivers/iris/iris_bufmgr.h b/src/gallium/drivers/iris/iris_bufmgr.h index 03cce6e70c0..f966b021ea3 100644 --- a/src/gallium/drivers/iris/iris_bufmgr.h +++ b/src/gallium/drivers/iris/iris_bufmgr.h @@ -264,9 +264,6 @@ MUST_CHECK void *iris_bo_map(struct pipe_debug_callback *dbg, */ static inline int iris_bo_unmap(struct iris_bo *bo) { return 0; } -/** Write data into an object. */ -int iris_bo_subdata(struct iris_bo *bo, uint64_t offset, - uint64_t size, const void *data); /** * Waits for rendering to an object by the GPU to have completed. * -- 2.30.2