• Home
  • Raw
  • Download

Lines Matching +full:vmware +full:- +full:rules

2  * Mesa 3-D graphics library
4 * Copyright (C) 1999-2008 Brian Paul All Rights Reserved.
5 * Copyright (c) 2008-2009 VMware, Inc.
40 * ctx->Driver.TexSubImage = _mesa_store_texsubimage;
49 * images and sub-images.
146 * Store a 32-bit integer or float depth component texture image.
183 * Store a 24-bit integer depth component texture image.
213 * Store a 24-bit integer depth component texture image.
247 * Store a 16-bit integer depth component texture image.
288 assert(ctx->Extensions.MESA_ycbcr_texture); in _mesa_texstore_ycbcr()
303 if (srcPacking->SwapBytes ^ in _mesa_texstore_ycbcr()
378 /* get the 8-bit stencil values */ in _mesa_texstore_z24_s8()
383 ctx->_ImageTransferState); in _mesa_texstore_z24_s8()
463 /* get the 8-bit stencil values */ in _mesa_texstore_s8_z24()
468 ctx->_ImageTransferState); in _mesa_texstore_s8_z24()
491 * Store simple 8-bit/value stencil texture data.
518 /* get the 8-bit stencil values */ in _mesa_texstore_s8()
523 ctx->_ImageTransferState); in _mesa_texstore_s8()
580 ctx->_ImageTransferState); in _mesa_texstore_z32f_x24s8()
710 ctx->_ImageTransferState); in texstore_rgba()
725 } else if (srcPacking->SwapBytes) { in texstore_rgba()
726 /* We have to handle byte-swapping scenarios before calling in texstore_rgba()
790 _mesa_apply_rgba_transfer_ops(ctx, ctx->_ImageTransferState, elementCount, in texstore_rgba()
801 srcPacking = &ctx->DefaultPacking; in texstore_rgba()
838 /* There are different rules depending on the base format. */ in _mesa_texstore_needs_transfer_ops()
842 return ctx->Pixel.DepthScale != 1.0f || in _mesa_texstore_needs_transfer_ops()
843 ctx->Pixel.DepthBias != 0.0f; in _mesa_texstore_needs_transfer_ops()
856 ctx->_ImageTransferState; in _mesa_texstore_needs_transfer_ops()
878 srcPacking->SwapBytes, NULL)) { in _mesa_texstore_can_use_memcpy()
883 * - Floating point dstFormat with signed srcType: clamp to [0.0, 1.0]. in _mesa_texstore_can_use_memcpy()
884 * - Fixed point dstFormat with signed srcType: clamp to [0, 2^n -1]. in _mesa_texstore_can_use_memcpy()
957 * \param userFormat the user-provided image format
987 const GLbitfield mapMode = get_read_write_mode(format, texImage->TexFormat); in store_texsubimage()
988 const GLenum target = texImage->TexObject->Target; in store_texsubimage()
994 assert(xoffset + width <= texImage->Width); in store_texsubimage()
995 assert(yoffset + height <= texImage->Height); in store_texsubimage()
996 assert(zoffset + depth <= texImage->Depth); in store_texsubimage()
1085 success = _mesa_texstore(ctx, dims, texImage->_BaseFormat, in store_texsubimage()
1086 texImage->TexFormat, in store_texsubimage()
1149 dstMap += dstRowStride - clearValueSize * width; in clear_image_to_value()
1168 clearValueSize = _mesa_get_format_bytes(texImage->TexFormat); in _mesa_store_cleartexsubimage()
1215 assert(texImage->Width > 0); in _mesa_store_compressed_teximage()
1216 assert(texImage->Height > 0); in _mesa_store_compressed_teximage()
1217 assert(texImage->Depth > 0); in _mesa_store_compressed_teximage()
1227 texImage->Width, texImage->Height, texImage->Depth, in _mesa_store_compressed_teximage()
1228 texImage->TexFormat, in _mesa_store_compressed_teximage()
1239 * \param packing pixelstore parameters describing user-space image packing
1253 store->SkipBytes = 0; in _mesa_compute_compressed_pixelstore()
1254 store->TotalBytesPerRow = store->CopyBytesPerRow = in _mesa_compute_compressed_pixelstore()
1256 store->TotalRowsPerSlice = store->CopyRowsPerSlice = in _mesa_compute_compressed_pixelstore()
1257 (height + bh - 1) / bh; in _mesa_compute_compressed_pixelstore()
1258 store->CopySlices = (depth + bd - 1) / bd; in _mesa_compute_compressed_pixelstore()
1260 if (packing->CompressedBlockWidth && in _mesa_compute_compressed_pixelstore()
1261 packing->CompressedBlockSize) { in _mesa_compute_compressed_pixelstore()
1263 bw = packing->CompressedBlockWidth; in _mesa_compute_compressed_pixelstore()
1265 if (packing->RowLength) { in _mesa_compute_compressed_pixelstore()
1266 store->TotalBytesPerRow = packing->CompressedBlockSize * in _mesa_compute_compressed_pixelstore()
1267 ((packing->RowLength + bw - 1) / bw); in _mesa_compute_compressed_pixelstore()
1270 store->SkipBytes += in _mesa_compute_compressed_pixelstore()
1271 packing->SkipPixels * packing->CompressedBlockSize / bw; in _mesa_compute_compressed_pixelstore()
1274 if (dims > 1 && packing->CompressedBlockHeight && in _mesa_compute_compressed_pixelstore()
1275 packing->CompressedBlockSize) { in _mesa_compute_compressed_pixelstore()
1277 bh = packing->CompressedBlockHeight; in _mesa_compute_compressed_pixelstore()
1279 store->SkipBytes += packing->SkipRows * store->TotalBytesPerRow / bh; in _mesa_compute_compressed_pixelstore()
1280 store->CopyRowsPerSlice = (height + bh - 1) / bh; /* rows in blocks */ in _mesa_compute_compressed_pixelstore()
1282 if (packing->ImageHeight) { in _mesa_compute_compressed_pixelstore()
1283 store->TotalRowsPerSlice = (packing->ImageHeight + bh - 1) / bh; in _mesa_compute_compressed_pixelstore()
1287 if (dims > 2 && packing->CompressedBlockDepth && in _mesa_compute_compressed_pixelstore()
1288 packing->CompressedBlockSize) { in _mesa_compute_compressed_pixelstore()
1290 int bd = packing->CompressedBlockDepth; in _mesa_compute_compressed_pixelstore()
1292 store->SkipBytes += packing->SkipImages * store->TotalBytesPerRow * in _mesa_compute_compressed_pixelstore()
1293 store->TotalRowsPerSlice / bd; in _mesa_compute_compressed_pixelstore()
1320 _mesa_compute_compressed_pixelstore(dims, texImage->TexFormat, in _mesa_store_compressed_texsubimage()
1322 &ctx->Unpack, &store); in _mesa_store_compressed_texsubimage()
1326 &ctx->Unpack, in _mesa_store_compressed_texsubimage()
1360 - store.CopyRowsPerSlice); in _mesa_store_compressed_texsubimage()
1368 _mesa_unmap_teximage_pbo(ctx, &ctx->Unpack); in _mesa_store_compressed_texsubimage()