[PATCH 06/13] tests/exynos: add fimg2d event test

Emil Velikov emil.l.velikov at gmail.com
Fri Oct 30 11:49:36 PDT 2015


On 30 October 2015 at 14:28, Tobias Jakobi
<tjakobi at math.uni-bielefeld.de> wrote:

> OK, I see what you mean. However this shouldn't happen as long as the
> user properly zero initializes the event context structures, right?
>
It pains me to say it but in this day and age, not everyone zero
initializes their structs (be that via C99 initailizers, memset or
just {}).

> OK, going to do this then. In any case, can the user assume that the
> event structures only "grow", in the sense that new fields are added to it?
>
That is correct. Note that this approach is also used elsewhere - the
DRI driver <> loader model, also the drm ioctls structs are extended
in a similar way (minus the actual version field).

With the current knowledge in hand, perhaps we could have done things
differently... But that's another story :-)

Regards,
Emil


More information about the dri-devel mailing list