[PATCH] drm/radeon/kms: fix r100->r500 CS checker for compressed textures.

2009-12-06 Thread Dave Airlie
From: Dave Airlie This adds support for compressed textures to the r100->r500 CS checker, it lets me run openarena and the demos in mesa fine, If someone can check the size calcs for DXT1/35 the w//h changes that would be nice. Signed-off-by: Dave Airlie --- drivers/gpu/drm/radeon/r100.c

Re: [PATCH] drm/radeon/kms: fix r100->r500 CS checker for compressed textures.

2009-12-06 Thread Corbin Simpson
Currently making music; expect a Tested-By in a couple hours. Posting from a mobile, pardon my terseness. ~ C. On Dec 6, 2009 7:22 PM, "Dave Airlie" wrote: From: Dave Airlie This adds support for compressed textures to the r100->r500 CS checker, it lets me run openarena and the demos in mesa

Re: [PATCH] drm/radeon/kms: fix r100->r500 CS checker for compressed textures.

2009-12-07 Thread Maciej Cencora
The calculations are wrong. E.g. for image 16 x 16, format is DXT3 (block size = 16 bytes, block width = 4, block height = 4) the size is 256. Yours code would calculate it as 16 * (16 / 4) = 64. The proper way to calculate it is unsigned wblocks = (width + blockWidth - 1) / blockWidth; unsigne

[PATCH] drm/radeon/kms: fix r100->r500 CS checker for compressed textures. (v2)

2009-12-13 Thread Dave Airlie
From: Dave Airlie This adds support for compressed textures to the r100->r500 CS checker, it lets me run openarena and the demos in mesa fine. Thanks to Maciej Cencora for initial comments. Changes since v1: fix calculations with Maciej formulas Signed-off-by: Dave Airlie --- drivers/gpu/drm

Re: [PATCH] drm/radeon/kms: fix r100->r500 CS checker for compressed textures. (v2)

2009-12-14 Thread Maciej Cencora
Reviewed-by: Maciej Cencora Dnia poniedziaƂek, 14 grudnia 2009 o 03:26:31 Dave Airlie napisaƂ(a): > From: Dave Airlie > > This adds support for compressed textures to the r100->r500 CS > checker, it lets me run openarena and the demos in mesa fine. > > Thanks to Maciej Cencora for initial comm