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
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
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
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
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