diff options
author | Dave Airlie <[email protected]> | 2017-11-06 04:05:59 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-11-06 21:45:59 +0000 |
commit | 25660499b62a60f99ad72807fcc37f9fb622a2ea (patch) | |
tree | 7ccb3da5223cf01097441586fa06664d1b95c6ad /src/amd/vulkan/radv_radeon_winsys.h | |
parent | 31b5da7958a8d7635d39ec160723bf6950443b32 (diff) |
radv: wrap cs_add_buffer in an inline. (v2)
The next patch will try and avoid calling the indirect function.
v2: add a missing conversion.
Reviewed-by: Samuel Pitoiset <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_radeon_winsys.h')
-rw-r--r-- | src/amd/vulkan/radv_radeon_winsys.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_radeon_winsys.h b/src/amd/vulkan/radv_radeon_winsys.h index 395c8499b3d..bab19a6233d 100644 --- a/src/amd/vulkan/radv_radeon_winsys.h +++ b/src/amd/vulkan/radv_radeon_winsys.h @@ -279,4 +279,12 @@ static inline uint64_t radv_buffer_get_va(struct radeon_winsys_bo *bo) return bo->va; } +static inline void radv_cs_add_buffer(struct radeon_winsys *ws, + struct radeon_winsys_cs *cs, + struct radeon_winsys_bo *bo, + uint8_t priority) +{ + ws->cs_add_buffer(cs, bo, priority); +} + #endif /* RADV_RADEON_WINSYS_H */ |