aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_private.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-05-17 11:13:01 -0700
committerJason Ekstrand <[email protected]>2017-05-23 16:46:32 -0700
commit92325a7efc769c32e03031323e21700dc55171e4 (patch)
treef0b0af845a2599475ff9f36b7e3bce44287417a9 /src/intel/vulkan/anv_private.h
parentc1f4343807d1040bd7b5440aa2f5fccf5f12842d (diff)
anv: Determine the type of mapping based on type metadata
Before, we were just comparing the type index to 0. Now we actually look the type up in the table and check its properties to determine what kind of mapping we want to do. Reviewed-by: Nanley Chery <[email protected]> Cc: "17.1" <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r--src/intel/vulkan/anv_private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index 16e31d32952..90fee8fc26f 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -1002,7 +1002,7 @@ _anv_combine_address(struct anv_batch *batch, void *location,
struct anv_device_memory {
struct anv_bo * bo;
- uint32_t type_index;
+ VkMemoryType * type;
VkDeviceSize map_size;
void * map;
};