]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon/kms: fix cs parser tex bit 11 check
authorMathias Fröhlich <Mathias.Froehlich@web.de>
Mon, 19 Oct 2009 16:50:41 +0000 (12:50 -0400)
committerDave Airlie <airlied@redhat.com>
Mon, 26 Oct 2009 03:28:19 +0000 (13:28 +1000)
commit90e448fa839b489c5490bd9fa31e03b86b3e0b40
treeecc62b9bf5f3563a0fe30227e04f3226e7477059
parent20d6be4a66d1f9841c7a0aea4740cc55026d7fd2
drm/radeon/kms: fix cs parser tex bit 11 check

The problem boils down to the order when the bit11
of the texture size is or'ed to the original width.
In the end each mipmap level has the same width or
height because of that 11 bit is ored to the scaled
down lod with and thus blows up the size again to the
full size or more due to the power of two rounding
afterwards.

The attached patch changes this order so that the
texture sizes are computed correct. Also the on error
the yet missing inputs to the size computation are
printed which helped me to find out where it really breaks.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r100.c