Lines Matching refs:heap
752 /* The number of all possible heap descriptions using the bits above. */
755 static inline enum radeon_bo_domain radeon_domain_from_heap(int heap)
757 assert(heap >= 0);
759 if (heap & RADEON_HEAP_BIT_VRAM)
765 static inline unsigned radeon_flags_from_heap(int heap)
767 assert(heap >= 0);
771 if (heap & RADEON_HEAP_BIT_READ_ONLY)
773 if (heap & RADEON_HEAP_BIT_32BIT)
775 if (heap & RADEON_HEAP_BIT_ENCRYPTED)
778 if (heap & RADEON_HEAP_BIT_VRAM) {
780 if (heap & RADEON_HEAP_BIT_NO_CPU_ACCESS)
782 if (heap & RADEON_HEAP_BIT_MALL_NOALLOC)
786 if (heap & RADEON_HEAP_BIT_WC)
788 if (heap & RADEON_HEAP_BIT_GL2_BYPASS)
834 /* Return the heap index for winsys allocators, or -1 on failure. */
849 int heap = 0;
852 heap |= RADEON_HEAP_BIT_READ_ONLY;
854 heap |= RADEON_HEAP_BIT_32BIT;
856 heap |= RADEON_HEAP_BIT_ENCRYPTED;
860 heap |= RADEON_HEAP_BIT_VRAM;
862 heap |= RADEON_HEAP_BIT_NO_CPU_ACCESS;
864 heap |= RADEON_HEAP_BIT_MALL_NOALLOC;
870 heap |= RADEON_HEAP_BIT_WC;
872 heap |= RADEON_HEAP_BIT_GL2_BYPASS;
879 assert(heap < RADEON_NUM_HEAPS);
880 return heap;