pipe_mutex bo_handles_mutex;
pipe_mutex bo_va_mutex;
- /* is virtual address supported */
- bool va;
uint64_t va_offset;
struct list_head va_holes;
if (bo->ptr)
os_munmap(bo->ptr, bo->base.size);
- if (mgr->va) {
+ if (mgr->rws->info.r600_virtual_address) {
if (bo->rws->va_unmap_working) {
struct drm_radeon_gem_va va;
bo->initial_domain = rdesc->initial_domains;
pipe_mutex_init(bo->map_mutex);
- if (mgr->va) {
+ if (mgr->rws->info.r600_virtual_address) {
struct drm_radeon_gem_va va;
bo->va = radeon_bomgr_find_va(mgr, size, desc->alignment);
pipe_mutex_init(mgr->bo_handles_mutex);
pipe_mutex_init(mgr->bo_va_mutex);
- mgr->va = rws->info.r600_virtual_address;
mgr->va_offset = rws->va_start;
list_inithead(&mgr->va_holes);
pipe_mutex_unlock(mgr->bo_handles_mutex);
- if (mgr->va) {
+ if (mgr->rws->info.r600_virtual_address) {
struct drm_radeon_gem_va va;
bo->va = radeon_bomgr_find_va(mgr, bo->base.size, 1 << 20);
if (stride)
*stride = whandle->stride;
- if (mgr->va && !bo->va) {
+ if (mgr->rws->info.r600_virtual_address && !bo->va) {
struct drm_radeon_gem_va va;
bo->va = radeon_bomgr_find_va(mgr, bo->base.size, 1 << 20);