[PATCH v3 3/4] xfree86/dri2: wrap drm bits with macros and change drm_magic type
Tiago Vignatti
tiago.vignatti at nokia.com
Wed Apr 21 05:34:48 PDT 2010
On Wed, Apr 21, 2010 at 11:53:04AM +0200, ext Mark Kettenis wrote:
>
> I'll reiterate an opinion stated here before. We should really try to
> *reduce* the number of #ifdefs in the code base, not introduce new
> ones.
In general you're right. We prefer clear code without these ugly #ifdefs all
around. But this is not always the case and, I agree, a good justification is
needed to introduce them.
In our case, we don't want to employ libdrm in the device because it's simply
not used. I don't care about the space that this library uses there, but I
care about the maintenance that I'd have to do. And that counts a lot.
Therefore, it's a tradeoff between this new feature causes too much trouble in
the code (and honestly it's not!) and maintenance that myself I'll have to
take.
Tiago
More information about the xorg-devel
mailing list