i965: Make brw_bo_unmap a static inline.
With the broken debugging code gone, it doesn't do anything anymore. We could technically eliminate it, but I'd like to keep it around in case we want to add something there again someday. Otherwise we'd have to go all over the codebase adding unmap calls back again. Based on a patch by Chris Wilson. Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
c913241458
commit
bca92849b9
|
@ -762,12 +762,6 @@ brw_bo_map(struct brw_context *brw, struct brw_bo *bo, unsigned flags)
|
||||||
return brw_bo_map_gtt(brw, bo, flags);
|
return brw_bo_map_gtt(brw, bo, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
brw_bo_unmap(struct brw_bo *bo)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
brw_bo_subdata(struct brw_bo *bo, uint64_t offset,
|
brw_bo_subdata(struct brw_bo *bo, uint64_t offset,
|
||||||
uint64_t size, const void *data)
|
uint64_t size, const void *data)
|
||||||
|
|
|
@ -212,7 +212,7 @@ MUST_CHECK void *brw_bo_map(struct brw_context *brw, struct brw_bo *bo, unsigned
|
||||||
* Reduces the refcount on the userspace mapping of the buffer
|
* Reduces the refcount on the userspace mapping of the buffer
|
||||||
* object.
|
* object.
|
||||||
*/
|
*/
|
||||||
int brw_bo_unmap(struct brw_bo *bo);
|
static int brw_bo_unmap(struct brw_bo *bo) { return 0; }
|
||||||
|
|
||||||
/** Write data into an object. */
|
/** Write data into an object. */
|
||||||
int brw_bo_subdata(struct brw_bo *bo, uint64_t offset,
|
int brw_bo_subdata(struct brw_bo *bo, uint64_t offset,
|
||||||
|
|
Loading…
Reference in New Issue