/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | i915_tex_layout.c | 115 i915_miptree_layout_cube(struct intel_mipmap_tree * mt) in i915_miptree_layout_cube() argument 117 const GLuint dim = mt->width0; in i915_miptree_layout_cube() 119 GLuint lvlWidth = mt->width0, lvlHeight = mt->height0; in i915_miptree_layout_cube() 125 mt->total_width = dim * 2; in i915_miptree_layout_cube() 126 mt->total_height = dim * 4; in i915_miptree_layout_cube() 128 for (level = mt->first_level; level <= mt->last_level; level++) { in i915_miptree_layout_cube() 129 intel_miptree_set_level_info(mt, level, in i915_miptree_layout_cube() 142 for (level = mt->first_level; level <= mt->last_level; level++) { in i915_miptree_layout_cube() 143 intel_miptree_set_image_offset(mt, level, face, x, y); in i915_miptree_layout_cube() 147 face, level, mt->first_level, mt->last_level); in i915_miptree_layout_cube() [all …]
|
D | intel_mipmap_tree.c | 87 struct intel_mipmap_tree *mt = calloc(sizeof(*mt), 1); in intel_miptree_create_internal() local 93 first_level, last_level, mt); in intel_miptree_create_internal() 98 mt->target = target_to_target(target); in intel_miptree_create_internal() 99 mt->format = format; in intel_miptree_create_internal() 100 mt->first_level = first_level; in intel_miptree_create_internal() 101 mt->last_level = last_level; in intel_miptree_create_internal() 102 mt->width0 = width0; in intel_miptree_create_internal() 103 mt->height0 = height0; in intel_miptree_create_internal() 104 mt->cpp = compress_byte ? compress_byte : _mesa_get_format_bytes(mt->format); in intel_miptree_create_internal() 105 mt->num_samples = num_samples; in intel_miptree_create_internal() [all …]
|
D | intel_tex_layout.c | 141 void i945_miptree_layout_2d(struct intel_mipmap_tree *mt) in i945_miptree_layout_2d() argument 146 GLuint width = mt->width0; in i945_miptree_layout_2d() 147 GLuint height = mt->height0; in i945_miptree_layout_2d() 148 GLuint depth = mt->depth0; /* number of array layers. */ in i945_miptree_layout_2d() 150 mt->total_width = mt->width0; in i945_miptree_layout_2d() 152 if (mt->compressed) { in i945_miptree_layout_2d() 153 mt->total_width = ALIGN(mt->width0, mt->align_w); in i945_miptree_layout_2d() 161 if (mt->first_level != mt->last_level) { in i945_miptree_layout_2d() 164 if (mt->compressed) { in i945_miptree_layout_2d() 165 mip1_width = ALIGN(minify(mt->width0), mt->align_w) in i945_miptree_layout_2d() [all …]
|
D | intel_tex_validate.c | 68 if (intelObj->mt && in intel_finalize_mipmap_tree() 69 (!intel_miptree_match_image(intelObj->mt, &firstImage->base.Base) || in intel_finalize_mipmap_tree() 70 intelObj->mt->first_level != tObj->BaseLevel || in intel_finalize_mipmap_tree() 71 intelObj->mt->last_level < intelObj->_MaxLevel)) { in intel_finalize_mipmap_tree() 72 intel_miptree_release(&intelObj->mt); in intel_finalize_mipmap_tree() 78 if (!intelObj->mt) { in intel_finalize_mipmap_tree() 82 intelObj->mt = intel_miptree_create(intel, in intel_finalize_mipmap_tree() 93 if (!intelObj->mt) in intel_finalize_mipmap_tree() 108 if (intelObj->mt != intelImage->mt) { in intel_finalize_mipmap_tree() 109 intel_miptree_copy_teximage(intel, intelImage, intelObj->mt); in intel_finalize_mipmap_tree() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/intel/ |
D | intel_mipmap_tree.c | 87 struct intel_mipmap_tree *mt = calloc(sizeof(*mt), 1); in intel_miptree_create_internal() local 93 first_level, last_level, mt); in intel_miptree_create_internal() 98 mt->target = target_to_target(target); in intel_miptree_create_internal() 99 mt->format = format; in intel_miptree_create_internal() 100 mt->first_level = first_level; in intel_miptree_create_internal() 101 mt->last_level = last_level; in intel_miptree_create_internal() 102 mt->width0 = width0; in intel_miptree_create_internal() 103 mt->height0 = height0; in intel_miptree_create_internal() 104 mt->cpp = compress_byte ? compress_byte : _mesa_get_format_bytes(mt->format); in intel_miptree_create_internal() 105 mt->num_samples = num_samples; in intel_miptree_create_internal() [all …]
|
D | intel_tex_layout.c | 141 void i945_miptree_layout_2d(struct intel_mipmap_tree *mt) in i945_miptree_layout_2d() argument 146 GLuint width = mt->width0; in i945_miptree_layout_2d() 147 GLuint height = mt->height0; in i945_miptree_layout_2d() 148 GLuint depth = mt->depth0; /* number of array layers. */ in i945_miptree_layout_2d() 150 mt->total_width = mt->width0; in i945_miptree_layout_2d() 152 if (mt->compressed) { in i945_miptree_layout_2d() 153 mt->total_width = ALIGN(mt->width0, mt->align_w); in i945_miptree_layout_2d() 161 if (mt->first_level != mt->last_level) { in i945_miptree_layout_2d() 164 if (mt->compressed) { in i945_miptree_layout_2d() 165 mip1_width = ALIGN(minify(mt->width0), mt->align_w) in i945_miptree_layout_2d() [all …]
|
D | intel_tex_validate.c | 68 if (intelObj->mt && in intel_finalize_mipmap_tree() 69 (!intel_miptree_match_image(intelObj->mt, &firstImage->base.Base) || in intel_finalize_mipmap_tree() 70 intelObj->mt->first_level != tObj->BaseLevel || in intel_finalize_mipmap_tree() 71 intelObj->mt->last_level < intelObj->_MaxLevel)) { in intel_finalize_mipmap_tree() 72 intel_miptree_release(&intelObj->mt); in intel_finalize_mipmap_tree() 78 if (!intelObj->mt) { in intel_finalize_mipmap_tree() 82 intelObj->mt = intel_miptree_create(intel, in intel_finalize_mipmap_tree() 93 if (!intelObj->mt) in intel_finalize_mipmap_tree() 108 if (intelObj->mt != intelImage->mt) { in intel_finalize_mipmap_tree() 109 intel_miptree_copy_teximage(intel, intelImage, intelObj->mt); in intel_finalize_mipmap_tree() [all …]
|
D | intel_mipmap_tree.h | 413 intel_miptree_check_level_layer(struct intel_mipmap_tree *mt, in intel_miptree_check_level_layer() argument 417 assert(level >= mt->first_level); in intel_miptree_check_level_layer() 418 assert(level <= mt->last_level); in intel_miptree_check_level_layer() 419 assert(layer < mt->level[level].depth); in intel_miptree_check_level_layer() 423 struct intel_mipmap_tree *mt, 430 void intel_miptree_release(struct intel_mipmap_tree **mt); 434 bool intel_miptree_match_image(struct intel_mipmap_tree *mt, 438 intel_miptree_get_image_offset(struct intel_mipmap_tree *mt, 446 void intel_miptree_set_level_info(struct intel_mipmap_tree *mt, 451 void intel_miptree_set_image_offset(struct intel_mipmap_tree *mt, [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | intel_mipmap_tree.c | 87 struct intel_mipmap_tree *mt = calloc(sizeof(*mt), 1); in intel_miptree_create_internal() local 93 first_level, last_level, mt); in intel_miptree_create_internal() 98 mt->target = target_to_target(target); in intel_miptree_create_internal() 99 mt->format = format; in intel_miptree_create_internal() 100 mt->first_level = first_level; in intel_miptree_create_internal() 101 mt->last_level = last_level; in intel_miptree_create_internal() 102 mt->width0 = width0; in intel_miptree_create_internal() 103 mt->height0 = height0; in intel_miptree_create_internal() 104 mt->cpp = compress_byte ? compress_byte : _mesa_get_format_bytes(mt->format); in intel_miptree_create_internal() 105 mt->num_samples = num_samples; in intel_miptree_create_internal() [all …]
|
D | brw_tex_layout.c | 44 struct intel_mipmap_tree *mt) in brw_miptree_layout_texture_array() argument 50 h0 = ALIGN(mt->height0, mt->align_h); in brw_miptree_layout_texture_array() 51 h1 = ALIGN(minify(mt->height0), mt->align_h); in brw_miptree_layout_texture_array() 52 if (mt->array_spacing_lod0) in brw_miptree_layout_texture_array() 55 qpitch = (h0 + h1 + (intel->gen >= 7 ? 12 : 11) * mt->align_h); in brw_miptree_layout_texture_array() 56 if (mt->compressed) in brw_miptree_layout_texture_array() 59 i945_miptree_layout_2d(mt); in brw_miptree_layout_texture_array() 61 for (level = mt->first_level; level <= mt->last_level; level++) { in brw_miptree_layout_texture_array() 62 for (q = 0; q < mt->depth0; q++) { in brw_miptree_layout_texture_array() 63 intel_miptree_set_image_offset(mt, level, q, 0, q * qpitch); in brw_miptree_layout_texture_array() [all …]
|
D | intel_tex_layout.c | 141 void i945_miptree_layout_2d(struct intel_mipmap_tree *mt) in i945_miptree_layout_2d() argument 146 GLuint width = mt->width0; in i945_miptree_layout_2d() 147 GLuint height = mt->height0; in i945_miptree_layout_2d() 148 GLuint depth = mt->depth0; /* number of array layers. */ in i945_miptree_layout_2d() 150 mt->total_width = mt->width0; in i945_miptree_layout_2d() 152 if (mt->compressed) { in i945_miptree_layout_2d() 153 mt->total_width = ALIGN(mt->width0, mt->align_w); in i945_miptree_layout_2d() 161 if (mt->first_level != mt->last_level) { in i945_miptree_layout_2d() 164 if (mt->compressed) { in i945_miptree_layout_2d() 165 mip1_width = ALIGN(minify(mt->width0), mt->align_w) in i945_miptree_layout_2d() [all …]
|
D | intel_tex_validate.c | 68 if (intelObj->mt && in intel_finalize_mipmap_tree() 69 (!intel_miptree_match_image(intelObj->mt, &firstImage->base.Base) || in intel_finalize_mipmap_tree() 70 intelObj->mt->first_level != tObj->BaseLevel || in intel_finalize_mipmap_tree() 71 intelObj->mt->last_level < intelObj->_MaxLevel)) { in intel_finalize_mipmap_tree() 72 intel_miptree_release(&intelObj->mt); in intel_finalize_mipmap_tree() 78 if (!intelObj->mt) { in intel_finalize_mipmap_tree() 82 intelObj->mt = intel_miptree_create(intel, in intel_finalize_mipmap_tree() 93 if (!intelObj->mt) in intel_finalize_mipmap_tree() 108 if (intelObj->mt != intelImage->mt) { in intel_finalize_mipmap_tree() 109 intel_miptree_copy_teximage(intel, intelImage, intelObj->mt); in intel_finalize_mipmap_tree() [all …]
|
D | brw_blorp.cpp | 32 : mt(NULL), in brw_blorp_mip_info() 47 brw_blorp_mip_info::set(struct intel_mipmap_tree *mt, in set() argument 50 intel_miptree_check_level_layer(mt, level, layer); in set() 52 this->mt = mt; in set() 53 this->width = mt->level[level].width; in set() 54 this->height = mt->level[level].height; in set() 58 rb.mt = mt; in set() 68 struct intel_mipmap_tree *mt, in set() argument 71 brw_blorp_mip_info::set(mt, level, layer); in set() 72 this->num_samples = mt->num_samples; in set() [all …]
|
/external/mesa3d/src/gallium/drivers/nv50/ |
D | nv50_miptree.c | 38 nv50_mt_choose_storage_type(struct nv50_miptree *mt, boolean compressed) in nv50_mt_choose_storage_type() argument 40 const unsigned ms = mt->ms_x + mt->ms_y; in nv50_mt_choose_storage_type() 44 if (unlikely(mt->base.base.flags & NOUVEAU_RESOURCE_FLAG_LINEAR)) in nv50_mt_choose_storage_type() 46 if (unlikely(mt->base.base.bind & PIPE_BIND_CURSOR)) in nv50_mt_choose_storage_type() 49 switch (mt->base.base.format) { in nv50_mt_choose_storage_type() 67 switch (util_format_get_blocksizebits(mt->base.base.format)) { in nv50_mt_choose_storage_type() 82 if (mt->base.base.bind & PIPE_BIND_SCANOUT) { in nv50_mt_choose_storage_type() 102 if (mt->base.base.bind & PIPE_BIND_CURSOR) in nv50_mt_choose_storage_type() 115 struct nv50_miptree *mt = nv50_miptree(pt); in nv50_miptree_destroy() local 117 nouveau_bo_ref(NULL, &mt->base.bo); in nv50_miptree_destroy() [all …]
|
/external/mesa3d/src/gallium/drivers/nvc0/ |
D | nvc0_miptree.c | 60 nvc0_mt_choose_storage_type(struct nv50_miptree *mt, boolean compressed) in nvc0_mt_choose_storage_type() argument 62 const unsigned ms = util_logbase2(mt->base.base.nr_samples); in nvc0_mt_choose_storage_type() 68 if (unlikely(mt->base.base.bind & PIPE_BIND_CURSOR)) in nvc0_mt_choose_storage_type() 70 if (unlikely(mt->base.base.flags & NOUVEAU_RESOURCE_FLAG_LINEAR)) in nvc0_mt_choose_storage_type() 73 switch (mt->base.base.format) { in nvc0_mt_choose_storage_type() 106 switch (util_format_get_blocksizebits(mt->base.base.format)) { in nvc0_mt_choose_storage_type() 155 nvc0_miptree_init_ms_mode(struct nv50_miptree *mt) in nvc0_miptree_init_ms_mode() argument 157 switch (mt->base.base.nr_samples) { in nvc0_miptree_init_ms_mode() 159 mt->ms_mode = NVC0_3D_MULTISAMPLE_MODE_MS8; in nvc0_miptree_init_ms_mode() 160 mt->ms_x = 2; in nvc0_miptree_init_ms_mode() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
D | radeon_mipmap_tree.c | 127 static void compute_tex_image_offset(radeonContextPtr rmesa, radeon_mipmap_tree *mt, in compute_tex_image_offset() argument 130 radeon_mipmap_level *lvl = &mt->levels[level]; in compute_tex_image_offset() 135 …lvl->rowstride = get_texture_image_row_stride(rmesa, mt->mesaFormat, lvl->width, mt->tilebits, mt-… in compute_tex_image_offset() 136 …lvl->size = get_texture_image_size(mt->mesaFormat, lvl->rowstride, height, lvl->depth, mt->tilebit… in compute_tex_image_offset() 159 static void calculate_miptree_layout(radeonContextPtr rmesa, radeon_mipmap_tree *mt) in calculate_miptree_layout() argument 163 assert(mt->numLevels <= rmesa->glCtx->Const.MaxTextureLevels); in calculate_miptree_layout() 166 for(face = 0; face < mt->faces; face++) { in calculate_miptree_layout() 168 for(i = 0, level = mt->baseLevel; i < mt->numLevels; i++, level++) { in calculate_miptree_layout() 169 mt->levels[level].valid = 1; in calculate_miptree_layout() 170 mt->levels[level].width = minify(mt->width0, i); in calculate_miptree_layout() [all …]
|
D | radeon_texture.c | 137 if (image->mt) { in radeonFreeTextureImageBuffer() 138 radeon_miptree_unreference(&image->mt); in radeonFreeTextureImageBuffer() 162 if (!image->mt) { in teximage_set_map_data() 169 lvl = &image->mt->levels[image->base.Base.Level]; in teximage_set_map_data() 171 image->base.Map = image->mt->bo->ptr + lvl->faces[image->base.Base.Face].offset; in teximage_set_map_data() 185 if (image->mt) { in radeon_teximage_map() 188 radeon_bo_map(image->mt->bo, write_enable); in radeon_teximage_map() 199 if (image->mt) { in radeon_teximage_unmap() 203 radeon_bo_unmap(image->mt->bo); in radeon_teximage_unmap() 224 radeon_mipmap_tree *mt = image->mt; in radeon_map_texture_image() local [all …]
|
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
D | radeon_mipmap_tree.c | 127 static void compute_tex_image_offset(radeonContextPtr rmesa, radeon_mipmap_tree *mt, in compute_tex_image_offset() argument 130 radeon_mipmap_level *lvl = &mt->levels[level]; in compute_tex_image_offset() 135 …lvl->rowstride = get_texture_image_row_stride(rmesa, mt->mesaFormat, lvl->width, mt->tilebits, mt-… in compute_tex_image_offset() 136 …lvl->size = get_texture_image_size(mt->mesaFormat, lvl->rowstride, height, lvl->depth, mt->tilebit… in compute_tex_image_offset() 159 static void calculate_miptree_layout(radeonContextPtr rmesa, radeon_mipmap_tree *mt) in calculate_miptree_layout() argument 163 assert(mt->numLevels <= rmesa->glCtx->Const.MaxTextureLevels); in calculate_miptree_layout() 166 for(face = 0; face < mt->faces; face++) { in calculate_miptree_layout() 168 for(i = 0, level = mt->baseLevel; i < mt->numLevels; i++, level++) { in calculate_miptree_layout() 169 mt->levels[level].valid = 1; in calculate_miptree_layout() 170 mt->levels[level].width = minify(mt->width0, i); in calculate_miptree_layout() [all …]
|
D | radeon_texture.c | 137 if (image->mt) { in radeonFreeTextureImageBuffer() 138 radeon_miptree_unreference(&image->mt); in radeonFreeTextureImageBuffer() 162 if (!image->mt) { in teximage_set_map_data() 169 lvl = &image->mt->levels[image->base.Base.Level]; in teximage_set_map_data() 171 image->base.Map = image->mt->bo->ptr + lvl->faces[image->base.Base.Face].offset; in teximage_set_map_data() 185 if (image->mt) { in radeon_teximage_map() 188 radeon_bo_map(image->mt->bo, write_enable); in radeon_teximage_map() 199 if (image->mt) { in radeon_teximage_unmap() 203 radeon_bo_unmap(image->mt->bo); in radeon_teximage_unmap() 224 radeon_mipmap_tree *mt = image->mt; in radeon_map_texture_image() local [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/ |
D | MersenneTwister.java | 97 private int[] mt; field in MersenneTwister 107 mt = new int[N]; in MersenneTwister() 115 mt = new int[N]; in MersenneTwister() 124 mt = new int[N]; in MersenneTwister() 132 mt = new int[N]; in MersenneTwister() 145 mt[0]= (int) longMT; in setSeed() 150 mt[mti]= (int) longMT; in setSeed() 173 long l0 = (mt[i] & 0x7fffffffl) | ((mt[i] < 0) ? 0x80000000l : 0x0l); in setSeed() 174 long l1 = (mt[i-1] & 0x7fffffffl) | ((mt[i-1] < 0) ? 0x80000000l : 0x0l); in setSeed() 176 mt[i] = (int) (l & 0xffffffffl); in setSeed() [all …]
|
/external/toybox/toys/posix/ |
D | df.c | 83 static void show_mt(struct mtab_list *mt, int measuring) in show_mt() argument 89 if (!mt) return; in show_mt() 96 if (!strcmp(mt->type, al->arg)) break; in show_mt() 102 if (!(toys.optflags & FLAG_a) && !mt->statvfs.f_blocks) return; in show_mt() 106 block = mt->statvfs.f_bsize ? mt->statvfs.f_bsize : 1; in show_mt() 107 size = (block * mt->statvfs.f_blocks) / TT.units; in show_mt() 108 used = (block * (mt->statvfs.f_blocks-mt->statvfs.f_bfree)) / TT.units; in show_mt() 109 avail = (block*(getuid()?mt->statvfs.f_bavail:mt->statvfs.f_bfree))/TT.units; in show_mt() 116 device = *mt->device == '/' ? realpath(mt->device, NULL) : NULL; in show_mt() 117 if (!device) device = mt->device; in show_mt() [all …]
|
/external/mesa3d/src/gallium/drivers/nv30/ |
D | nv30_miptree.c | 39 struct nv30_miptree *mt = nv30_miptree(pt); in layer_offset() local 40 struct nv30_miptree_level *lvl = &mt->level[level]; in layer_offset() 43 return (layer * mt->layer_size) + lvl->offset; in layer_offset() 53 struct nv30_miptree *mt = nv30_miptree(pt); in nv30_miptree_get_handle() local 56 if (!mt || !mt->base.bo) in nv30_miptree_get_handle() 59 stride = mt->level[0].pitch; in nv30_miptree_get_handle() 61 return nouveau_screen_bo_get_handle(pscreen, mt->base.bo, stride, handle); in nv30_miptree_get_handle() 67 struct nv30_miptree *mt = nv30_miptree(pt); in nv30_miptree_destroy() local 69 nouveau_bo_ref(NULL, &mt->base.bo); in nv30_miptree_destroy() 70 FREE(mt); in nv30_miptree_destroy() [all …]
|
/external/fio/ |
D | ghelpers.c | 144 void multitext_add_entry(struct multitext_widget *mt, const char *text) in multitext_add_entry() argument 146 mt->text = realloc(mt->text, (mt->max_text + 1) * sizeof(char *)); in multitext_add_entry() 147 mt->text[mt->max_text] = strdup(text); in multitext_add_entry() 148 mt->max_text++; in multitext_add_entry() 151 void multitext_set_entry(struct multitext_widget *mt, unsigned int index) in multitext_set_entry() argument 153 if (index >= mt->max_text) in multitext_set_entry() 155 if (!mt->text || !mt->text[index]) in multitext_set_entry() 158 mt->cur_text = index; in multitext_set_entry() 159 gtk_entry_set_text(GTK_ENTRY(mt->entry), mt->text[index]); in multitext_set_entry() 162 void multitext_update_entry(struct multitext_widget *mt, unsigned int index, in multitext_update_entry() argument [all …]
|
/external/mesa3d/src/glx/ |
D | indirect_transpose_matrix.c | 54 GLdouble mt[16]; in __indirect_glLoadTransposeMatrixdARB() local 56 TransposeMatrixd(m, mt); in __indirect_glLoadTransposeMatrixdARB() 57 __indirect_glLoadMatrixd(mt); in __indirect_glLoadTransposeMatrixdARB() 63 GLfloat mt[16]; in __indirect_glLoadTransposeMatrixfARB() local 65 TransposeMatrixf(m, mt); in __indirect_glLoadTransposeMatrixfARB() 66 __indirect_glLoadMatrixf(mt); in __indirect_glLoadTransposeMatrixfARB() 72 GLdouble mt[16]; in __indirect_glMultTransposeMatrixdARB() local 74 TransposeMatrixd(m, mt); in __indirect_glMultTransposeMatrixdARB() 75 __indirect_glMultMatrixd(mt); in __indirect_glMultTransposeMatrixdARB() 81 GLfloat mt[16]; in __indirect_glMultTransposeMatrixfARB() local [all …]
|
/external/v8/test/cctest/compiler/ |
D | test-multiple-return.cc | 97 RawMachineAssemblerTester<int32_t> mt; in TEST() local 98 Node* a = mt.Int32Constant(123); in TEST() 99 Node* b = mt.Int32Constant(456); in TEST() 100 Node* ret3 = mt.AddNode(mt.common()->Call(desc), mt.HeapConstant(code), a, b); in TEST() 101 Node* x = mt.AddNode(mt.common()->Projection(0), ret3); in TEST() 102 Node* y = mt.AddNode(mt.common()->Projection(1), ret3); in TEST() 103 Node* z = mt.AddNode(mt.common()->Projection(2), ret3); in TEST() 104 Node* ret = mt.Int32Add(mt.Int32Add(x, y), z); in TEST() 105 mt.Return(ret); in TEST() 107 Handle<Code> code2 = mt.GetCode(); in TEST() [all …]
|