diff options
author | Tapani Pälli <[email protected]> | 2017-08-29 08:44:54 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2017-09-12 09:42:11 +0300 |
commit | a7ebb217449b1a4472d0e4232774bcbe69839e82 (patch) | |
tree | f4e61ccb6e20f926610262f66c464ffa0a3cc5e4 | |
parent | d083bc1c4b162ae23495fd9236d5fba27c04075b (diff) |
anv: move brw_process_intel_debug_variable to happen early
Currently anv_perf_warn call in anv_compute_heap_size does not ever
report a perf warning. Move debug variable read as the first thing
in case there will be other perf_warn calls added.
Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r-- | src/intel/vulkan/anv_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 32a6e99fa26..be2455166e3 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -268,6 +268,8 @@ anv_physical_device_init(struct anv_physical_device *device, VkResult result; int fd; + brw_process_intel_debug_variable(); + fd = open(path, O_RDWR | O_CLOEXEC); if (fd < 0) return vk_error(VK_ERROR_INCOMPATIBLE_DRIVER); @@ -380,8 +382,6 @@ anv_physical_device_init(struct anv_physical_device *device, device->info.max_cs_threads = max_cs_threads; } - brw_process_intel_debug_variable(); - device->compiler = brw_compiler_create(NULL, &device->info); if (device->compiler == NULL) { result = vk_error(VK_ERROR_OUT_OF_HOST_MEMORY); |