mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 23:40:10 +01:00
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 <tapani.palli@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
d083bc1c4b
commit
a7ebb21744
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue