diff options
author | Maxime Ripard <[email protected]> | 2020-09-23 10:40:31 +0200 |
---|---|---|
committer | Maxime Ripard <[email protected]> | 2020-09-25 16:55:47 +0200 |
commit | 427c4a0680a28f87bb9c7bbfeac26b39ef8682ad (patch) | |
tree | 782db461232c3ea665e5b3f68c6d3a22c2b12338 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | de194561359788871f7d8f5f7797557a2a166b4e (diff) |
drm/vc4: crtc: Rework a bit the CRTC state code
The current CRTC state reset hook in vc4 allocates a vc4_crtc_state
structure as a drm_crtc_state, and relies on the fact that vc4_crtc_state
embeds drm_crtc_state as its first member, and therefore can be safely
cast.
However, this is pretty fragile especially since there's no check for this
in place, and we're going to need to access vc4_crtc_state member at reset
so this looks like a good occasion to make it more robust.
Fixes: 6d6e50039187 ("drm/vc4: Allocate the right amount of space for boot-time CRTC state.")
Signed-off-by: Maxime Ripard <[email protected]>
Tested-by: Dave Stevenson <[email protected]>
Reviewed-by: Dave Stevenson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions