Home
last modified time | relevance | path

Searched refs:dims (Results 26 - 50 of 140) sorted by relevance

123456

/third_party/ffmpeg/tests/dnn/
H A Ddnn-layer-maximum-test.c41 operands[0].dims[0] = 1; in test()
42 operands[0].dims[1] = 1; in test()
43 operands[0].dims[2] = 2; in test()
44 operands[0].dims[3] = 3; in test()
H A Ddnn-layer-dense-test.c103 operands[0].dims[0] = 1; in test()
104 operands[0].dims[1] = 5; in test()
105 operands[0].dims[2] = 6; in test()
106 operands[0].dims[3] = 3; in test()
H A Ddnn-layer-mathunary-test.c83 operands[0].dims[0] = 1; in test()
84 operands[0].dims[1] = 1; in test()
85 operands[0].dims[2] = 3; in test()
86 operands[0].dims[3] = 3; in test()
/third_party/mesa3d/src/amd/common/
H A Dac_surface_modifier_test.c213 const unsigned dims[][2] = { in test_modifier() local
220 for (unsigned i = 0; i < ARRAY_SIZE(dims); ++i) { in test_modifier()
223 .width = dims[i][0], in test_modifier()
224 .height = dims[i][1], in test_modifier()
266 surf_size = block_count(dims[i][0], dims[i][1], in test_modifier()
270 aligned_pitch = align(dims[i][0], 256 / util_format_get_blocksize(format)); in test_modifier()
271 aligned_height = dims[i][1]; in test_modifier()
272 surf_size = align(dims[i][0] * util_format_get_blocksize(format), 256) * dims[ in test_modifier()
[all...]
/third_party/mesa3d/src/gallium/frontends/clover/api/
H A Dkernel.cpp267 validate_grid_size(const command_queue &q, cl_uint dims, in validate_grid_size() argument
269 auto grid_size = range(d_grid_size, dims); in validate_grid_size()
271 if (dims < 1 || dims > q.device().max_block_size().size()) in validate_grid_size()
278 validate_grid_offset(const command_queue &q, cl_uint dims, in validate_grid_offset() argument
281 return range(d_grid_offset, dims); in validate_grid_offset()
283 return std::vector<size_t>(dims, 0); in validate_grid_offset()
288 cl_uint dims, const size_t *d_grid_size, in validate_block_size()
290 auto grid_size = range(d_grid_size, dims); in validate_block_size()
293 auto block_size = range(d_block_size, dims); in validate_block_size()
287 validate_block_size(const command_queue &q, const kernel &kern, cl_uint dims, const size_t *d_grid_size, const size_t *d_block_size) validate_block_size() argument
315 clEnqueueNDRangeKernel(cl_command_queue d_q, cl_kernel d_kern, cl_uint dims, const size_t *d_grid_offset, const size_t *d_grid_size, const size_t *d_block_size, cl_uint num_deps, const cl_event *d_deps, cl_event *rd_ev) clEnqueueNDRangeKernel() argument
[all...]
/third_party/ffmpeg/libavfilter/dnn/
H A Ddnn_backend_native_layer_conv2d.c118 int height = operands[input_operand_index].dims[1]; in dnn_execute_layer_conv2d_thread()
119 int width = operands[input_operand_index].dims[2]; in dnn_execute_layer_conv2d_thread()
120 int channel = operands[input_operand_index].dims[3]; in dnn_execute_layer_conv2d_thread()
200 int height = operands[input_operand_indexes[0]].dims[1]; in ff_dnn_execute_layer_conv2d()
201 int width = operands[input_operand_indexes[0]].dims[2]; in ff_dnn_execute_layer_conv2d()
206 output_operand->dims[0] = operands[input_operand_indexes[0]].dims[0]; in ff_dnn_execute_layer_conv2d()
207 output_operand->dims[1] = height - pad_size * 2; in ff_dnn_execute_layer_conv2d()
208 output_operand->dims[2] = width - pad_size * 2; in ff_dnn_execute_layer_conv2d()
209 output_operand->dims[ in ff_dnn_execute_layer_conv2d()
[all...]
H A Ddnn_backend_native.c86 av_assert0(oprd->dims[0] == 1); in get_input_native()
87 input->height = oprd->dims[1]; in get_input_native()
88 input->width = oprd->dims[2]; in get_input_native()
89 input->channels = oprd->dims[3]; in get_input_native()
271 oprd->dims[dim] = (int32_t)avio_rl32(model_file_context); in ff_dnn_load_model_native()
274 if (oprd->type == DOT_INPUT && oprd->dims[0] != 1) in ff_dnn_load_model_native()
345 oprd->dims[1] = task->in_frame->height; in execute_model_native()
346 oprd->dims[2] = task->in_frame->width; in execute_model_native()
362 input.height = oprd->dims[1]; in execute_model_native()
363 input.width = oprd->dims[ in execute_model_native()
[all...]
H A Ddnn_backend_native_layer_pad.c88 int number = operands[input_operand_index].dims[0]; in ff_dnn_execute_layer_pad()
89 int height = operands[input_operand_index].dims[1]; in ff_dnn_execute_layer_pad()
90 int width = operands[input_operand_index].dims[2]; in ff_dnn_execute_layer_pad()
91 int channel = operands[input_operand_index].dims[3]; in ff_dnn_execute_layer_pad()
108 output_operand->dims[0] = new_number; in ff_dnn_execute_layer_pad()
109 output_operand->dims[1] = new_height; in ff_dnn_execute_layer_pad()
110 output_operand->dims[2] = new_width; in ff_dnn_execute_layer_pad()
111 output_operand->dims[3] = new_channel; in ff_dnn_execute_layer_pad()
/third_party/mesa3d/src/intel/compiler/
H A Dbrw_vec4_surface_builder.h35 unsigned dims, unsigned size,
41 unsigned dims, unsigned size,
48 unsigned dims, unsigned rsize, unsigned op,
/third_party/skia/bench/
H A DMSKPBench.cpp38 auto dims = fPlayer->maxDimensions(); in onGetSize() local
39 return {dims.width(), dims.height()}; in onGetSize()
/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_cb_texture.h70 void st_TexSubImage(struct gl_context *ctx, GLuint dims,
76 void st_TexImage(struct gl_context * ctx, GLuint dims,
80 void st_CompressedTexSubImage(struct gl_context *ctx, GLuint dims,
85 void st_CompressedTexImage(struct gl_context *ctx, GLuint dims,
93 void st_CopyTexSubImage(struct gl_context *ctx, GLuint dims,
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_sample.c352 const unsigned dims = bld->dims; in lp_build_rho() local
366 boolean no_rho_opt = bld->no_rho_approx && (dims > 1); in lp_build_rho()
408 for (i = 0; i < dims; i++) { in lp_build_rho()
436 if (dims > 2) { in lp_build_rho()
445 if (dims > 1) { in lp_build_rho()
447 if (dims > 2) { in lp_build_rho()
483 if (dims < 2) { in lp_build_rho()
486 else if (dims >= 2) { in lp_build_rho()
488 if (dims > in lp_build_rho()
1362 const unsigned dims = bld->dims; lp_build_mipmap_level_sizes() local
1490 const unsigned dims = bld->dims; lp_build_extract_image_sizes() local
1559 const unsigned dims = bld->dims; lp_build_unnormalized_coords() local
[all...]
/third_party/skia/tests/
H A DNdkDecodeTest.cpp244 for (SkISize dims : { in DEF_TEST()
248 auto info = gen->getInfo().makeDimensions(dims); in DEF_TEST()
269 for (SkISize dims : { in DEF_TEST()
277 auto info = gen->getInfo().makeDimensions(dims); in DEF_TEST()
307 for (SkISize dims : rec.fSupportedSizes) { in DEF_TEST()
308 auto info = gen->getInfo().makeDimensions(dims); in DEF_TEST()
312 ERRORF(r, "failed to decode %s to {%i,%i}\n", rec.fPath, dims.width(), in DEF_TEST()
313 dims.height()); in DEF_TEST()
362 for (SkISize dims : { in DEF_TEST()
369 auto info = gen->getInfo().makeDimensions(dims); in DEF_TEST()
[all...]
H A DProxyTest.cpp127 SkISize dims = {widthHeight, widthHeight}; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
139 dims, format, GrTextureType::k2D, GrRenderable::kYes, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
143 dims, format, GrTextureType::k2D, GrRenderable::kYes, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
148 format, dims, GrRenderable::kYes, numSamples, GrMipmapped::kNo, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
175 dims, format, GrTextureType::k2D, GrRenderable::kNo, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
179 dims, format, GrTextureType::k2D, GrRenderable::kNo, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
184 format, dims, GrRenderable::kNo, numSamples, GrMipmapped::kNo, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/third_party/skia/src/gpu/ops/
H A DLatticeOp.cpp469 SkISize dims;
470 dims.fWidth = random->nextRangeU(1, 1000);
471 dims.fHeight = random->nextRangeU(1, 1000);
479 dims,
489 subset.fLeft = random->nextULessThan(dims.fWidth);
490 subset.fRight = random->nextRangeU(subset.fLeft + 1, dims.fWidth);
491 subset.fTop = random->nextULessThan(dims.fHeight);
492 subset.fBottom = random->nextRangeU(subset.fTop + 1, dims.fHeight);
494 subset.setXYWH(0, 0, dims.fWidth, dims
[all...]
/third_party/ffmpeg/libavfilter/tests/
H A Ddnn-layer-mathunary.c85 operands[0].dims[0] = 1; in test()
86 operands[0].dims[1] = 1; in test()
87 operands[0].dims[2] = 3; in test()
88 operands[0].dims[3] = 3; in test()
/third_party/skia/src/gpu/
H A DGrTextureRenderTargetProxy.cpp153 SkISize dims; in callbackDesc() local
157 dims = {-1, -1}; in callbackDesc()
160 dims = this->dimensions(); in callbackDesc()
163 dims, in callbackDesc()
H A DGrTextureProxy.cpp211 SkISize dims; in callbackDesc() local
215 dims = {-1, -1}; in callbackDesc()
218 dims = this->dimensions(); in callbackDesc()
221 dims, in callbackDesc()
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/
H A Dintel_fb.c1334 struct fb_plane_view_dims *dims) in init_plane_view_dims()
1336 dims->width = width; in init_plane_view_dims()
1337 dims->height = height; in init_plane_view_dims()
1339 intel_tile_dims(&fb->base, color_plane, &dims->tile_width, &dims->tile_height); in init_plane_view_dims()
1344 const struct fb_plane_view_dims *dims) in plane_view_src_stride_tiles()
1347 dims->tile_width * fb->base.format->cpp[color_plane]); in plane_view_src_stride_tiles()
1384 const struct fb_plane_view_dims *dims, in plane_view_width_tiles()
1387 return DIV_ROUND_UP(x + dims->width, dims in plane_view_width_tiles()
1332 init_plane_view_dims(const struct intel_framebuffer *fb, int color_plane, unsigned int width, unsigned int height, struct fb_plane_view_dims *dims) init_plane_view_dims() argument
1343 plane_view_src_stride_tiles(const struct intel_framebuffer *fb, int color_plane, const struct fb_plane_view_dims *dims) plane_view_src_stride_tiles() argument
1383 plane_view_width_tiles(const struct intel_framebuffer *fb, int color_plane, const struct fb_plane_view_dims *dims, int x) plane_view_width_tiles() argument
1391 plane_view_height_tiles(const struct intel_framebuffer *fb, int color_plane, const struct fb_plane_view_dims *dims, int y) plane_view_height_tiles() argument
1399 plane_view_linear_tiles(const struct intel_framebuffer *fb, int color_plane, const struct fb_plane_view_dims *dims, int x, int y) plane_view_linear_tiles() argument
1423 calc_plane_remap_info(const struct intel_framebuffer *fb, int color_plane, const struct fb_plane_view_dims *dims, u32 obj_offset, u32 gtt_offset, int x, int y, struct intel_fb_view *view) calc_plane_remap_info() argument
1552 calc_plane_normal_size(const struct intel_framebuffer *fb, int color_plane, const struct fb_plane_view_dims *dims, int x, int y) calc_plane_normal_size() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_image.c707 int dims[4]) in sp_tgsi_get_dims()
722 dims[0] = iview->u.buf.size / util_format_get_blocksize(iview->format); in sp_tgsi_get_dims()
723 dims[1] = dims[2] = dims[3] = 0; in sp_tgsi_get_dims()
728 dims[0] = u_minify(spr->base.width0, level); in sp_tgsi_get_dims()
731 dims[1] = iview->u.tex.last_layer - iview->u.tex.first_layer + 1; in sp_tgsi_get_dims()
736 dims[2] = iview->u.tex.last_layer - iview->u.tex.first_layer + 1; in sp_tgsi_get_dims()
741 dims[1] = u_minify(spr->base.height0, level); in sp_tgsi_get_dims()
744 dims[ in sp_tgsi_get_dims()
705 sp_tgsi_get_dims(const struct tgsi_image *image, const struct tgsi_image_params *params, int dims[4]) sp_tgsi_get_dims() argument
[all...]
/third_party/mesa3d/src/mesa/main/
H A Dteximage.c1119 GLuint dims, in error_check_subtexture_negative_dimensions()
1131 if (dims > 1 && subHeight < 0) { in error_check_subtexture_negative_dimensions()
1136 if (dims > 2 && subDepth < 0) { in error_check_subtexture_negative_dimensions()
1151 error_check_subtexture_dimensions(struct gl_context *ctx, GLuint dims, in error_check_subtexture_dimensions() argument
1173 if (dims > 1) { in error_check_subtexture_dimensions()
1187 if (dims > 2) { in error_check_subtexture_dimensions()
1511 legal_teximage_target(struct gl_context *ctx, GLuint dims, GLenum target) in legal_teximage_target() argument
1513 switch (dims) { in legal_teximage_target()
1565 _mesa_problem(ctx, "invalid dims=%u in legal_teximage_target()", dims); in legal_teximage_target()
1118 error_check_subtexture_negative_dimensions(struct gl_context *ctx, GLuint dims, GLsizei subWidth, GLsizei subHeight, GLsizei subDepth, const char *func) error_check_subtexture_negative_dimensions() argument
1578 legal_texsubimage_target(struct gl_context *ctx, GLuint dims, GLenum target, bool dsa) legal_texsubimage_target() argument
2969 teximage(struct gl_context *ctx, GLboolean compressed, GLuint dims, struct gl_texture_object *texObj, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, GLsizei imageSize, const GLvoid *pixels, bool no_error) teximage() argument
3186 teximage_err(struct gl_context *ctx, GLboolean compressed, GLuint dims, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, GLsizei imageSize, const GLvoid *pixels) teximage_err() argument
3198 teximage_no_error(struct gl_context *ctx, GLboolean compressed, GLuint dims, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, GLsizei imageSize, const GLvoid *pixels) teximage_no_error() argument
3535 texture_sub_image(struct gl_context *ctx, GLuint dims, struct gl_texture_object *texObj, struct gl_texture_image *texImage, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels) texture_sub_image() argument
3584 texsubimage_err(struct gl_context *ctx, GLuint dims, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels, const char *callerName) texsubimage_err() argument
3629 texsubimage(struct gl_context *ctx, GLuint dims, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels) texsubimage() argument
3651 texturesubimage(struct gl_context *ctx, GLuint dims, GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels, const char *callerName, bool no_error, bool ext_dsa) texturesubimage() argument
3766 texturesubimage_error(struct gl_context *ctx, GLuint dims, GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels, const char *callerName, bool ext_dsa) texturesubimage_error() argument
3780 texturesubimage_no_error(struct gl_context *ctx, GLuint dims, GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels, const char *callerName, bool ext_dsa) texturesubimage_no_error() argument
4085 copytexsubimage_by_slice(struct gl_context *ctx, struct gl_texture_image *texImage, GLuint dims, GLint xoffset, GLint yoffset, GLint zoffset, struct gl_renderbuffer *rb, GLint x, GLint y, GLsizei width, GLsizei height) copytexsubimage_by_slice() argument
4167 copy_texture_sub_image(struct gl_context *ctx, GLuint dims, struct gl_texture_object *texObj, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height) copy_texture_sub_image() argument
4214 copy_texture_sub_image_err(struct gl_context *ctx, GLuint dims, struct gl_texture_object *texObj, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height, const char *caller) copy_texture_sub_image_err() argument
4245 copy_texture_sub_image_no_error(struct gl_context *ctx, GLuint dims, struct gl_texture_object *texObj, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height) copy_texture_sub_image_no_error() argument
4267 copyteximage(struct gl_context *ctx, GLuint dims, struct gl_texture_object *texObj, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border, bool no_error) copyteximage() argument
4441 copyteximage_err(struct gl_context *ctx, GLuint dims, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) copyteximage_err() argument
4452 copyteximage_no_error(struct gl_context *ctx, GLuint dims, GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) copyteximage_no_error() argument
5247 compressed_subtexture_target_check(struct gl_context *ctx, GLenum target, GLint dims, GLenum intFormat, bool dsa, const char *caller) compressed_subtexture_target_check() argument
5381 compressed_subtexture_error_check(struct gl_context *ctx, GLint dims, const struct gl_texture_object *texObj, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data, const char *callerName) compressed_subtexture_error_check() argument
5663 compressed_texture_sub_image(struct gl_context *ctx, GLuint dims, struct gl_texture_object *texObj, struct gl_texture_image *texImage, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data) compressed_texture_sub_image() argument
6716 check_multisample_target(GLuint dims, GLenum target, bool dsa) check_multisample_target() argument
6734 texture_image_multisample(struct gl_context *ctx, GLuint dims, struct gl_texture_object *texObj, struct gl_memory_object *memObj, GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations, GLboolean immutable, GLuint64 offset, const char *func) texture_image_multisample() argument
6949 valid_texstorage_ms_parameters(GLsizei width, GLsizei height, GLsizei depth, unsigned dims) valid_texstorage_ms_parameters() argument
7090 _mesa_texture_storage_ms_memory(struct gl_context *ctx, GLuint dims, struct gl_texture_object *texObj, struct gl_memory_object *memObj, GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint64 offset, const char* func) _mesa_texture_storage_ms_memory() argument
[all...]
H A Dtexstorage.h63 GLuint dims, GLenum target);
66 _mesa_texture_storage_memory(struct gl_context *ctx, GLuint dims,
H A Dtexcompress_bptc.c143 _mesa_texstore(ctx, dims, in _mesa_texstore_bptc_rgba_unorm()
192 _mesa_texstore(ctx, dims, in texstore_bptc_rgb_float()
224 return texstore_bptc_rgb_float(ctx, dims, baseInternalFormat, in _mesa_texstore_bptc_rgb_signed_float()
237 return texstore_bptc_rgb_float(ctx, dims, baseInternalFormat, in _mesa_texstore_bptc_rgb_unsigned_float()
/third_party/mesa3d/src/gallium/drivers/freedreno/ir3/
H A Dir3_const.h265 uint32_t dims[align(const_state->image_dims.count, 4)]; in ir3_emit_image_dims() local
277 dims[off + 0] = util_format_get_blocksize(img->format); in ir3_emit_image_dims()
285 dims[off + 1] = fd_resource_pitch(rsc, img->u.tex.level); in ir3_emit_image_dims()
288 dims[off + 2] = rsc->layout.layer_size; in ir3_emit_image_dims()
290 dims[off + 2] = slice->size0; in ir3_emit_image_dims()
301 dims[off + 1] = ffs(dims[off + 0]) - 1; in ir3_emit_image_dims()
304 uint32_t size = MIN2(ARRAY_SIZE(dims), v->constlen * 4 - offset * 4); in ir3_emit_image_dims()
306 emit_const_user(ring, v, offset * 4, size, dims); in ir3_emit_image_dims()
/third_party/mesa3d/src/panfrost/lib/
H A Dpan_indirect_dispatch.c117 nir_ssa_def *dims = nir_channel(&b, job_dim, 0); in pan_indirect_dispatch_init() local
128 dims = nir_ior(&b, dims, in pan_indirect_dispatch_init()
133 nir_store_global(&b, job_dim_ptr, 8, nir_vec2(&b, dims, split), 3); in pan_indirect_dispatch_init()

Completed in 21 milliseconds

123456