summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_private.h
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-05-24 11:02:18 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-05-27 17:18:33 -0700
commite023c104f738d030c21a519e805705961e4ccf46 (patch)
treed773c1ffee4cba36a83d6d156ee590d6702b83f9 /src/intel/vulkan/anv_private.h
parent9048dee32837d281fe7aee5fe34c438fa95ac9d2 (diff)
downloadexternal_mesa3d-e023c104f738d030c21a519e805705961e4ccf46.zip
external_mesa3d-e023c104f738d030c21a519e805705961e4ccf46.tar.gz
external_mesa3d-e023c104f738d030c21a519e805705961e4ccf46.tar.bz2
anv: strdup the device path into the physical device
This way we don't have to assume that the string coming in is a piece of constant data that exists forever.
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 b3774a8..7325f3f 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -542,7 +542,7 @@ struct anv_physical_device {
struct anv_instance * instance;
uint32_t chipset_id;
- const char * path;
+ char path[20];
const char * name;
const struct brw_device_info * info;
uint64_t aperture_size;