}
int
-brw_bo_subdata(struct brw_bo *bo, unsigned long offset,
- unsigned long size, const void *data)
+brw_bo_subdata(struct brw_bo *bo, uint64_t offset,
+ uint64_t size, const void *data)
{
struct brw_bufmgr *bufmgr = bo->bufmgr;
struct drm_i915_gem_pwrite pwrite;
ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_PWRITE, &pwrite);
if (ret != 0) {
ret = -errno;
- DBG("%s:%d: Error writing data to buffer %d: (%d %d) %s .\n",
- __FILE__, __LINE__, bo->gem_handle, (int) offset,
- (int) size, strerror(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;
}
int
-brw_bo_get_subdata(struct brw_bo *bo, unsigned long offset,
- unsigned long size, void *data)
+brw_bo_get_subdata(struct brw_bo *bo, uint64_t offset,
+ uint64_t size, void *data)
{
struct brw_bufmgr *bufmgr = bo->bufmgr;
struct drm_i915_gem_pread pread;
ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_PREAD, &pread);
if (ret != 0) {
ret = -errno;
- DBG("%s:%d: Error reading data from buffer %d: (%d %d) %s .\n",
- __FILE__, __LINE__, bo->gem_handle, (int) offset,
- (int) size, strerror(errno));
+ DBG("%s:%d: Error reading data from buffer %d: "
+ "(%"PRIu64" %"PRIu64") %s .\n",
+ __FILE__, __LINE__, bo->gem_handle, offset, size, strerror(errno));
}
return ret;
int brw_bo_unmap(struct brw_bo *bo);
/** Write data into an object. */
-int brw_bo_subdata(struct brw_bo *bo, unsigned long offset,
- unsigned long size, const void *data);
+int brw_bo_subdata(struct brw_bo *bo, uint64_t offset,
+ uint64_t size, const void *data);
/** Read data from an object. */
-int brw_bo_get_subdata(struct brw_bo *bo, unsigned long offset,
- unsigned long size, void *data);
+int brw_bo_get_subdata(struct brw_bo *bo, uint64_t offset,
+ uint64_t size, void *data);
/**
* Waits for rendering to an object by the GPU to have completed.
*