| /xsrc/external/mit/libdrm/dist/ |
| xf86drmRandom.c | 85 RandomState *state; local 87 state = drmMalloc(sizeof(*state)); 88 if (!state) return NULL; 89 state->magic = RANDOM_MAGIC; 92 state->a = 16807; 93 state->m = 2147483647; 94 state->check = 1043618065; /* After 10000 iterations */ 97 state->a = 48271; 98 state->m = 2147483647 [all...] |
| /xsrc/external/mit/freetype/dist/src/lzw/ |
| ftzopen.c | 29 ft_lzwstate_refill( FT_LzwState state ) 34 if ( state->in_eof ) 37 count = FT_Stream_TryRead( state->source, 38 state->buf_tab, 39 state->num_bits ); /* WHY? */ 41 state->buf_size = (FT_UInt)count; 42 state->buf_total += count; 43 state->in_eof = FT_BOOL( count < state->num_bits ); 44 state->buf_offset = 0 [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/driver_trace/ |
| tr_dump_state.h | 39 void trace_dump_rasterizer_state(const struct pipe_rasterizer_state *state); 41 void trace_dump_poly_stipple(const struct pipe_poly_stipple *state); 43 void trace_dump_viewport_state(const struct pipe_viewport_state *state); 45 void trace_dump_scissor_state(const struct pipe_scissor_state *state); 47 void trace_dump_clip_state(const struct pipe_clip_state *state); 51 void trace_dump_shader_state(const struct pipe_shader_state *state); 53 void trace_dump_compute_state(const struct pipe_compute_state *state); 55 void trace_dump_depth_stencil_alpha_state(const struct pipe_depth_stencil_alpha_state *state); 57 void trace_dump_blend_state(const struct pipe_blend_state *state); 59 void trace_dump_blend_color(const struct pipe_blend_color *state); [all...] |
| tr_dump_state.c | 104 void trace_dump_rasterizer_state(const struct pipe_rasterizer_state *state) 109 if (!state) { 116 trace_dump_member(bool, state, flatshade); 117 trace_dump_member(bool, state, light_twoside); 118 trace_dump_member(bool, state, clamp_vertex_color); 119 trace_dump_member(bool, state, clamp_fragment_color); 120 trace_dump_member(uint, state, front_ccw); 121 trace_dump_member(uint, state, cull_face); 122 trace_dump_member(uint, state, fill_front); 123 trace_dump_member(uint, state, fill_back) [all...] |
| /xsrc/external/mit/MesaLib/dist/src/imgui/ |
| imstb_textedit.h | 14 // selection state, and undo state. 79 // state of a text widget (except for the string, which you will store 179 // be a bitflag, so we can test the shifted state of cursor movements to allow selection, 197 // Each textfield keeps its own insert mode state, which is not how normal 203 // void stb_textedit_initialize_state(STB_TexteditState *state, int is_single_line) 205 // void stb_textedit_click(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) 206 // void stb_textedit_drag(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) 207 // int stb_textedit_cut(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) 208 // int stb_textedit_paste(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE *text, int len [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/imgui/ |
| imstb_textedit.h | 14 // selection state, and undo state. 79 // state of a text widget (except for the string, which you will store 179 // be a bitflag, so we can test the shifted state of cursor movements to allow selection, 197 // Each textfield keeps its own insert mode state, which is not how normal 203 // void stb_textedit_initialize_state(STB_TexteditState *state, int is_single_line) 205 // void stb_textedit_click(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) 206 // void stb_textedit_drag(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) 207 // int stb_textedit_cut(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) 208 // int stb_textedit_paste(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE *text, int len [all...] |
| /xsrc/external/mit/MesaLib/dist/src/freedreno/ir3/ |
| ir3_nir_move_varying_inputs.c | 56 } state; typedef in typeref:struct:__anon972 58 static void check_precondition_instr(precond_state *state, nir_instr *instr); 59 static void move_instruction_to_start_block(state *state, nir_instr *instr); 62 check_precondition_src(nir_src *src, void *state) 64 check_precondition_instr(state, src->ssa->parent_instr); 72 check_precondition_instr(precond_state *state, nir_instr *instr) 74 if (instr->block == state->start_block) 87 state->precondition_failed = true; 93 state->precondition_failed = true 190 precond_state state; local 210 state state; local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/driver_trace/ |
| tr_dump_state.h | 39 void trace_dump_rasterizer_state(const struct pipe_rasterizer_state *state); 41 void trace_dump_poly_stipple(const struct pipe_poly_stipple *state); 43 void trace_dump_viewport_state(const struct pipe_viewport_state *state); 45 void trace_dump_scissor_state(const struct pipe_scissor_state *state); 47 void trace_dump_clip_state(const struct pipe_clip_state *state); 51 void trace_dump_shader_state(const struct pipe_shader_state *state); 53 void trace_dump_compute_state(const struct pipe_compute_state *state); 55 void trace_dump_depth_stencil_alpha_state(const struct pipe_depth_stencil_alpha_state *state); 57 void trace_dump_blend_state(const struct pipe_blend_state *state); 59 void trace_dump_blend_color(const struct pipe_blend_color *state); [all...] |
| tr_dump_state.c | 104 void trace_dump_rasterizer_state(const struct pipe_rasterizer_state *state) 109 if (!state) { 116 trace_dump_member(bool, state, flatshade); 117 trace_dump_member(bool, state, light_twoside); 118 trace_dump_member(bool, state, clamp_vertex_color); 119 trace_dump_member(bool, state, clamp_fragment_color); 120 trace_dump_member(uint, state, front_ccw); 121 trace_dump_member(uint, state, cull_face); 122 trace_dump_member(uint, state, fill_front); 123 trace_dump_member(uint, state, fill_back) [all...] |
| /xsrc/external/mit/MesaLib/dist/src/broadcom/compiler/ |
| qpu_validate.c | 57 fail_instr(struct v3d_qpu_validate_state *state, const char *msg) 59 struct v3d_compile *c = state->c; 61 fprintf(stderr, "v3d_qpu_validate at ip %d: %s:\n", state->ip, msg); 67 if (dump_ip++ == state->ip) 78 in_branch_delay_slots(struct v3d_qpu_validate_state *state) 80 return (state->ip - state->last_branch_ip) < 3; 84 in_thrsw_delay_slots(struct v3d_qpu_validate_state *state) 86 return (state->ip - state->last_thrsw_ip) < 3 319 struct v3d_qpu_validate_state state = { local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/mesa/program/ |
| program_parse_extra.c | 37 _mesa_parse_instruction_suffix(const struct asm_parser_state *state, 46 if (state->mode == ARB_fragment) { 60 _mesa_ARBvp_parse_option(struct asm_parser_state *state, const char *option) 63 state->option.PositionInvariant = 1; 72 _mesa_ARBfp_parse_option(struct asm_parser_state *state, const char *option) 100 if (state->option.Fog == OPTION_NONE) { 101 state->option.Fog = fog_option; 124 return state->option.Fog == fog_option ? 1 : 0; 137 state->option.PrecisionHint != OPTION_FASTEST) { 138 state->option.PrecisionHint = OPTION_NICEST [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/program/ |
| program_parse_extra.c | 37 _mesa_parse_instruction_suffix(const struct asm_parser_state *state, 46 if (state->mode == ARB_fragment) { 60 _mesa_ARBvp_parse_option(struct asm_parser_state *state, const char *option) 63 state->option.PositionInvariant = 1; 72 _mesa_ARBfp_parse_option(struct asm_parser_state *state, const char *option) 100 if (state->option.Fog == OPTION_NONE) { 101 state->option.Fog = fog_option; 124 return state->option.Fog == fog_option ? 1 : 0; 137 state->option.PrecisionHint != OPTION_FASTEST) { 138 state->option.PrecisionHint = OPTION_NICEST [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300/ |
| r300_emit.h | 37 unsigned size, void* state); 40 unsigned size, void* state); 43 unsigned size, void* state); 46 unsigned size, void* state); 49 unsigned size, void *state); 53 void r300_emit_fs(struct r300_context* r300, unsigned size, void *state); 55 void r300_emit_fs_constants(struct r300_context* r300, unsigned size, void *state); 57 void r300_emit_fs_rc_constant_state(struct r300_context* r300, unsigned size, void *state); 59 void r500_emit_fs(struct r300_context* r300, unsigned size, void *state); 61 void r500_emit_fs_constants(struct r300_context* r300, unsigned size, void *state); [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r300/ |
| r300_emit.h | 37 unsigned size, void* state); 40 unsigned size, void* state); 43 unsigned size, void* state); 46 unsigned size, void* state); 49 unsigned size, void *state); 53 void r300_emit_fs(struct r300_context* r300, unsigned size, void *state); 55 void r300_emit_fs_constants(struct r300_context* r300, unsigned size, void *state); 57 void r300_emit_fs_rc_constant_state(struct r300_context* r300, unsigned size, void *state); 59 void r500_emit_fs(struct r300_context* r300, unsigned size, void *state); 61 void r500_emit_fs_constants(struct r300_context* r300, unsigned size, void *state); [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/broadcom/compiler/ |
| qpu_validate.c | 57 fail_instr(struct v3d_qpu_validate_state *state, const char *msg) 59 struct v3d_compile *c = state->c; 61 fprintf(stderr, "v3d_qpu_validate at ip %d: %s:\n", state->ip, msg); 67 if (dump_ip++ == state->ip) 78 in_branch_delay_slots(struct v3d_qpu_validate_state *state) 80 return (state->ip - state->last_branch_ip) < 3; 84 in_thrsw_delay_slots(struct v3d_qpu_validate_state *state) 86 return (state->ip - state->last_thrsw_ip) < 3 305 struct v3d_qpu_validate_state state = { local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/compiler/nir/ |
| nir_validate.c | 42 * Per-register validation state. 57 /* map of register -> validation state (struct above) */ 108 log_error(validate_state *state, const char *cond, const char *file, int line) 112 if (state->instr) 113 obj = state->instr; 114 else if (state->var) 115 obj = state->var; 119 char *msg = ralloc_asprintf(state->errors, "error: %s (%s:%d)", 122 _mesa_hash_table_insert(state->errors, obj, msg); 126 validate_assert_impl(validate_state *state, bool cond, const char *str 1082 validate_alu_instr(nir_instr_as_alu(instr), state); local 1086 validate_deref_instr(nir_instr_as_deref(instr), state); local 1090 validate_call_instr(nir_instr_as_call(instr), state); local 1094 validate_intrinsic_instr(nir_instr_as_intrinsic(instr), state); local 1098 validate_tex_instr(nir_instr_as_tex(instr), state); local 1102 validate_load_const_instr(nir_instr_as_load_const(instr), state); local 1106 validate_phi_instr(nir_instr_as_phi(instr), state); local 1110 validate_ssa_undef_instr(nir_instr_as_ssa_undef(instr), state); local 1114 validate_jump_instr(nir_instr_as_jump(instr), state); local 1153 validate_phi_src(nir_instr_as_phi(instr), block, state); local 1188 collect_blocks(&nir_cf_node_as_if(node)->else_list, state); local 1389 validate_block(nir_cf_node_as_block(node), state); local 1393 validate_if(nir_cf_node_as_if(node), state); local 1397 validate_loop(nir_cf_node_as_loop(node), state); local 1536 validate_state *state = _state; local 1548 validate_state *state = _state; local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/freedreno/ir3/ |
| ir3_nir_move_varying_inputs.c | 46 } state; typedef in typeref:struct:__anon3497 48 static void move_instruction_to_start_block(state *state, nir_instr *instr); 51 move_src(nir_src *src, void *state) 55 move_instruction_to_start_block(state, src->ssa->parent_instr); 60 move_instruction_to_start_block(state *state, nir_instr *instr) 65 nir_foreach_src(instr, move_src, state); 71 if (state->cursor) { 72 exec_node_insert_after(&state->cursor->node, &instr->node) 120 state state; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/ |
| si_pm4.c | 30 static void si_pm4_cmd_begin(struct si_pm4_state *state, unsigned opcode) 32 assert(state->ndw < SI_PM4_MAX_DW); 33 state->last_opcode = opcode; 34 state->last_pm4 = state->ndw++; 37 void si_pm4_cmd_add(struct si_pm4_state *state, uint32_t dw) 39 assert(state->ndw < SI_PM4_MAX_DW); 40 state->pm4[state->ndw++] = dw; 41 state->last_opcode = -1 140 struct si_pm4_state *state = sctx->emitted.array[i]; local [all...] |
| /xsrc/external/mit/libX11/dist/src/xlibi18n/ |
| lcRM.c | 47 /* Sets the state to the initial state. 51 XPointer state) 59 XPointer state, 70 XPointer state) 74 /* Returns the name of the state's locale, as a static string. */ 77 XPointer state) 79 return ((UbState) state)->lcd->core->name; 82 /* Frees the state, which was allocated by _XrmDefaultInitParseInfo. */ 85 XPointer state) 200 UbState state = Xmalloc(sizeof(UbStateRec)); local 210 MbState state = Xmalloc(sizeof(MbStateRec)); local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/ |
| u_dump_state.c | 303 util_dump_resource(FILE *stream, const struct pipe_resource *state) 305 if (!state) { 312 util_dump_member(stream, enum_tex_target, state, target); 313 util_dump_member(stream, format, state, format); 315 util_dump_member(stream, uint, state, width0); 316 util_dump_member(stream, uint, state, height0); 317 util_dump_member(stream, uint, state, depth0); 318 util_dump_member(stream, uint, state, array_size); 320 util_dump_member(stream, uint, state, last_level); 321 util_dump_member(stream, uint, state, nr_samples) [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/util/ |
| u_dump_state.c | 303 util_dump_resource(FILE *stream, const struct pipe_resource *state) 305 if (!state) { 312 util_dump_member(stream, enum_tex_target, state, target); 313 util_dump_member(stream, format, state, format); 315 util_dump_member(stream, uint, state, width0); 316 util_dump_member(stream, uint, state, height0); 317 util_dump_member(stream, uint, state, depth0); 318 util_dump_member(stream, uint, state, array_size); 320 util_dump_member(stream, uint, state, last_level); 321 util_dump_member(stream, uint, state, nr_samples) [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/ |
| nir_validate.c | 42 * Per-register validation state. 64 /* map of register -> validation state (struct above) */ 110 log_error(validate_state *state, const char *cond, const char *file, int line) 114 if (state->instr) 115 obj = state->instr; 116 else if (state->var) 117 obj = state->var; 121 char *msg = ralloc_asprintf(state->errors, "error: %s (%s:%d)", 124 _mesa_hash_table_insert(state->errors, obj, msg); 127 #define validate_assert(state, cond) do { 693 validate_alu_instr(nir_instr_as_alu(instr), state); local 697 validate_deref_instr(nir_instr_as_deref(instr), state); local 701 validate_call_instr(nir_instr_as_call(instr), state); local 705 validate_intrinsic_instr(nir_instr_as_intrinsic(instr), state); local 709 validate_tex_instr(nir_instr_as_tex(instr), state); local 713 validate_load_const_instr(nir_instr_as_load_const(instr), state); local 717 validate_phi_instr(nir_instr_as_phi(instr), state); local 721 validate_ssa_undef_instr(nir_instr_as_ssa_undef(instr), state); local 763 validate_phi_src(nir_instr_as_phi(instr), block, state); local 950 validate_block(nir_cf_node_as_block(node), state); local 954 validate_if(nir_cf_node_as_if(node), state); local 958 validate_loop(nir_cf_node_as_loop(node), state); local 1082 validate_state *state = void_state; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/ |
| lp_state_gs.c | 47 struct lp_geometry_shader *state; local 49 state = CALLOC_STRUCT(lp_geometry_shader); 50 if (!state) 55 debug_printf("llvmpipe: Create geometry shader %p:\n", (void *)state); 61 state->no_tokens = !templ->tokens; 63 state->no_tokens = FALSE; 64 memcpy(&state->stream_output, &templ->stream_output, sizeof state->stream_output); 67 state->dgs = draw_create_geometry_shader(llvmpipe->draw, templ); 68 if (state->dgs == NULL) 101 struct lp_geometry_shader *state = local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/intel/vulkan/tests/ |
| state_pool_padding.c | 45 /* Grab a state that is the size of the initial allocation */ 46 struct anv_state state = anv_state_pool_alloc(&state_pool, pool_size, 16); local 51 /* And the state must have been allocated at the end of the original size */ 52 assert(state.offset == pool_size); 57 state = anv_state_pool_alloc(&state_pool, 4096, 16); 58 assert(state.offset + state.alloc_size <= pool_size); 64 state = anv_state_pool_alloc(&state_pool, 4096, 16); 65 assert(state.offset + state.alloc_size <= pool_size) [all...] |
| /xsrc/external/mit/freetype/dist/src/gzip/ |
| inflate.c | 29 /* inflate private state */ 49 *blocks; /* current inflate_blocks state */ 57 if (z == Z_NULL || z->state == Z_NULL) 61 z->state->mode = z->state->nowrap ? BLOCKS : METHOD; 62 inflate_blocks_reset(z->state->blocks, z, Z_NULL); 71 if (z == Z_NULL || z->state == Z_NULL || z->zfree == Z_NULL) 73 if (z->state->blocks != Z_NULL) 74 inflate_blocks_free(z->state->blocks, z); 75 ZFREE(z, z->state); [all...] |