From: Marek Olšák Date: Sat, 12 Feb 2011 18:21:35 +0000 (+0100) Subject: drm/radeon/kms: optimize CS state checking for r100->r500 X-Git-Tag: v2.6.38-rc5~2^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40b4a7599d5555b408e594f4c8dae8015ccaae8f;p=pandora-kernel.git drm/radeon/kms: optimize CS state checking for r100->r500 The colorbuffer, zbuffer, and texture states are checked only once when they get changed. This improves performance in the apps which emit lots of draw packets and few state changes. This drops performance in glxgears by a 1% or so, but glxgears is not a benchmark we care about. The time spent in the kernel when running Torcs dropped from 33% to 23% and the frame rate is higher, which is a good thing. r600 might need something like this as well. Signed-off-by: Marek Olšák Signed-off-by: Dave Airlie --- Reading git-diff-tree failed