-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 11/18/2011 03:55 PM, Kenneth Graunke wrote:
> On 11/18/2011 01:52 PM, Chad Versace wrote:
> [snip]
>> @@ -335,23 +338,18 @@ intel_miptree_get_image_offset(struct
>> intel_mipmap_tree *mt,
>> GLuint level, GLuint face, GL
On Fri, 18 Nov 2011 13:52:32 -0800, a...@anholt.net wrote:
> From: Chad Versace
>
> For all texture targets except GL_TEXTURE_CUBE_MAP, the 'nr_images' and
> 'depth' fields of intel_mipmap_level were identical. In the exceptional
> case, nr_images == 6 and depth == 1.
>
> It is simple to determ
On 11/18/2011 01:52 PM, Chad Versace wrote:
[snip]
> @@ -335,23 +338,18 @@ intel_miptree_get_image_offset(struct intel_mipmap_tree
> *mt,
> GLuint level, GLuint face, GLuint depth,
> GLuint *x, GLuint *y)
> {
> - switch (mt->target) {
>
From: Chad Versace
For all texture targets except GL_TEXTURE_CUBE_MAP, the 'nr_images' and
'depth' fields of intel_mipmap_level were identical. In the exceptional
case, nr_images == 6 and depth == 1.
It is simple to determine if a texture is a cube or not, so the presence
of two fields here was