Re: [Mesa-dev] r600g winsys backend rework

2011-08-10 Thread Will Dyson
s/radeon. Seems to work well on my rv730, with every game I can throw at it. -- Will Dyson ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/2] _meta_GenerateMipmap: Set MaxLevel before allocating level

2010-05-30 Thread Will Dyson
K in this regard. I had hoped to find time to look into it more deeply before now. I haven't forgotten, and will keep working on it. -- Will Dyson ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/2] _meta_GenerateMipmap: Set MaxLevel before allocating level

2010-05-28 Thread Will Dyson
nd what's going on here.  The dstLevel should already > be <= the texture max level.  See the loop at line 2376.  If you step into > the new _mesa_TexParameteri() call with gdb, are you seeing dstLevel > > texObj->MaxLevel? Yes, I am. After the first time

[Mesa-dev] [PATCH 2/2] Revert "Fix image_matches_texture_obj() MaxLevel check"

2010-05-28 Thread Will Dyson
This reverts commit a9ee95651131e27d5acf3d10909b5b7e5c8d3e92. It was based on a failure to understand how the driver allocates memory, and causes a regression with Celestia. Signed-off-by: Will Dyson --- src/mesa/drivers/dri/radeon/radeon_texture.c | 11 --- 1 files changed, 4

[Mesa-dev] [PATCH 1/2] _meta_GenerateMipmap: Set MaxLevel before allocating level

2010-05-28 Thread Will Dyson
The radeon driver will fail to allocate miptree space for a new level that is outside of BaseLevel..MaxLevel. Then it fails later, trying to migrate the level to a miptree. Set MaxLevel to dstLevel before allocating the level, and avoid triggering the problem. Signed-off-by: Will Dyson --- src

[Mesa-dev] Fix regression after radeon GenerateMipmap changes

2010-05-28 Thread Will Dyson
My change to image_matches_texture_obj() caused a regression when using texImage with level > MaxLevel and pixels != null. Revert it, as the orignal check was correct. Instead, change _mesa_meta_GenerateMipmap() to temporarily raise MaxLevel when calling texImage. This allows radeon to correctly al

[Mesa-dev] [PATCH 3/3] Enable hardware mipmap generation for radeon.

2010-05-24 Thread Will Dyson
Use _mesa_meta_GenerateMipmap. It is Fast Enough(tm). --- src/mesa/drivers/dri/radeon/radeon_texture.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/radeon/radeon_texture.c b/src/mesa/drivers/dri/radeon/radeon_texture.c index 5cb33a4..bcac

[Mesa-dev] [PATCH 2/3] Fix image_matches_texture_obj() MaxLevel check

2010-05-24 Thread Will Dyson
When generating or uploading a new (higher) mipmap level for an image, we can need to allocate a miptree for a level greater than texObj->MaxLevel. --- src/mesa/drivers/dri/radeon/radeon_texture.c | 11 +++ 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/d

[Mesa-dev] [PATCH 1/3] Fallback to software render if there is no miptree for an image

2010-05-24 Thread Will Dyson
This can happen when checking if a software fallback for a higher level operation (such as GenerateMipmap) is needed. --- src/mesa/drivers/dri/radeon/radeon_fbo.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/radeon/radeon_fbo.c b/src/mesa/dr

[Mesa-dev] Enable HW GenerateMipmap for radeon v2

2010-05-24 Thread Will Dyson
Wire up _mesa_meta_GenerateMipmap() for radeon. This greatly improves the playability of some games, such as FlightGear and the recently GPL'd game Lugaru. FlightGear still generates many fallbacks due to Alpha-only textures, but only at startup time. V2: Address comments from Maciej Cencora . Fi

Re: [Mesa-dev] Enable HW GenerateMipmap for radeon

2010-05-23 Thread Will Dyson
2010/5/23 Mathias Fröhlich : > > Hi, > > On Tuesday 18 May 2010 21:09:56 Will Dyson wrote: >> Wire up _mesa_meta_GenerateMipmap() for radeon. This greatly improves the >> playability of some games, such as FlightGear and the recently GPL'd game >> Lugaru. >

[Mesa-dev] [PATCH 3/3] Enable hardware mipmap generation for radeon.

2010-05-18 Thread Will Dyson
Use _mesa_meta_GenerateMipmap. It is Fast Enough(tm). --- src/mesa/drivers/dri/radeon/radeon_texture.c | 15 ++- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/radeon/radeon_texture.c b/src/mesa/drivers/dri/radeon/radeon_texture.c index 6ceff88.

[Mesa-dev] [PATCH 1/3] Fallback to software render if there is no miptree for an image

2010-05-18 Thread Will Dyson
This can happen when checking if a software fallback for a higher level operation (such as GenerateMipmap) is needed. --- src/mesa/drivers/dri/radeon/radeon_fbo.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/radeon/radeon_fbo.c b/src/mesa/dr

[Mesa-dev] [PATCH 2/3] Remove image_matches_texture_obj() MaxLevel check

2010-05-18 Thread Will Dyson
When generating or uploading a new (higher) mipmap level for an image, we can need to allocate a miptree for a level greater than texObj->MaxLevel. --- src/mesa/drivers/dri/radeon/radeon_texture.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/r

[Mesa-dev] Enable HW GenerateMipmap for radeon

2010-05-18 Thread Will Dyson
Wire up _mesa_meta_GenerateMipmap() for radeon. This greatly improves the playability of some games, such as FlightGear and the recently GPL'd game Lugaru. FlightGear still generates many fallbacks due to Alpha-only textures, but only at startup time. This has only been tested on r600. r300, r