mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 15:00:10 +01:00
anv: do not parse genxml data without INTEL_DEBUG=bat
This significantly slows down the CTS runs.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 32ffd90002 ("anv: add support for INTEL_DEBUG=bat")
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
f80679c8e8
commit
93b93e5a9d
1 changed files with 13 additions and 10 deletions
|
|
@ -2167,16 +2167,18 @@ VkResult anv_CreateDevice(
|
|||
if (!device)
|
||||
return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);
|
||||
|
||||
const unsigned decode_flags =
|
||||
GEN_BATCH_DECODE_FULL |
|
||||
((INTEL_DEBUG & DEBUG_COLOR) ? GEN_BATCH_DECODE_IN_COLOR : 0) |
|
||||
GEN_BATCH_DECODE_OFFSETS |
|
||||
GEN_BATCH_DECODE_FLOATS;
|
||||
if (INTEL_DEBUG & DEBUG_BATCH) {
|
||||
const unsigned decode_flags =
|
||||
GEN_BATCH_DECODE_FULL |
|
||||
((INTEL_DEBUG & DEBUG_COLOR) ? GEN_BATCH_DECODE_IN_COLOR : 0) |
|
||||
GEN_BATCH_DECODE_OFFSETS |
|
||||
GEN_BATCH_DECODE_FLOATS;
|
||||
|
||||
gen_batch_decode_ctx_init(&device->decoder_ctx,
|
||||
&physical_device->info,
|
||||
stderr, decode_flags, NULL,
|
||||
decode_get_bo, NULL, device);
|
||||
gen_batch_decode_ctx_init(&device->decoder_ctx,
|
||||
&physical_device->info,
|
||||
stderr, decode_flags, NULL,
|
||||
decode_get_bo, NULL, device);
|
||||
}
|
||||
|
||||
device->_loader_data.loaderMagic = ICD_LOADER_MAGIC;
|
||||
device->instance = physical_device->instance;
|
||||
|
|
@ -2459,7 +2461,8 @@ void anv_DestroyDevice(
|
|||
|
||||
anv_gem_destroy_context(device, device->context_id);
|
||||
|
||||
gen_batch_decode_ctx_finish(&device->decoder_ctx);
|
||||
if (INTEL_DEBUG & DEBUG_BATCH)
|
||||
gen_batch_decode_ctx_finish(&device->decoder_ctx);
|
||||
|
||||
close(device->fd);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue