Re: [Mesa-dev] [PATCH v2] getteximage: assume texture image is empty for non defined levels

2018-04-12 Thread Iago Toral
On Thu, 2018-04-12 at 17:59 +0200, Juan A. Suarez Romero wrote: > Current code is returning an INVALID_OPERATION when trying to use > getTextureImage() on a level that has not been explicitly defined. > > That is, we define a mipmapped Texture2D with 3 levels, and try to > use > GetTextureImage()

[Mesa-dev] [PATCH v2] getteximage: assume texture image is empty for non defined levels

2018-04-12 Thread Juan A. Suarez Romero
Current code is returning an INVALID_OPERATION when trying to use getTextureImage() on a level that has not been explicitly defined. That is, we define a mipmapped Texture2D with 3 levels, and try to use GetTextureImage() for the 4th levels, and INVALID_OPERATION is returned. Nevertheless, such c