diff options
author | Kenneth Graunke <[email protected]> | 2018-08-16 23:48:24 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:08 -0800 |
commit | ad6ba5a7122c1f9f05857ed36200a9592b3c82f7 (patch) | |
tree | 498eae4e25b5877edc08449b4ff40f30fceb1f98 | |
parent | aad70ad8a15f7e4c4b3f3258dcd80cf3f92c0a29 (diff) |
iris: drop pwrite
nobody uses it
-rw-r--r-- | src/gallium/drivers/iris/iris_bufmgr.c | 24 | ||||
-rw-r--r-- | src/gallium/drivers/iris/iris_bufmgr.h | 3 |
2 files changed, 0 insertions, 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. * |