diff options
author | Kenneth Graunke <[email protected]> | 2017-04-10 23:00:24 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-04-11 21:07:45 -0700 |
commit | 14fc188460ae33b8cbbbffdb4f26d470eb393c81 (patch) | |
tree | 0ef1a41f42d7fa1f7d36d297081eafd652856c0a /src/mesa/drivers/dri/i965/brw_bufmgr.h | |
parent | 193601311cb4cb6a7d8f915b09e2b30ff0af0fa7 (diff) |
i965/drm: Fix types for pwrite/pread fields.
The ioctl structs contain __u64 offset and size fields, so make them
uint64_t rather than unsigned long.
Reviewed-by: Chris Wilson <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_bufmgr.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_bufmgr.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.h b/src/mesa/drivers/dri/i965/brw_bufmgr.h index aa3d40bb959..2c221850afc 100644 --- a/src/mesa/drivers/dri/i965/brw_bufmgr.h +++ b/src/mesa/drivers/dri/i965/brw_bufmgr.h @@ -189,11 +189,11 @@ int brw_bo_map(struct brw_context *brw, struct brw_bo *bo, int write_enable); 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. * |