Home
last modified time | relevance | path

Searched refs:debug_assert (Results 1 – 25 of 65) sorted by relevance

123

/external/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_blitter.c121 debug_assert(info->dst.box.width >= 0); in can_do_blit()
122 debug_assert(info->dst.box.height >= 0); in can_do_blit()
123 debug_assert(info->dst.box.depth >= 0); in can_do_blit()
217 debug_assert(src->cpp == 1); in emit_blit_buffer()
218 debug_assert(dst->cpp == 1); in emit_blit_buffer()
219 debug_assert(info->src.resource->format == info->dst.resource->format); in emit_blit_buffer()
220 debug_assert((sbox->y == 0) && (sbox->height == 1)); in emit_blit_buffer()
221 debug_assert((dbox->y == 0) && (dbox->height == 1)); in emit_blit_buffer()
222 debug_assert((sbox->z == 0) && (sbox->depth == 1)); in emit_blit_buffer()
223 debug_assert((dbox->z == 0) && (dbox->depth == 1)); in emit_blit_buffer()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_debug_memory.c178 debug_assert(0); in debug_free()
187 debug_assert(0); in debug_free()
242 debug_assert(0); in debug_realloc()
251 debug_assert(0); in debug_realloc()
321 debug_assert(0); in debug_memory_end()
339 debug_assert(0); in debug_memory_end()
368 debug_assert(0); in debug_memory_tag()
393 debug_assert(0); in debug_memory_check_block()
399 debug_assert(0); in debug_memory_check_block()
427 debug_assert(0); in debug_memory_check()
[all …]
Du_debug.h189 #define debug_assert(expr) ((expr) ? (void)0 : _debug_assert_fail(#expr, __FILE__, __LINE__, __FUNC… macro
191 #define debug_assert(expr) (void)(0 && (expr)) macro
199 #define assert(expr) debug_assert(expr)
/external/mesa3d/src/gallium/drivers/freedreno/ir3/
Dir3_sched.c82 debug_assert(ctx->block == instr->block); in schedule()
96 debug_assert(ctx->addr == NULL); in schedule()
101 debug_assert(ctx->pred == NULL); in schedule()
277 debug_assert(ctx->addr != instr); in check_instr()
283 debug_assert(ctx->pred != instr); in check_instr()
346 debug_assert(nsrcs < ARRAY_SIZE(srcs)); in find_instr_recursive()
423 debug_assert(ctx->addr); in split_addr()
467 debug_assert(ctx->pred); in split_pred()
545 debug_assert(delay <= 6); in sched_block()
565 debug_assert(0); in sched_block()
[all …]
Dir3_ra.c354 debug_assert(0); in size_to_class()
520 debug_assert(instr_before(dd, d)); in get_definer()
524 debug_assert(instr->opc == OPC_META_FO); in get_definer()
637 debug_assert(cls >= 0); in __ra_name()
638 debug_assert(cls < total_class_count); /* we shouldn't get arrays here.. */ in __ra_name()
640 debug_assert(name < ctx->alloc_count); in __ra_name()
729 debug_assert(!(dst->flags & IR3_REG_PHI_SRC)); in ra_block_compute_live_ranges()
761 debug_assert(!BITSET_TEST(bd->use, name)); in ra_block_compute_live_ranges()
815 debug_assert(reg->array.offset < arr->length); in ra_block_compute_live_ranges()
1037 debug_assert(!(reg->flags & IR3_REG_RELATIV)); in reg_assign()
Dir3_group.c64 debug_assert(instr->regs_count == 1); in arr_insert_mov_in()
165 debug_assert(!conflicts(instr->cp.left, left)); in group_n()
171 debug_assert(!conflicts(instr->cp.right, right)); in group_n()
Dir3_cp.c346 debug_assert(!(reg->flags & IR3_REG_ARRAY)); in reg_cp()
368 debug_assert(new_flags & IR3_REG_IMMED); in reg_cp()
450 debug_assert((opc_cat(instr->opc) == 1) || in reg_cp()
493 debug_assert(src_instr); in eliminate_output_mov()
Dir3_shader.c99 debug_assert(v->info.max_reg >= 0); /* hard coded r0.x */ in fixup_regfootprint()
101 debug_assert(v->info.max_half_reg >= 0); /* hr0.x */ in fixup_regfootprint()
303 debug_assert(cso->type == PIPE_SHADER_IR_TGSI); in ir3_shader_create()
352 debug_assert(cso->ir_type == PIPE_SHADER_IR_TGSI); in ir3_shader_create_compute()
798 debug_assert(v->type == SHADER_VERTEX); in ir3_emit_vs_consts()
884 debug_assert(v->type == SHADER_FRAGMENT); in ir3_emit_fs_consts()
894 debug_assert(v->type == SHADER_COMPUTE); in ir3_emit_cs_consts()
Dir3.h378 debug_assert(0); in ir3_neighbor_first()
389 debug_assert(!instr->cp.left); in ir3_neighbor_count()
395 debug_assert(0); in ir3_neighbor_count()
757 debug_assert(!(reg->instr && (reg->instr->flags & IR3_INSTR_UNUSED))); in ssa()
1023 debug_assert(!(src->regs[0]->flags & IR3_REG_RELATIV)); in ir3_MOV()
1038 debug_assert(!(src->regs[0]->flags & IR3_REG_ARRAY)); in ir3_COV()
1299 debug_assert(num < MAX_REG); in regmask_idx()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_context.c380 debug_assert(start_slot < PIPE_MAX_VIEWPORTS); in draw_set_viewport_states()
381 debug_assert((start_slot + num_viewports) <= PIPE_MAX_VIEWPORTS); in draw_set_viewport_states()
447 debug_assert(shader_type == PIPE_SHADER_VERTEX || in draw_set_mapped_constant_buffer()
449 debug_assert(slot < PIPE_MAX_CONSTANT_BUFFERS); in draw_set_mapped_constant_buffer()
728 debug_assert(shader == PIPE_SHADER_GEOMETRY); in draw_texture_sampler()
746 debug_assert(shader == PIPE_SHADER_GEOMETRY); in draw_image()
764 debug_assert(shader == PIPE_SHADER_GEOMETRY); in draw_buffer()
888 debug_assert(index < PIPE_MAX_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT); in draw_current_shader_ccdistance_output()
969 debug_assert(shader_stage < PIPE_SHADER_TYPES); in draw_set_sampler_views()
970 debug_assert(num <= PIPE_MAX_SHADER_SAMPLER_VIEWS); in draw_set_sampler_views()
[all …]
Ddraw_gs_tmp.h15 debug_assert(input_prims->primitive_count == 1); \
20 debug_assert(!"unexpected primitive type in GS"); \
Ddraw_gs.c324 debug_assert(current_verts <= shader->max_output_vertices); in llvm_fetch_gs_outputs()
325 debug_assert(next_verts <= shader->max_output_vertices); in llvm_fetch_gs_outputs()
406 debug_assert(input_primitives > 0 && in gs_flush()
569 debug_assert(output_verts->verts); in draw_geometry_shader_run()
644 debug_assert(shader->fetched_prim_count == 0); in draw_geometry_shader_run()
804 debug_assert(gs->info.output_semantic_index[i] < in draw_create_geometry_shader()
Ddraw_llvm_sample.c98 debug_assert(texture_unit < PIPE_MAX_SHADER_SAMPLER_VIEWS); in draw_llvm_texture_member()
144 debug_assert(sampler_unit < PIPE_MAX_SAMPLERS); in draw_llvm_sampler_member()
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_batch.c135 debug_assert(!batch->binning); in batch_fini()
136 debug_assert(!batch->gmem); in batch_fini()
184 debug_assert(rsc->batch_mask & (1 << batch->idx)); in batch_reset_resources_locked()
234 debug_assert(batch->resources->entries == 0); in __fd_batch_destroy()
238 debug_assert(batch->dependents_mask == 0); in __fd_batch_destroy()
311 debug_assert(batch->reference.count > 0); in batch_flush()
433 debug_assert(!_mesa_set_search(batch->resources, rsc)); in fd_batch_resource_used()
Dfreedreno_util.h225 debug_assert(offset < fd_bo_size(bo)); in OUT_RELOC()
244 debug_assert(offset < fd_bo_size(bo)); in OUT_RELOCW()
272 debug_assert(__gpu_id(ring) < 500); in OUT_PKT0()
280 debug_assert(__gpu_id(ring) < 500); in OUT_PKT2()
288 debug_assert(__gpu_id(ring) < 500); in OUT_PKT3()
348 debug_assert(__gpu_id(ring) < 500); in __OUT_IB()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_arit_overflow.c74 debug_assert(LLVMTypeOf(a) == LLVMTypeOf(b)); in build_binary_int_overflow()
78 debug_assert(type_kind == LLVMIntegerTypeKind); in build_binary_int_overflow()
81 debug_assert(type_width == 16 || type_width == 32 || type_width == 64); in build_binary_int_overflow()
/external/flatbuffers/rust/flatbuffers/src/
Dvector.rs48 debug_assert!(idx < read_scalar::<u32>(&self.0[self.1 as usize..]) as usize); in get()
50 debug_assert!(sz > 0); in get()
61 debug_assert!(sz > 0); in safe_slice()
109 debug_assert!(sz > 0); in follow_slice_helper()
Dbuilder.rs421 debug_assert!(table_object_size < 0x10000); // vTable use 16bit offsets. in write_vtable()
607debug_assert!(self.nested, format!("incorrect FlatBufferBuilder usage: {} must be called while in … in assert_nested()
611 debug_assert!(!self.nested, msg); in assert_not_nested()
615 debug_assert!(self.finished, msg); in assert_finished()
619 debug_assert!(!self.finished, msg); in assert_not_finished()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_state_clip.c74 debug_assert(start_slot < PIPE_MAX_VIEWPORTS); in softpipe_set_scissor_states()
75 debug_assert((start_slot + num_scissors) <= PIPE_MAX_VIEWPORTS); in softpipe_set_scissor_states()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_clip.c74 debug_assert(start_slot < PIPE_MAX_VIEWPORTS); in llvmpipe_set_scissor_states()
75 debug_assert((start_slot + num_scissors) <= PIPE_MAX_VIEWPORTS); in llvmpipe_set_scissor_states()
/external/virglrenderer/src/gallium/auxiliary/util/
Du_debug.h183 #define debug_assert(expr) ((expr) ? (void)0 : _debug_assert_fail(#expr, __FILE__, __LINE__, __FUNC… macro
185 #define debug_assert(expr) (void)(0 && (expr)) macro
193 #define assert(expr) debug_assert(expr)
/external/mesa3d/src/mesa/state_tracker/
Dst_mesa_to_tgsi.c107 debug_assert(0); in dst_register()
158 debug_assert(0); in src_register()
217 debug_assert(!"unexpected texture target index"); in st_translate_texture_target()
430 debug_assert(0); in emit_swz()
504 debug_assert(0); in translate_opcode()
904 debug_assert(0); in st_translate_mesa_program()
948 debug_assert(program->arb.NumAddressRegs == 1); in st_translate_mesa_program()
/external/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_query.c59 debug_assert((samp->offset & 0x3) == 0); in occlusion_get_sample()
137 debug_assert(batch->ctx->screen->max_freq > 0); in time_elapsed_get_sample()
Dfd4_emit.c60 debug_assert((regid % 4) == 0); in fd4_emit_const()
61 debug_assert((sizedwords % 4) == 0); in fd4_emit_const()
97 debug_assert((regid % 4) == 0); in fd4_emit_const_bo()
213 debug_assert(view->texconst0 & A4XX_TEX_CONST_0_SRGB); in emit_textures()
230 debug_assert(v->astc_srgb.count == 0); in emit_textures()
320 debug_assert(bufs[i]->u.tex.first_layer == bufs[i]->u.tex.last_layer); in fd4_emit_gmem_restore_tex()
419 debug_assert(fmt != ~0); in fd4_emit_vertex_bufs()
/external/mesa3d/src/gallium/state_trackers/xa/
Dxa_tgsi.c282 debug_assert((is_fill ^ is_composite) ^ is_yuv); in create_vs()
477 debug_assert((is_fill ^ is_composite) ^ is_yuv); in create_fs()
504 debug_assert(is_yuv); in create_fs()
564 debug_assert(!"Unknown fill type!"); in create_fs()
670 debug_assert(vs && fs); in xa_shaders_get()

123