In the context of the amdgpu uAPI, the PRT flag is referring only to unmapped pages of a partially resident texture (aka. sparse resource), but not the full resource. Virtual addresses marked with this flag behave as follows: - Reads return zero - Writes are discarded
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -883,7 +883,7 @@ struct drm_amdgpu_gem_list_handles_entry { · 882 unmodified lines | |||
| 883 | #define AMDGPU_VM_PAGE_WRITEABLE (1 << 2) | 883 | #define AMDGPU_VM_PAGE_WRITEABLE (1 << 2) |
| 884 | /* executable mapping, new for VI */ | 884 | /* executable mapping, new for VI */ |
| 885 | #define AMDGPU_VM_PAGE_EXECUTABLE (1 << 3) | 885 | #define AMDGPU_VM_PAGE_EXECUTABLE (1 << 3) |
| 886 | /* partially resident texture */ | 886 | /* unmapped page of partially resident textures */ |
| 887 | #define AMDGPU_VM_PAGE_PRT (1 << 4) | 887 | #define AMDGPU_VM_PAGE_PRT (1 << 4) |
| 888 | /* MTYPE flags use bit 5 to 8 */ | 888 | /* MTYPE flags use bit 5 to 8 */ |
| 889 | #define AMDGPU_VM_MTYPE_MASK (0xf << 5) | 889 | #define AMDGPU_VM_MTYPE_MASK (0xf << 5) |