[Mesa-dev] glTexImage3D GL_INVALID_VALUE on 512x128

Ian Romanick idr at freedesktop.org
Fri Nov 19 17:15:37 PST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/18/2010 07:12 AM, Török Edwin wrote:

> Well in this case it is 512x128x16, so 4MB only. Maybe the limit should
> be on total texture size, not on one dimension only.
> Will the GL spec allow you to do that? i.e. claim you support N
> for width but don't actually support N*N*N, just N*M*O, where M<=O<N;
> Actually you can claim you've run out of memory when trying to allocate N*N*N if it exceeds a maximum,
> and that wouldn't be too far from the truth, right?

Correct.  The implementation can (and should!) generate the error
GL_OUT_OF_MEMORY in this case.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkznITcACgkQX1gOwKyEAw9J0gCeIERjij5ebq17UH/ogWghccLN
9tEAn3iylSqnKea+giy4U518rL3Mn7ws
=5K4/
-----END PGP SIGNATURE-----


More information about the mesa-dev mailing list