diff options
author | Chia-I Wu <[email protected]> | 2014-03-08 17:22:45 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2014-03-10 16:42:42 +0800 |
commit | 76713ed5d64028a434c15f4eb6572b01e5acacca (patch) | |
tree | 87fb7dbe2b98295e76093b717334a802bd7599e2 /src/gallium/winsys | |
parent | 790c32ec75c1310a03aecc797fd2a2f703cda66a (diff) |
ilo: remove intel_bo_get_size()
Commit bfa8d21759c5f2b5b0885c696842167bd4c64fee uses it to work around a
hardware limitation. But there are other ways to do it without the need for
intel_bo_get_size().
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r-- | src/gallium/winsys/intel/drm/intel_drm_winsys.c | 6 | ||||
-rw-r--r-- | src/gallium/winsys/intel/intel_winsys.h | 7 |
2 files changed, 0 insertions, 13 deletions
diff --git a/src/gallium/winsys/intel/drm/intel_drm_winsys.c b/src/gallium/winsys/intel/drm/intel_drm_winsys.c index e68fd45ec62..12ae4aae8e2 100644 --- a/src/gallium/winsys/intel/drm/intel_drm_winsys.c +++ b/src/gallium/winsys/intel/drm/intel_drm_winsys.c @@ -405,12 +405,6 @@ intel_bo_unreference(struct intel_bo *bo) drm_intel_bo_unreference(gem_bo(bo)); } -unsigned long -intel_bo_get_size(const struct intel_bo *bo) -{ - return gem_bo(bo)->size; -} - void * intel_bo_map(struct intel_bo *bo, bool write_enable) { diff --git a/src/gallium/winsys/intel/intel_winsys.h b/src/gallium/winsys/intel/intel_winsys.h index d7104383f30..ccc4620275d 100644 --- a/src/gallium/winsys/intel/intel_winsys.h +++ b/src/gallium/winsys/intel/intel_winsys.h @@ -198,13 +198,6 @@ void intel_bo_unreference(struct intel_bo *bo); /** - * Return the real size of \p bo. It may be larger than the size specified - * in allocation due to alignment and padding requirements. - */ -unsigned long -intel_bo_get_size(const struct intel_bo *bo); - -/** * Map \p bo for CPU access. Recursive mapping is allowed. * * map() maps the backing store into CPU address space, cached. It will block |