History

drm/radeon: Add RADEON_GEM_CPU_ACCESS BO creation flag

This flag is a hint that userspace expects the BO to be accessed by the CPU. We can use that hint to prevent such BOs from ever being stored in the CPU inaccessible part of VRAM.

Michel Dänzer committed 12 years ago

Commit c8584031 parent fdcaa1d2 files · +11 −2Browse files

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

Unified · Split

include/uapi/drm/radeon_drm.h+2−0
@@ -801,6 +801,8 @@ struct drm_radeon_gem_info { · 800 unmodified lines
801801 #define RADEON_GEM_NO_BACKING_STORE (1 << 0)
802802 #define RADEON_GEM_GTT_UC (1 << 1)
803803 #define RADEON_GEM_GTT_WC (1 << 2)
804+/* BO is expected to be accessed by the CPU */
805+#define RADEON_GEM_CPU_ACCESS (1 << 3)
804806
805807 struct drm_radeon_gem_create {
806808 uint64_t 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