r600: add ARB_texture_non_power_of_two support.
authorDave Airlie <airlied@redhat.com>
Wed, 25 Nov 2009 05:45:31 +0000 (15:45 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 25 Nov 2009 05:45:31 +0000 (15:45 +1000)
commitce56a867f71d0a74172a00869a3c5cb1862f4b04
treea517ca7fae12d43cf11ef596d470cc4dde785b6d
parent11dce740305ea3f45966a9e9f72ba94b4eae6d40
r600: add ARB_texture_non_power_of_two support.

This makes the miptree rounds up to the near POT for each level for
all radeons, however since mipmaps aren't support with NPOT on previous
radeons this calculation shouldn't cause any problems. If it does
we can just make it r600 only.

I tested a few mipmap demos on r500 and they all seem to work.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/drivers/dri/r600/r600_context.c
src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c