Op 30-05-16 om 11:18 schreef Laurent Pinchart: > Hi Daniel, > > Thank you for the patch. > > This looks good to me as the resulting code is mostly similar. However, the > for_each_*_in_state macros end with an for_each_if() that tests if the > object's state is NULL, which isn't present in this code. I'm wondering > whether that was an oversight on my side possibly leading to a crash when > dereferencing a NULL state, or an unneeded check in the macros. Can > atomic_state->*_states[i] be NULL if atomic_state->*[i] is not NULL ? Not in any normal case. _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
- [Intel-gfx] [PATCH 09/26] drm: Consolidate plane arrays ... Daniel Vetter
- [Intel-gfx] [PATCH 21/26] drm/atomic-helper: nonblocking... Daniel Vetter
- [Intel-gfx] [PATCH] drm/atomic-helper: nonblocking ... Daniel Vetter
- Re: [Intel-gfx] [PATCH] drm/atomic-helper: nonb... Maarten Lankhorst
- Re: [Intel-gfx] [PATCH] drm/atomic-helper: ... Daniel Vetter
- [Intel-gfx] [PATCH 02/26] drm/i915: Use drm_atomic_get_e... Daniel Vetter
- Re: [Intel-gfx] [PATCH 02/26] drm/i915: Use drm_ato... Maarten Lankhorst
- [Intel-gfx] [PATCH 05/26] drm/vc4: Use for_each_plane_in... Daniel Vetter
- [Intel-gfx] [PATCH 04/26] drm/rcar-du: Use for_each_*_in... Daniel Vetter
- Re: [Intel-gfx] [PATCH 04/26] drm/rcar-du: Use for_... Laurent Pinchart
- Re: [Intel-gfx] [PATCH 04/26] drm/rcar-du: Use ... Maarten Lankhorst
- Re: [Intel-gfx] [PATCH 04/26] drm/rcar-du: ... Daniel Vetter
- Re: [Intel-gfx] [PATCH 04/26] drm/rcar-... Laurent Pinchart
- Re: [Intel-gfx] [PATCH 04/26] drm/... Daniel Vetter
- Re: [Intel-gfx] [PATCH 04/26] ... Laurent Pinchart
- Re: [Intel-gfx] [PATCH 04/26] ... Daniel Vetter
- Re: [Intel-gfx] [PATCH 04/26] ... Laurent Pinchart
- [Intel-gfx] [PATCH 11/26] drm/fence: add fence to drm_pe... Daniel Vetter
- [Intel-gfx] [PATCH 06/26] drm/atomic: Add __drm_atomic_g... Daniel Vetter
- Re: [Intel-gfx] [PATCH 06/26] drm/atomic: Add __drm... Maarten Lankhorst
- Re: [Intel-gfx] [PATCH 06/26] drm/atomic: Add _... Daniel Vetter