[Mesa-dev] [PATCH] radeon: remove unnecessary checks

Jakob Sinclair sinclair.jakob at openmailbox.org
Tue Jun 14 20:44:50 UTC 2016


On 2016-06-14 20:39, Jan Vesely wrote:
> I really disagree here. The conditions check whether swizzle is between
> X and W (as in, only X,Y,Z,W are allowed). The fact that X maps to 0 is
> irrelevant. removing the checks impairs readability of the code because
> the lower bound is now inferred (by being 0) rather than explicit.
> 
> the same comment applies to your v2.
> 
> Jan

Thanks for the input. Now when I think about it again this is probably a 
bad change.
Didn't think about the lower bound. So this patch should probably not be 
pushed.

-- 
Mvh Jakob Sinclair


More information about the mesa-dev mailing list