i965: Raise const.MaxTextureLevels to 14 (8192)
Mesa now limits, by default, the max number of texture levels to 15 so we can now support the architectural maximum for gen4-6 of 14. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
b0dc2d0c3b
commit
f61d1deac7
|
@ -94,9 +94,9 @@ GLboolean brwCreateContext( int api,
|
||||||
ctx->Const.MaxVertexTextureImageUnits +
|
ctx->Const.MaxVertexTextureImageUnits +
|
||||||
ctx->Const.MaxTextureImageUnits;
|
ctx->Const.MaxTextureImageUnits;
|
||||||
|
|
||||||
/* Mesa limits textures to 4kx4k; it would be nice to fix that someday
|
ctx->Const.MaxTextureLevels = 14; /* 8192 */
|
||||||
*/
|
if (ctx->Const.MaxTextureLevels > MAX_TEXTURE_LEVELS)
|
||||||
ctx->Const.MaxTextureLevels = 13;
|
ctx->Const.MaxTextureLevels = MAX_TEXTURE_LEVELS;
|
||||||
ctx->Const.Max3DTextureLevels = 9;
|
ctx->Const.Max3DTextureLevels = 9;
|
||||||
ctx->Const.MaxCubeTextureLevels = 12;
|
ctx->Const.MaxCubeTextureLevels = 12;
|
||||||
ctx->Const.MaxTextureRectSize = (1<<12);
|
ctx->Const.MaxTextureRectSize = (1<<12);
|
||||||
|
|
Loading…
Reference in New Issue