Home
last modified time | relevance | path

Searched refs:packing (Results 1 - 25 of 35) sorted by relevance

12

/third_party/mesa3d/src/mesa/main/
H A Dimage.c99 * Pixel unpacking/packing parameters are observed according to \p packing.
102 * \param packing the pixelstore attributes
117 const struct gl_pixelstore_attrib *packing, in _mesa_image_offset()
132 alignment = packing->Alignment; in _mesa_image_offset()
133 if (packing->RowLength > 0) { in _mesa_image_offset()
134 pixels_per_row = packing->RowLength; in _mesa_image_offset()
139 if (packing->ImageHeight > 0) { in _mesa_image_offset()
140 rows_per_image = packing->ImageHeight; in _mesa_image_offset()
146 skippixels = packing in _mesa_image_offset()
116 _mesa_image_offset( GLuint dimensions, const struct gl_pixelstore_attrib *packing, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint img, GLint row, GLint column ) _mesa_image_offset() argument
231 _mesa_image_address( GLuint dimensions, const struct gl_pixelstore_attrib *packing, const GLvoid *image, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint img, GLint row, GLint column ) _mesa_image_address() argument
248 _mesa_image_address1d( const struct gl_pixelstore_attrib *packing, const GLvoid *image, GLsizei width, GLenum format, GLenum type, GLint column ) _mesa_image_address1d() argument
260 _mesa_image_address2d( const struct gl_pixelstore_attrib *packing, const GLvoid *image, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint row, GLint column ) _mesa_image_address2d() argument
272 _mesa_image_address3d( const struct gl_pixelstore_attrib *packing, const GLvoid *image, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint img, GLint row, GLint column ) _mesa_image_address3d() argument
295 _mesa_image_row_stride( const struct gl_pixelstore_attrib *packing, GLint width, GLenum format, GLenum type ) _mesa_image_row_stride() argument
342 _mesa_image_image_stride( const struct gl_pixelstore_attrib *packing, GLint width, GLint height, GLenum format, GLenum type ) _mesa_image_image_stride() argument
865 _mesa_swap_bytes_2d_image(GLenum format, GLenum type, const struct gl_pixelstore_attrib *packing, GLsizei width, GLsizei height, GLvoid *dst, const GLvoid *src) _mesa_swap_bytes_2d_image() argument
[all...]
H A Dimage.h45 const struct gl_pixelstore_attrib *packing,
52 const struct gl_pixelstore_attrib *packing,
59 _mesa_image_address1d( const struct gl_pixelstore_attrib *packing,
66 _mesa_image_address2d( const struct gl_pixelstore_attrib *packing,
73 _mesa_image_address3d( const struct gl_pixelstore_attrib *packing,
81 _mesa_image_row_stride( const struct gl_pixelstore_attrib *packing,
86 _mesa_image_image_stride( const struct gl_pixelstore_attrib *packing,
133 const struct gl_pixelstore_attrib *packing,
H A Dreadpix.c110 /* For blit-based ReadPixels packing, the clamping is done automatically in _mesa_get_readpixels_transfer_ops()
119 /* For CPU-based ReadPixels packing, the clamping must always be done in _mesa_get_readpixels_transfer_ops()
152 * cannot be used for ReadPixels packing.
199 const struct gl_pixelstore_attrib *packing) in readpixels_can_use_memcpy()
217 packing->SwapBytes, NULL)) { in readpixels_can_use_memcpy()
231 const struct gl_pixelstore_attrib *packing) in readpixels_memcpy()
239 if (!readpixels_can_use_memcpy(ctx, format, type, packing)) { in readpixels_memcpy()
243 dstStride = _mesa_image_row_stride(packing, width, format, type); in readpixels_memcpy()
244 dst = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height, in readpixels_memcpy()
282 const struct gl_pixelstore_attrib *packing ) in read_uint_depth_pixels()
198 readpixels_can_use_memcpy(const struct gl_context *ctx, GLenum format, GLenum type, const struct gl_pixelstore_attrib *packing) readpixels_can_use_memcpy() argument
226 readpixels_memcpy(struct gl_context *ctx, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels, const struct gl_pixelstore_attrib *packing) readpixels_memcpy() argument
750 slow_read_depth_stencil_pixels_separate(struct gl_context *ctx, GLint x, GLint y, GLsizei width, GLsizei height, GLenum type, const struct gl_pixelstore_attrib *packing, GLubyte *dst, int dstStride) slow_read_depth_stencil_pixels_separate() argument
872 _mesa_readpixels(struct gl_context *ctx, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, const struct gl_pixelstore_attrib *packing, GLvoid *pixels) _mesa_readpixels() argument
[all...]
H A Dpixelstore.c325 const struct gl_pixelstore_attrib *packing, in _mesa_compressed_pixel_storage_error_check()
328 if (!_mesa_is_desktop_gl(ctx) || !packing->CompressedBlockSize) in _mesa_compressed_pixel_storage_error_check()
331 if (packing->CompressedBlockWidth && in _mesa_compressed_pixel_storage_error_check()
332 packing->SkipPixels % packing->CompressedBlockWidth) { in _mesa_compressed_pixel_storage_error_check()
339 packing->CompressedBlockHeight && in _mesa_compressed_pixel_storage_error_check()
340 packing->SkipRows % packing->CompressedBlockHeight) { in _mesa_compressed_pixel_storage_error_check()
347 packing->CompressedBlockDepth && in _mesa_compressed_pixel_storage_error_check()
348 packing in _mesa_compressed_pixel_storage_error_check()
322 _mesa_compressed_pixel_storage_error_check( struct gl_context *ctx, GLint dimensions, const struct gl_pixelstore_attrib *packing, const char *caller) _mesa_compressed_pixel_storage_error_check() argument
[all...]
H A Dtexstore.c979 const struct gl_pixelstore_attrib *packing, in store_texsubimage()
1010 format, type, pixels, packing, caller); in store_texsubimage()
1036 srcImageStride = _mesa_image_row_stride(packing, width, format, type); in store_texsubimage()
1044 srcImageStride = _mesa_image_image_stride(packing, width, height, in store_texsubimage()
1051 srcImageStride = _mesa_image_image_stride(packing, width, height, in store_texsubimage()
1057 srcImageStride = _mesa_image_image_stride(packing, width, height, in store_texsubimage()
1086 format, type, src, packing); in store_texsubimage()
1100 _mesa_unmap_teximage_pbo(ctx, packing); in store_texsubimage()
1115 const struct gl_pixelstore_attrib *packing) in _mesa_store_teximage()
1130 format, type, pixels, packing, "glTexImag in _mesa_store_teximage()
974 store_texsubimage(struct gl_context *ctx, struct gl_texture_image *texImage, GLint xoffset, GLint yoffset, GLint zoffset, GLint width, GLint height, GLint depth, GLenum format, GLenum type, const GLvoid *pixels, const struct gl_pixelstore_attrib *packing, const char *caller) store_texsubimage() argument
1111 _mesa_store_teximage(struct gl_context *ctx, GLuint dims, struct gl_texture_image *texImage, GLenum format, GLenum type, const GLvoid *pixels, const struct gl_pixelstore_attrib *packing) _mesa_store_teximage() argument
1138 _mesa_store_texsubimage(struct gl_context *ctx, GLuint dims, struct gl_texture_image *texImage, GLint xoffset, GLint yoffset, GLint zoffset, GLint width, GLint height, GLint depth, GLenum format, GLenum type, const void *pixels, const struct gl_pixelstore_attrib *packing) _mesa_store_texsubimage() argument
1270 _mesa_compute_compressed_pixelstore(GLuint dims, mesa_format texFormat, GLsizei width, GLsizei height, GLsizei depth, const struct gl_pixelstore_attrib *packing, struct compressed_pixelstore *store) _mesa_compute_compressed_pixelstore() argument
[all...]
H A Dtexstore.h59 * \param srcPacking source image packing parameters
118 const struct gl_pixelstore_attrib *packing);
127 const struct gl_pixelstore_attrib *packing);
166 const struct gl_pixelstore_attrib *packing,
H A Dpbo.c440 const struct gl_pixelstore_attrib *packing, in _mesa_validate_pbo_compressed_teximage()
445 if (!_mesa_validate_pbo_source_compressed(ctx, dimensions, packing, in _mesa_validate_pbo_compressed_teximage()
451 if (!packing->BufferObj) { in _mesa_validate_pbo_compressed_teximage()
457 packing->BufferObj->Size, in _mesa_validate_pbo_compressed_teximage()
459 packing->BufferObj, in _mesa_validate_pbo_compressed_teximage()
437 _mesa_validate_pbo_compressed_teximage(struct gl_context *ctx, GLuint dimensions, GLsizei imageSize, const GLvoid *pixels, const struct gl_pixelstore_attrib *packing, const char *funcName) _mesa_validate_pbo_compressed_teximage() argument
H A Dpack.h43 const struct gl_pixelstore_attrib *packing);
48 GLubyte *dest, const struct gl_pixelstore_attrib *packing);
H A Dpixelstore.h47 const struct gl_pixelstore_attrib *packing,
H A Dreadpix.h58 const struct gl_pixelstore_attrib *packing,
H A Dpack.c28 * Image and pixel span packing and unpacking.
123 * Pack polygon stipple into user memory given current pixel packing
128 const struct gl_pixelstore_attrib *packing ) in _mesa_pack_polygon_stipple()
142 _mesa_pack_bitmap(32, 32, ptrn, dest, packing); in _mesa_pack_polygon_stipple()
151 GLubyte *dest, const struct gl_pixelstore_attrib *packing ) in _mesa_pack_bitmap()
162 GLubyte *dst = (GLubyte *) _mesa_image_address2d(packing, dest, in _mesa_pack_bitmap()
167 if ((packing->SkipPixels & 7) == 0) { in _mesa_pack_bitmap()
169 if (packing->LsbFirst) { in _mesa_pack_bitmap()
176 if (packing->LsbFirst) { in _mesa_pack_bitmap()
178 GLubyte dstMask = 1 << (packing in _mesa_pack_bitmap()
[all...]
H A Dpbo.h89 const struct gl_pixelstore_attrib *packing,
/third_party/mesa3d/src/compiler/glsl/
H A Dlink_uniforms.cpp53 enum glsl_interface_packing packing = in process() local
56 recursion(type, &name_copy, strlen(name), false, NULL, packing, false, in process()
77 enum glsl_interface_packing packing = var->get_interface_type() ? in process() local
92 recursion(var->type, &name, strlen(name), row_major, NULL, packing, in process()
101 recursion(t, &name, strlen(name), row_major, NULL, packing, in process()
106 this->visit_field(t, var->name, row_major, NULL, packing, false); in process()
114 const enum glsl_interface_packing packing, in recursion()
129 packing, false, record_array_count, NULL); in recursion()
135 this->enter_record(t, *name, row_major, packing); in recursion()
169 packing, in recursion()
111 recursion(const glsl_type *t, char **name, size_t name_length, bool row_major, const glsl_type *record_type, const enum glsl_interface_packing packing, bool last_field, unsigned record_array_count, const glsl_struct_field *named_ifc_member) recursion() argument
244 link_calculate_matrix_stride(const glsl_type *matrix, bool row_major, enum glsl_interface_packing packing) link_calculate_matrix_stride() argument
[all...]
H A Dlinker.h84 enum glsl_interface_packing packing);
170 const enum glsl_interface_packing packing,
174 bool row_major, const enum glsl_interface_packing packing);
177 bool row_major, const enum glsl_interface_packing packing);
193 const enum glsl_interface_packing packing,
H A Dlink_uniform_blocks.cpp70 const enum glsl_interface_packing packing) in enter_record()
73 if (packing == GLSL_INTERFACE_PACKING_STD430) in enter_record()
83 const enum glsl_interface_packing packing) in leave_record()
94 if (packing == GLSL_INTERFACE_PACKING_STD430) in leave_record()
109 const enum glsl_interface_packing packing, in visit_field()
164 if (packing == GLSL_INTERFACE_PACKING_STD430) { in visit_field()
68 enter_record(const glsl_type *type, const char *, bool row_major, const enum glsl_interface_packing packing) enter_record() argument
81 leave_record(const glsl_type *type, const char *, bool row_major, const enum glsl_interface_packing packing) leave_record() argument
107 visit_field(const glsl_type *type, const char *name, bool row_major, const glsl_type *, const enum glsl_interface_packing packing, bool last_field) visit_field() argument
H A Dgl_nir_link_uniforms.c1159 const enum glsl_interface_packing packing = in enter_record() local
1163 if (packing == GLSL_INTERFACE_PACKING_STD430) in enter_record()
1182 const enum glsl_interface_packing packing = in leave_record() local
1186 if (packing == GLSL_INTERFACE_PACKING_STD430) in leave_record()
1423 const enum glsl_interface_packing packing = in nir_link_uniform() local
1429 if (packing == GLSL_INTERFACE_PACKING_STD430) { in nir_link_uniform()
1477 const enum glsl_interface_packing packing = in nir_link_uniform() local
1480 if (packing == GLSL_INTERFACE_PACKING_STD430) in nir_link_uniform()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
H A DModifyStruct.cpp321 TLayoutMatrixPacking packing,
326 layoutQualifier.matrixPacking = packing;
637 const TLayoutMatrixPacking packing);
642 const TLayoutMatrixPacking packing);
647 const TLayoutMatrixPacking packing)
650 state.addModifiedField(field, CloneType(type), storage, packing, nullptr);
660 const TLayoutMatrixPacking packing)
682 const TLayoutMatrixPacking subpacking = Overlay(packing, subtype);
692 const TLayoutMatrixPacking packing)
720 state.addModifiedField(field, newType, storage, packing, stat
[all...]
/third_party/mesa3d/src/compiler/
H A Dglsl_types.h494 enum glsl_interface_packing packing,
579 * varying slots the type will use up in the absence of varying packing
1249 * Get the type interface packing.
1257 * Get the type interface packing used internally. For shared and packing
1262 enum glsl_interface_packing packing = this->get_interface_packing(); in get_internal_ifc_packing() local
1263 if (packing == GLSL_INTERFACE_PACKING_STD140 || in get_internal_ifc_packing()
1265 (packing == GLSL_INTERFACE_PACKING_SHARED || in get_internal_ifc_packing()
1266 packing == GLSL_INTERFACE_PACKING_PACKED))) { in get_internal_ifc_packing()
1269 assert(packing in get_internal_ifc_packing()
[all...]
H A Dglsl_types.cpp138 enum glsl_interface_packing packing, in glsl_type()
143 interface_packing((unsigned) packing), in glsl_type()
1490 enum glsl_interface_packing packing, in get_interface_instance()
1494 const glsl_type key(fields, num_fields, packing, row_major, block_name); in get_interface_instance()
1508 packing, row_major, block_name); in get_interface_instance()
2689 enum glsl_interface_packing packing = in get_explicit_interface_type() local
2691 if (packing == GLSL_INTERFACE_PACKING_STD140) { in get_explicit_interface_type()
2694 assert(packing == GLSL_INTERFACE_PACKING_STD430); in get_explicit_interface_type()
2878 * so applications may want to consider packing groups of four in count_vec4_slots()
3306 enum glsl_interface_packing packing in decode_type_from_blob() local
137 glsl_type(const glsl_struct_field *fields, unsigned num_fields, enum glsl_interface_packing packing, bool row_major, const char *name) glsl_type() argument
1488 get_interface_instance(const glsl_struct_field *fields, unsigned num_fields, enum glsl_interface_packing packing, bool row_major, const char *block_name) get_interface_instance() argument
[all...]
/third_party/ffmpeg/libavcodec/
H A Ddpx.c166 int w, h, bits_per_color, descriptor, elements, packing; in decode_frame() local
235 packing = read16(&buf, endian); in decode_frame()
370 if (!packing) { in decode_frame()
378 if (packing) { in decode_frame()
640 int shift = elements > 1 ? packing == 1 ? 22 : 20 : packing == 1 ? 2 : 0; in decode_frame()
671 int shift = packing == 1 ? 4 : 0; in decode_frame()
673 if (packing) { in decode_frame()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
H A DDynamicHLSL.h124 BuiltinVaryingsD3D(const ProgramD3DMetadata &metadata, const gl::VaryingPacking &packing);
138 const gl::VaryingPacking &packing);
H A DDynamicHLSL.cpp1371 const VaryingPacking &packing)
1373 updateBuiltins(gl::ShaderType::Vertex, metadata, packing);
1374 updateBuiltins(gl::ShaderType::Fragment, metadata, packing);
1378 updateBuiltins(gl::ShaderType::Geometry, metadata, packing);
1398 const VaryingPacking &packing)
1407 unsigned int reservedSemanticIndex = packing.getMaxSemanticIndex();
/third_party/glslang/glslang/MachineIndependent/
H A Diomapper.h336 void setAutoPushConstantBlock(const char* name, unsigned int maxSize, TLayoutPacking packing) { in setAutoPushConstantBlock() argument
339 autoPushConstantBlockPacking = packing; in setAutoPushConstantBlock()
/third_party/mesa3d/src/compiler/nir/
H A Dnir_serialize.c660 unsigned packing:2; /* enum load_const_packing */ member
661 unsigned packed_value:19; /* meaning determined by packing */
1316 header.load_const.packing = load_const_full; in write_load_const()
1324 header.load_const.packing = load_const_scalar_hi_19bits; in write_load_const()
1328 header.load_const.packing = load_const_scalar_lo_19bits_sext; in write_load_const()
1335 header.load_const.packing = load_const_scalar_hi_19bits; in write_load_const()
1338 header.load_const.packing = load_const_scalar_lo_19bits_sext; in write_load_const()
1344 header.load_const.packing = load_const_scalar_lo_19bits_sext; in write_load_const()
1348 header.load_const.packing = load_const_scalar_lo_19bits_sext; in write_load_const()
1352 header.load_const.packing in write_load_const()
[all...]
/third_party/skia/third_party/externals/spirv-cross/
H A Dspirv_glsl.hpp758 bool buffer_is_packing_standard(const SPIRType &type, BufferPackingStandard packing,
763 uint32_t type_to_packed_base_size(const SPIRType &type, BufferPackingStandard packing);
764 uint32_t type_to_packed_alignment(const SPIRType &type, const Bitset &flags, BufferPackingStandard packing);
765 uint32_t type_to_packed_array_stride(const SPIRType &type, const Bitset &flags, BufferPackingStandard packing);
766 uint32_t type_to_packed_size(const SPIRType &type, const Bitset &flags, BufferPackingStandard packing);

Completed in 29 milliseconds

12