diff options
author | Matt Turner <[email protected]> | 2017-05-05 11:20:05 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2017-06-06 11:47:46 -0700 |
commit | 5dc35e1664f7858679424f2c8ab606e6c0d8b768 (patch) | |
tree | 605ea19e0df294ca0471e6105ef12c58b8292eff /src/mesa/drivers/dri/i965/brw_bufmgr.h | |
parent | d7024a6b3cd16836597902593e25cb43989c0130 (diff) |
i965: Remove brw_bo's virtual member
Just return the map from brw_map_bo_*
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_bufmgr.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_bufmgr.h | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.h b/src/mesa/drivers/dri/i965/brw_bufmgr.h index d0b88fbcfda..1e3e8cff456 100644 --- a/src/mesa/drivers/dri/i965/brw_bufmgr.h +++ b/src/mesa/drivers/dri/i965/brw_bufmgr.h @@ -62,16 +62,6 @@ struct brw_bo { */ uint64_t align; - /** - * Virtual address for accessing the buffer data. Only valid while - * mapped. - */ -#ifdef __cplusplus - void *virt; -#else - void *virtual; -#endif - /** Buffer manager context associated with this buffer object */ struct brw_bufmgr *bufmgr; @@ -182,10 +172,9 @@ void brw_bo_unreference(struct brw_bo *bo); * Maps the buffer into userspace. * * This function will block waiting for any existing execution on the - * buffer to complete, first. The resulting mapping is available at - * buf->virtual. + * buffer to complete, first. The resulting mapping is returned. */ -int brw_bo_map(struct brw_context *brw, struct brw_bo *bo, int write_enable); +MUST_CHECK void *brw_bo_map(struct brw_context *brw, struct brw_bo *bo, int write_enable); /** * Reduces the refcount on the userspace mapping of the buffer @@ -258,8 +247,8 @@ struct brw_bo *brw_bo_gem_create_from_name(struct brw_bufmgr *bufmgr, const char *name, unsigned int handle); void brw_bufmgr_enable_reuse(struct brw_bufmgr *bufmgr); -int brw_bo_map_unsynchronized(struct brw_context *brw, struct brw_bo *bo); -int brw_bo_map_gtt(struct brw_context *brw, struct brw_bo *bo); +MUST_CHECK void *brw_bo_map_unsynchronized(struct brw_context *brw, struct brw_bo *bo); +MUST_CHECK void *brw_bo_map_gtt(struct brw_context *brw, struct brw_bo *bo); int brw_bo_wait(struct brw_bo *bo, int64_t timeout_ns); |