projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
anv: fix uninitialized variable access
[mesa.git]
/
src
/
intel
/
vulkan
/
anv_private.h
diff --git
a/src/intel/vulkan/anv_private.h
b/src/intel/vulkan/anv_private.h
index 884396089ee831698d90ea8057173af1ba7a26ca..9500b41deadcc0afd39351d191a4afc7c4a86a5e 100644
(file)
--- a/
src/intel/vulkan/anv_private.h
+++ b/
src/intel/vulkan/anv_private.h
@@
-1036,8
+1036,11
@@
struct anv_memory_heap {
VkDeviceSize size;
VkMemoryHeapFlags flags;
VkDeviceSize size;
VkMemoryHeapFlags flags;
- /* Driver-internal book-keeping */
- VkDeviceSize used;
+ /** Driver-internal book-keeping.
+ *
+ * Align it to 64 bits to make atomic operations faster on 32 bit platforms.
+ */
+ VkDeviceSize used __attribute__ ((aligned (8)));
};
struct anv_physical_device {
};
struct anv_physical_device {
@@
-1250,7
+1253,8
@@
struct anv_pipeline_bind_map;
void anv_pipeline_cache_init(struct anv_pipeline_cache *cache,
struct anv_device *device,
void anv_pipeline_cache_init(struct anv_pipeline_cache *cache,
struct anv_device *device,
- bool cache_enabled);
+ bool cache_enabled,
+ bool external_sync);
void anv_pipeline_cache_finish(struct anv_pipeline_cache *cache);
struct anv_shader_bin *
void anv_pipeline_cache_finish(struct anv_pipeline_cache *cache);
struct anv_shader_bin *
@@
-4327,6
+4331,8
@@
anv_device_entrypoint_is_enabled(int index, uint32_t core_version,
const struct anv_instance_extension_table *instance,
const struct anv_device_extension_table *device);
const struct anv_instance_extension_table *instance,
const struct anv_device_extension_table *device);
+void *anv_resolve_device_entrypoint(const struct gen_device_info *devinfo,
+ uint32_t index);
void *anv_lookup_entrypoint(const struct gen_device_info *devinfo,
const char *name);
void *anv_lookup_entrypoint(const struct gen_device_info *devinfo,
const char *name);