mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +00:00
lib: s/drmtest_dumb_aub/igt_aub_dump_enabled/
This is prep work to extract a new igt aux library with all kinds of random stuff. Also give it a bit a more suitable name to indicate that this is just a flag and doesn't do the aub dumping itself. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
95e89f0ede
commit
018f8c3c45
@ -329,7 +329,7 @@ bool igt_env_set(const char *env_var, bool default_value)
|
|||||||
return atoi(val) != 0;
|
return atoi(val) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool drmtest_dump_aub(void)
|
bool igt_aub_dump_enabled(void)
|
||||||
{
|
{
|
||||||
static int dump_aub = -1;
|
static int dump_aub = -1;
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ void igt_permute_array(void *array, unsigned size,
|
|||||||
void igt_progress(const char *header, uint64_t i, uint64_t total);
|
void igt_progress(const char *header, uint64_t i, uint64_t total);
|
||||||
bool igt_env_set(const char *env_var, bool default_value);
|
bool igt_env_set(const char *env_var, bool default_value);
|
||||||
|
|
||||||
bool drmtest_dump_aub(void);
|
bool igt_aub_dump_enabled(void);
|
||||||
|
|
||||||
/* helpers based upon the libdrm buffer manager */
|
/* helpers based upon the libdrm buffer manager */
|
||||||
void igt_init_aperture_trashers(drm_intel_bufmgr *bufmgr);
|
void igt_init_aperture_trashers(drm_intel_bufmgr *bufmgr);
|
||||||
|
@ -120,7 +120,7 @@ static void annotation_add_state(struct annotations_context *ctx,
|
|||||||
static void annotation_flush(struct annotations_context *ctx,
|
static void annotation_flush(struct annotations_context *ctx,
|
||||||
struct intel_batchbuffer *batch)
|
struct intel_batchbuffer *batch)
|
||||||
{
|
{
|
||||||
if (!drmtest_dump_aub())
|
if (!igt_aub_dump_enabled())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
drm_intel_bufmgr_gem_set_aub_annotations(batch->bo,
|
drm_intel_bufmgr_gem_set_aub_annotations(batch->bo,
|
||||||
|
@ -127,7 +127,7 @@ int main(int argc, char **argv)
|
|||||||
igt_render_copyfunc_t render_copy = NULL;
|
igt_render_copyfunc_t render_copy = NULL;
|
||||||
int opt;
|
int opt;
|
||||||
int opt_dump_png = false;
|
int opt_dump_png = false;
|
||||||
int opt_dump_aub = drmtest_dump_aub();
|
int opt_dump_aub = igt_aub_dump_enabled();
|
||||||
|
|
||||||
igt_simple_init();
|
igt_simple_init();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user