On 11/18/25 17:56, Timur Kristóf wrote:
> 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
> 
> Signed-off-by: Timur Kristóf <[email protected]>

Reviewed-by: Christian König <[email protected]>

> ---
>  include/uapi/drm/amdgpu_drm.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h
> index 406a42be429b..f43592997b49 100644
> --- a/include/uapi/drm/amdgpu_drm.h
> +++ b/include/uapi/drm/amdgpu_drm.h
> @@ -883,7 +883,7 @@ struct drm_amdgpu_gem_list_handles_entry {
>  #define AMDGPU_VM_PAGE_WRITEABLE     (1 << 2)
>  /* executable mapping, new for VI */
>  #define AMDGPU_VM_PAGE_EXECUTABLE    (1 << 3)
> -/* partially resident texture */
> +/* unmapped page of partially resident textures */
>  #define AMDGPU_VM_PAGE_PRT           (1 << 4)
>  /* MTYPE flags use bit 5 to 8 */
>  #define AMDGPU_VM_MTYPE_MASK         (0xf << 5)

Reply via email to