We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0335594 commit 14e02edCopy full SHA for 14e02ed
drivers/gpu/drm/drm_gem_atomic_helper.c
@@ -310,8 +310,12 @@ EXPORT_SYMBOL(drm_gem_destroy_shadow_plane_state);
310
void __drm_gem_reset_shadow_plane(struct drm_plane *plane,
311
struct drm_shadow_plane_state *shadow_plane_state)
312
{
313
- __drm_atomic_helper_plane_reset(plane, &shadow_plane_state->base);
314
- drm_format_conv_state_init(&shadow_plane_state->fmtcnv_state);
+ if (shadow_plane_state) {
+ __drm_atomic_helper_plane_reset(plane, &shadow_plane_state->base);
315
+ drm_format_conv_state_init(&shadow_plane_state->fmtcnv_state);
316
+ } else {
317
+ __drm_atomic_helper_plane_reset(plane, NULL);
318
+ }
319
}
320
EXPORT_SYMBOL(__drm_gem_reset_shadow_plane);
321
0 commit comments