diff options
author | Bas Nieuwenhuizen <[email protected]> | 2016-12-08 23:06:44 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2016-12-09 08:53:05 +0100 |
commit | 53e1c970efec039047527cd06aafd09ecb86babe (patch) | |
tree | 95bcbaf81f26f64c831315d06cb60efc5bb633e3 /src/amd/vulkan/radv_private.h | |
parent | 4ae84efbc5c6f3cad830c71b7569a2659e43fb29 (diff) |
radv: Use enum for memory types.
Inspired by patches from Eric Engestrom.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Cc: Eric Engestrom <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r-- | src/amd/vulkan/radv_private.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index f2b6bf45d97..3d4b111d25a 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -92,6 +92,14 @@ enum radv_mem_heap { RADV_MEM_HEAP_COUNT }; +enum radv_mem_type { + RADV_MEM_TYPE_VRAM, + RADV_MEM_TYPE_GTT_WRITE_COMBINE, + RADV_MEM_TYPE_VRAM_CPU_ACCESS, + RADV_MEM_TYPE_GTT_CACHED, + RADV_MEM_TYPE_COUNT +}; + #define radv_noreturn __attribute__((__noreturn__)) #define radv_printflike(a, b) __attribute__((__format__(__printf__, a, b))) |