diff options
author | Melissa Wen <mwen@igalia.com> | 2021-09-30 17:17:39 +0100 |
---|---|---|
committer | Melissa Wen <melissa.srw@gmail.com> | 2021-10-04 10:08:16 +0100 |
commit | 07c2a41658c454c8f148c7fd6b0cbcecb78e9829 (patch) | |
tree | bab79bc1ecf8aa332b58228871cfcb2d0f5cc07c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 223583dd00a70ae57031c6004948ea177a4745b5 (diff) |
drm/v3d: alloc and init job in one shot
Move job memory allocation to v3d_job_init function. This aim to facilitate
error handling in job initialization, since cleanup steps are similar for
all (struct v3d_job)-based types of job involved in a command submission.
To generalize v3d_job_init(), this change takes into account that all job
structs have the first element a struct v3d_job (bin, render, tfu, csd) or
it is a v3d_job itself (clean_job) for pointer casting.
v3:
- explicitly init job as NULL (Iago)
- fix pm failure handling on v3_job_init (Iago)
Suggested-by: Iago Toral Quiroga <itoral@igalia.com>
Signed-off-by: Melissa Wen <mwen@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/4d12e07bd334d2cddb51cabd359e99edde595619.1633016479.git.mwen@igalia.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions