From: Daniel Vetter Subject: Re: [PATCH 0/5] clean up radeon_asic.h v2 Date: Fri, 12 Mar 2010 10:48:33 +0100 Message-ID: <20100312094833.GA3818@viiv.ffwll.ch> References: <1268342358-7532-1-git-send-email-daniel.vetter@ffwll.ch> <20100312092556.GA2686@barney.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20100312092556.GA2686@barney.localdomain> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.sourceforge.net To: Jerome Glisse Cc: Daniel Vetter , dri-devel@lists.sourceforge.net List-Id: dri-devel@lists.freedesktop.org On Fri, Mar 12, 2010 at 10:25:56AM +0100, Jerome Glisse wrote: > I would merge patch 1 & 2 into a single patch, I've split this up to make patch-reading easier. And it's fully bisectable. > ... also i think you > include radeon_asic.h at top of radeon.h so everyfile would also > include radeon_asic.h that would be simplier than adding include > to file and reduce the likelyhood to forget doing so in the future. > (you might need to add forward declaration like struct radeon; at > top of radeon_asic.h no biggy thought). I disagree. It's not quite there yet, but when all the asic specific stuff is gathered in radeon_asic.h (like I've done for r100 in my last patch), radeon_asic.h is the private header for asic stuff. And radeon.h is the public interface for radeon_asic. Then adding #include "radeon_asic.h" in random places would serve as a warning sign that there's likely a layering violation ahead. After all, generic code should not muck around in the asic private stuff. Unconditionally including radeon_asic.h therefore runs counter to the bigger idea behind my patches. Cheers, Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --