13464ebd5Sriastradh/************************************************************************** 23464ebd5Sriastradh * 33464ebd5Sriastradh * Copyright 2010 VMware, Inc. 43464ebd5Sriastradh * All Rights Reserved. 53464ebd5Sriastradh * 63464ebd5Sriastradh * Permission is hereby granted, free of charge, to any person obtaining a 73464ebd5Sriastradh * copy of this software and associated documentation files (the 83464ebd5Sriastradh * "Software"), to deal in the Software without restriction, including 93464ebd5Sriastradh * without limitation the rights to use, copy, modify, merge, publish, 103464ebd5Sriastradh * distribute, sub license, and/or sell copies of the Software, and to 113464ebd5Sriastradh * permit persons to whom the Software is furnished to do so, subject to 123464ebd5Sriastradh * the following conditions: 133464ebd5Sriastradh * 143464ebd5Sriastradh * The above copyright notice and this permission notice (including the 153464ebd5Sriastradh * next paragraph) shall be included in all copies or substantial portions 163464ebd5Sriastradh * of the Software. 173464ebd5Sriastradh * 183464ebd5Sriastradh * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 193464ebd5Sriastradh * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 203464ebd5Sriastradh * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 213464ebd5Sriastradh * IN NO EVENT SHALL THE AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR 223464ebd5Sriastradh * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 233464ebd5Sriastradh * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 243464ebd5Sriastradh * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 253464ebd5Sriastradh * 263464ebd5Sriastradh **************************************************************************/ 273464ebd5Sriastradh 283464ebd5Sriastradh#ifndef SP_LIMITS_H 293464ebd5Sriastradh#define SP_LIMITS_H 303464ebd5Sriastradh 313464ebd5Sriastradh 32af69d88dSmrg#define SP_MAX_TEXTURE_SIZE (1 * 1024 * 1024 * 1024ULL) /* 1GB for now */ 333464ebd5Sriastradh#define SP_MAX_TEXTURE_2D_LEVELS 15 /* 16K x 16K */ 3401e04c3fSmrg#define SP_MAX_TEXTURE_3D_LEVELS 12 /* 2048 x 2048 x 2048 */ 35af69d88dSmrg#define SP_MAX_TEXTURE_CUBE_LEVELS 13 /* 4K x 4K */ 363464ebd5Sriastradh 373464ebd5Sriastradh 383464ebd5Sriastradh/** Max surface size */ 393464ebd5Sriastradh#define MAX_WIDTH (1 << (SP_MAX_TEXTURE_2D_LEVELS - 1)) 403464ebd5Sriastradh#define MAX_HEIGHT (1 << (SP_MAX_TEXTURE_2D_LEVELS - 1)) 413464ebd5Sriastradh 423464ebd5Sriastradh 433464ebd5Sriastradh#endif /* SP_LIMITS_H */ 44