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

2018-04-12 Thread Juan A. Suarez Romero
On Thu, 2018-04-12 at 09:35 +0200, Iago Toral wrote: > On Wed, 2018-04-11 at 19:51 +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

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

2018-04-12 Thread Iago Toral
On Wed, 2018-04-11 at 19:51 +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 3/3] getteximage: assume texture image is empty for non defined levels

2018-04-11 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