History

drm/amdgpu: add AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS flag v3

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.

Christian König committed 10 years ago

Commit 03f48dd1 parent cfa325513 files · +53 −18Browse files

Showing the changes to include/uapi (1 of 13 files). Show all

Unified · Split

include/uapi/drm/amdgpu_drm.h+2−0
@@ -81,6 +81,8 @@ extern "C" { · 80 unmodified lines
81#define AMDGPU_GEM_CREATE_VRAM_CLEARED (1 << 3)81#define AMDGPU_GEM_CREATE_VRAM_CLEARED (1 << 3)
82/* Flag that create shadow bo(GTT) while allocating vram bo */82/* Flag that create shadow bo(GTT) while allocating vram bo */
83#define AMDGPU_GEM_CREATE_SHADOW (1 << 4)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
85struct drm_amdgpu_gem_create_in {87struct drm_amdgpu_gem_create_in {
86 /** the requested memory size */88 /** the requested memory size */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t