Add a flag noting that a BO must be created using linear VRAM and set this flag on all in kernel users where appropriate. Hopefully I haven't missed anything. v2: add it in a few more places, fix CPU mapping. v3: rename to VRAM_CONTIGUOUS, fix typo in CS code.
Showing the changes to include/uapi (1 of 13 files). Show all
Unified · Split
| @@ -81,6 +81,8 @@ extern "C" { · 80 unmodified lines | ||
| 81 | 81 | #define AMDGPU_GEM_CREATE_VRAM_CLEARED (1 << 3) |
| 82 | 82 | /* Flag that create shadow bo(GTT) while allocating vram bo */ |
| 83 | 83 | #define AMDGPU_GEM_CREATE_SHADOW (1 << 4) |
| 84 | +/* Flag that allocating the BO should use linear VRAM */ | |
| 85 | +#define AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS (1 << 5) | |
| 84 | 86 | |
| 85 | 87 | struct drm_amdgpu_gem_create_in { |
| 86 | 88 | /** the requested memory size */ |