mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
increate MaxTextureLevels to 11 (bug 3130)
This commit is contained in:
parent
a20c0f293e
commit
b947377add
2 changed files with 9 additions and 2 deletions
|
|
@ -558,7 +558,7 @@ viaCreateContext(const __GLcontextModes *visual,
|
||||||
|
|
||||||
ctx = vmesa->glCtx;
|
ctx = vmesa->glCtx;
|
||||||
|
|
||||||
ctx->Const.MaxTextureLevels = 10;
|
ctx->Const.MaxTextureLevels = 11;
|
||||||
ctx->Const.MaxTextureUnits = 2;
|
ctx->Const.MaxTextureUnits = 2;
|
||||||
ctx->Const.MaxTextureImageUnits = ctx->Const.MaxTextureUnits;
|
ctx->Const.MaxTextureImageUnits = ctx->Const.MaxTextureUnits;
|
||||||
ctx->Const.MaxTextureCoordUnits = ctx->Const.MaxTextureUnits;
|
ctx->Const.MaxTextureCoordUnits = ctx->Const.MaxTextureUnits;
|
||||||
|
|
|
||||||
|
|
@ -513,6 +513,13 @@ static GLboolean viaSetTexImages(GLcontext *ctx,
|
||||||
|
|
||||||
numLevels = lastLevel - firstLevel + 1;
|
numLevels = lastLevel - firstLevel + 1;
|
||||||
|
|
||||||
|
/* The hardware only supports 10 mipmap levels. Ignore higher levels.
|
||||||
|
*/
|
||||||
|
if (numLevels > 10) {
|
||||||
|
lastLevel -= numLevels - 10;
|
||||||
|
numLevels = 10;
|
||||||
|
}
|
||||||
|
|
||||||
/* save these values, check if they effect the residency of the
|
/* save these values, check if they effect the residency of the
|
||||||
* texture:
|
* texture:
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue