Lines Matching full:border
1008 * The dimensions are expected not to include the border.
1108 img->Border = 0;
1130 * \param border image border.
1135 * Note: width, height and depth include the border.
1141 GLint border, GLenum internalFormat,
1154 img->Border = border;
1159 img->Width2 = width - 2 * border; /* == 1 << img->WidthLog2; */
1179 img->Height2 = height; /* no border */
1200 img->Height2 = height - 2 * border; /* == 1 << img->HeightLog2; */
1210 img->Height2 = height - 2 * border; /* == 1 << img->HeightLog2; */
1212 img->Depth2 = depth; /* no border */
1217 img->Height2 = height - 2 * border; /* == 1 << img->HeightLog2; */
1219 img->Depth2 = depth - 2 * border; /* == 1 << img->DepthLog2; */
1273 * \param border as passed to glTexImage
1279 GLint width, GLint height, GLint depth, GLint border)
1293 if (width < 2 * border || width > 2 * border + maxSize)
1296 if (width > 0 && !_mesa_is_pow_two(width - 2 * border))
1306 if (width < 2 * border || width > 2 * border + maxSize)
1308 if (height < 2 * border || height > 2 * border + maxSize)
1311 if (width > 0 && !_mesa_is_pow_two(width - 2 * border))
1313 if (height > 0 && !_mesa_is_pow_two(height - 2 * border))
1323 if (width < 2 * border || width > 2 * border + maxSize)
1325 if (height < 2 * border || height > 2 * border + maxSize)
1327 if (depth < 2 * border || depth > 2 * border + maxSize)
1330 if (width > 0 && !_mesa_is_pow_two(width - 2 * border))
1332 if (height > 0 && !_mesa_is_pow_two(height - 2 * border))
1334 if (depth > 0 && !_mesa_is_pow_two(depth - 2 * border))
1354 if (width < 2 * border || width > 2 * border + maxSize)
1356 if (height < 2 * border || height > 2 * border + maxSize)
1359 if (width > 0 && !_mesa_is_pow_two(width - 2 * border))
1361 if (height > 0 && !_mesa_is_pow_two(height - 2 * border))
1371 if (width < 2 * border || width > 2 * border + maxSize)
1376 if (width > 0 && !_mesa_is_pow_two(width - 2 * border))
1386 if (width < 2 * border || width > 2 * border + maxSize)
1388 if (height < 2 * border || height > 2 * border + maxSize)
1393 if (width > 0 && !_mesa_is_pow_two(width - 2 * border))
1395 if (height > 0 && !_mesa_is_pow_two(height - 2 * border))
1728 * \param border image border given by the user.
1743 GLint depth, GLint border )
1771 /* Check border */
1772 if (border < 0 || border > 1 ||
1775 target == GL_PROXY_TEXTURE_RECTANGLE_NV) && border != 0)) {
1777 "glTexImage%dD(border=%d)", dimensions, border);
1825 depth, border);
1890 if (border != 0) {
1893 "glTexImage%dD(format=GL_YCBCR_MESA and border=%d)",
1894 dimensions, border);
1935 if (border != 0) {
1937 "glTexImage%dD(border!=0)", dimensions);
1972 GLsizei height, GLsizei depth, GLint border,
2070 if (border != 0) {
2071 reason = "border != 0";
2087 width, height, depth, border)) {
2224 if (xoffset < -((GLint)destTex->Border)) {
2229 if (xoffset + width > (GLint) (destTex->Width + destTex->Border)) {
2235 GLint yBorder = (target == GL_TEXTURE_1D_ARRAY) ? 0 : destTex->Border;
2248 GLint zBorder = (target == GL_TEXTURE_2D_ARRAY) ? 0 : destTex->Border;
2316 * \param border texture border.
2327 GLint width, GLint height, GLint border )
2367 /* Check border */
2368 if (border < 0 || border > 1 ||
2371 target == GL_PROXY_TEXTURE_RECTANGLE_NV) && border != 0)) {
2373 "glCopyTexImage%dD(border=%d)", dimensions, border);
2433 1, border);
2459 if (border != 0) {
2461 "glCopyTexImage%dD(border!=0)", dimensions);
2566 if (xoffset < -((GLint)teximage->Border)) {
2571 if (xoffset + width > (GLint) (teximage->Width + teximage->Border)) {
2577 GLint yBorder = (target == GL_TEXTURE_1D_ARRAY) ? 0 : teximage->Border;
2583 /* NOTE: we're adding the border here, not subtracting! */
2593 GLint zBorder = (target == GL_TEXTURE_2D_ARRAY) ? 0 : teximage->Border;
2866 * one-pixel texture border.
2892 unpackNew->SkipPixels++; /* skip the border */
2893 *width = *width - 2; /* reduce the width by two border pixels */
2895 /* The min height of a texture with a border is 3 */
2897 unpackNew->SkipRows++; /* skip the border */
2898 *height = *height - 2; /* reduce the height by two border pixels */
2902 unpackNew->SkipImages++; /* skip the border */
2903 *depth = *depth - 2; /* reduce the depth by two border pixels */
2920 GLint border, GLenum format, GLenum type,
2937 width, height, depth, border, pixels);
2944 width, height, depth, border,
2963 border, imageSize);
2967 format, type, width, height, depth, border);
3022 border, internalFormat, texFormat);
3038 /* Allow a hardware driver to just strip out the border, to provide
3042 if (border && ctx->Const.StripTextureBorder) {
3045 border = 0;
3073 border, internalFormat, texFormat);
3104 * Called from the API. Note that width includes the border.
3108 GLsizei width, GLint border, GLenum format,
3113 border, format, type, 0, pixels);
3119 GLsizei width, GLsizei height, GLint border,
3125 border, format, type, 0, pixels);
3131 * Note that width and height include the border.
3136 GLint border, GLenum format, GLenum type,
3142 border, format, type, 0, pixels);
3149 GLint border, GLenum format, GLenum type,
3153 depth, border, format, type, pixels);
3266 /* If we have a border, offset=-1 is legal. Bias by border width. */
3270 zoffset += texImage->Border;
3274 yoffset += texImage->Border;
3277 xoffset += texImage->Border;
3365 GLint x, GLint y, GLsizei width, GLsizei height, GLint border )
3378 x, y, width, height, border);
3384 width, height, border))
3389 if (border && ctx->Const.StripTextureBorder) {
3390 x += border;
3391 width -= border * 2;
3393 y += border;
3394 height -= border * 2;
3396 border = 0;
3420 border, internalFormat, texFormat);
3457 GLsizei width, GLint border )
3460 copyteximage(ctx, 1, target, level, internalFormat, x, y, width, 1, border);
3468 GLint border )
3472 x, y, width, height, border);
3513 /* If we have a border, offset=-1 is legal. Bias by border width. */
3517 zoffset += texImage->Border;
3521 yoffset += texImage->Border;
3524 xoffset += texImage->Border;
3736 GLint border, GLsizei imageSize,
3741 width, 1, 1, border, GL_NONE, GL_NONE, imageSize, data);
3748 GLsizei height, GLint border, GLsizei imageSize,
3753 width, height, 1, border, GL_NONE, GL_NONE, imageSize, data);
3760 GLsizei height, GLsizei depth, GLint border,
3765 width, height, depth, border, GL_NONE, GL_NONE, imageSize, data);