mesa/src/intel
Caio Marcelo de Oliveira Filho 1021abab07 intel/tools: Fix aub_file initialization in intel_dump_gpu
The `device` can be set earlier either by a command line or a by
intercepting an ioctl call to get the I915_PARAM_CHIPSET_ID done by
the application early.  In both cases `aub_file` and `devinfo` would
not be initialized.

Fix by splitting the conditions

- `device == 0`: use the FD to get both device and devinfo.
- Or `devinfo.gen == 0`: use `device` to initialize it.

And separatedly, initialize aub_file the first time it is needed.

Fixes: d594d2a052 ("intel/tools: use device info initializer")
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2019-08-12 19:18:26 -07:00
..
blorp intel/compiler: Fill a compiler statistics struct 2019-08-12 22:56:07 +00:00
common intel/gen_decoder: Decode SLICE_HASH_TABLE. 2019-08-12 16:19:08 -07:00
compiler intel/fs: Add SLM size to brw_cs_prog_data 2019-08-12 22:56:07 +00:00
dev intel: Get information about pixel pipes subslices. 2019-08-12 16:19:08 -07:00
genxml intel/genxml: Update 3D_MODE and add SLICE_HASH_TABLE. 2019-08-12 16:19:08 -07:00
isl i965/tiled_memcpy: avoid creating bswap32 if it exists as a macro (e.g. on FreeBSD) 2019-08-08 21:44:33 +01:00
perf intel/perf: use MAJOR_IN_SYSMACROS/MAJOR_IN_MKDEV 2019-08-08 21:44:33 +01:00
tools intel/tools: Fix aub_file initialization in intel_dump_gpu 2019-08-12 19:18:26 -07:00
vulkan anv/gen11: Emit SLICE_HASH_TABLE when pipes are unbalanced. 2019-08-12 16:19:08 -07:00
Android.blorp.mk
Android.common.mk
Android.compiler.mk
Android.dev.mk
Android.genxml.mk
Android.isl.mk
Android.mk
Android.perf.mk
Android.vulkan.mk anv: support GetSwapchainGrallocUsage2ANDROID for Android 2019-08-08 05:08:01 +00:00
Makefile.perf.am
Makefile.sources anv,nir: Move lower_input_attachments pass from ANV to NIR. 2019-07-08 14:02:50 +02:00
meson.build