[Mesa-dev] [PATCH] r600g, radeonsi: switch all occurences of array_size to util_max_layer

Michel Dänzer michel at daenzer.net
Sun Jul 27 23:49:44 PDT 2014


On 27.07.2014 03:16, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
> 
> This fixes 3D texture support in all these cases, because array_size is 1
> with 3D textures and depth0 actually contains the "array size".
> util_max_layer is universal and returns the last layer index for any texture
> target.
> 
> A lot of the cases below can't actually be hit with 3D textures, but let's
> be consistent.
> 
> This fixes a failure in:
>     piglit layered-rendering/clear-color-all-types 3d single_level
> for r600g and radeonsi, which was caused by an incorrect CMASK size
> calculation.
> 
> Cc: mesa-stable at lists.freedesktop.org

Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>


-- 
Earthling Michel Dänzer            |                  http://www.amd.com
Libre software enthusiast          |                Mesa and X developer


More information about the mesa-dev mailing list