/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fNegativeBufferApiTests.cpp | 45 void bind_buffer (NegativeTestContext& ctx) in bind_buffer() argument 47 ctx.beginSection("GL_INVALID_ENUM is generated if target is not one of the allowable values."); in bind_buffer() 48 ctx.glBindBuffer(-1, 0); in bind_buffer() 49 ctx.expectError(GL_INVALID_ENUM); in bind_buffer() 50 ctx.endSection(); in bind_buffer() 53 void delete_buffers (NegativeTestContext& ctx) in delete_buffers() argument 55 ctx.beginSection("GL_INVALID_VALUE is generated if n is negative."); in delete_buffers() 56 ctx.glDeleteBuffers(-1, 0); in delete_buffers() 57 ctx.expectError(GL_INVALID_VALUE); in delete_buffers() 58 ctx.endSection(); in delete_buffers() [all …]
|
D | es31fNegativeTextureApiTests.cpp | 78 static bool supportsES32orGL45(NegativeTestContext& ctx) in supportsES32orGL45() argument 80 return contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)) || in supportsES32orGL45() 81 contextSupports(ctx.getRenderContext().getType(), glu::ApiType::core(4, 5)); in supportsES32orGL45() 97 void activetexture (NegativeTestContext& ctx) in activetexture() argument 99 …ctx.beginSection("GL_INVALID_ENUM is generated if texture is not one of GL_TEXTUREi, where i range… in activetexture() 100 ctx.glActiveTexture(-1); in activetexture() 101 ctx.expectError(GL_INVALID_ENUM); in activetexture() 102 int numMaxTextureUnits = ctx.getInteger(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS); in activetexture() 103 ctx.glActiveTexture(GL_TEXTURE0 + numMaxTextureUnits); in activetexture() 104 ctx.expectError(GL_INVALID_ENUM); in activetexture() [all …]
|
D | es31fNegativeShaderApiTests.cpp | 89 static bool supportsES32orGL45(NegativeTestContext& ctx) in supportsES32orGL45() argument 91 return contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)) || in supportsES32orGL45() 92 contextSupports(ctx.getRenderContext().getType(), glu::ApiType::core(4, 5)); in supportsES32orGL45() 96 void create_shader (NegativeTestContext& ctx) in create_shader() argument 98 ctx.beginSection("GL_INVALID_ENUM is generated if shaderType is not an accepted value."); in create_shader() 99 ctx.glCreateShader(-1); in create_shader() 100 ctx.expectError(GL_INVALID_ENUM); in create_shader() 101 ctx.endSection(); in create_shader() 104 void shader_source (NegativeTestContext& ctx) in shader_source() argument 107 const GLuint notAShader = ctx.glCreateShader(GL_VERTEX_SHADER); in shader_source() [all …]
|
D | es31fNegativeStateApiTests.cpp | 76 VAOHelper(NegativeTestContext& ctx) in VAOHelper() argument 78 , m_ctx(ctx) in VAOHelper() 81 if (glu::isContextTypeES(ctx.getRenderContext().getType())) in VAOHelper() 100 static std::string getVtxFragVersionSources (const std::string source, NegativeTestContext& ctx) in getVtxFragVersionSources() argument 102 …const bool supportsES32 = glu::contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(… in getVtxFragVersionSources() 112 void enable (NegativeTestContext& ctx) in enable() argument 114 ctx.beginSection("GL_INVALID_ENUM is generated if cap is not one of the allowed values."); in enable() 115 ctx.glEnable(-1); in enable() 116 ctx.expectError(GL_INVALID_ENUM); in enable() 117 ctx.endSection(); in enable() [all …]
|
D | es31fNegativeVertexArrayApiTests.cpp | 74 VAOHelper(NegativeTestContext& ctx, bool isES) in VAOHelper() argument 76 , m_ctx(ctx) in VAOHelper() 99 void vertex_attribf (NegativeTestContext& ctx) in vertex_attribf() argument 101 …ctx.beginSection("GL_INVALID_VALUE is generated if index is greater than or equal to GL_MAX_VERTEX… in vertex_attribf() 102 int maxVertexAttribs = ctx.getInteger(GL_MAX_VERTEX_ATTRIBS); in vertex_attribf() 103 ctx.glVertexAttrib1f(maxVertexAttribs, 0.0f); in vertex_attribf() 104 ctx.expectError(GL_INVALID_VALUE); in vertex_attribf() 105 ctx.glVertexAttrib2f(maxVertexAttribs, 0.0f, 0.0f); in vertex_attribf() 106 ctx.expectError(GL_INVALID_VALUE); in vertex_attribf() 107 ctx.glVertexAttrib3f(maxVertexAttribs, 0.0f, 0.0f, 0.0f); in vertex_attribf() [all …]
|
D | es31fNegativeFragmentApiTests.cpp | 48 void scissor (NegativeTestContext& ctx) in scissor() argument 50 ctx.beginSection("GL_INVALID_VALUE is generated if either width or height is negative."); in scissor() 51 ctx.glScissor(0, 0, -1, 0); in scissor() 52 ctx.expectError(GL_INVALID_VALUE); in scissor() 53 ctx.glScissor(0, 0, 0, -1); in scissor() 54 ctx.expectError(GL_INVALID_VALUE); in scissor() 55 ctx.glScissor(0, 0, -1, -1); in scissor() 56 ctx.expectError(GL_INVALID_VALUE); in scissor() 57 ctx.endSection(); in scissor() 60 void depth_func (NegativeTestContext& ctx) in depth_func() argument [all …]
|
/third_party/libwebsockets/lib/misc/ |
D | lejp.c | 69 lejp_construct(struct lejp_ctx *ctx, in lejp_construct() argument 70 signed char (*callback)(struct lejp_ctx *ctx, char reason), void *user, in lejp_construct() argument 73 ctx->st[0].s = 0; in lejp_construct() 74 ctx->st[0].p = 0; in lejp_construct() 75 ctx->st[0].i = 0; in lejp_construct() 76 ctx->st[0].b = 0; in lejp_construct() 77 ctx->sp = 0; in lejp_construct() 78 ctx->ipos = 0; in lejp_construct() 79 ctx->outer_array = 0; in lejp_construct() 80 ctx->path_match = 0; in lejp_construct() [all …]
|
D | lecp.c | 55 lecp_construct(struct lecp_ctx *ctx, lecp_callback cb, void *user, in lecp_construct() argument 60 memset(ctx, 0, sizeof(*ctx) - sizeof(ctx->buf)); in lecp_construct() 62 ctx->user = user; in lecp_construct() 63 ctx->pst[0].cb = cb; in lecp_construct() 64 ctx->pst[0].paths = paths; in lecp_construct() 65 ctx->pst[0].count_paths = count_paths; in lecp_construct() 66 ctx->be = *((uint8_t *)&x) == 0x12; in lecp_construct() 68 ctx->st[0].s = LECP_OPC; in lecp_construct() 70 ctx->pst[0].cb(ctx, LECPCB_CONSTRUCTED); in lecp_construct() 74 lecp_destruct(struct lecp_ctx *ctx) in lecp_destruct() argument [all …]
|
/third_party/mesa3d/src/mesa/main/ |
D | enable.c | 52 _mesa_update_derived_primitive_restart_state(struct gl_context *ctx) in _mesa_update_derived_primitive_restart_state() argument 54 if (ctx->Array.PrimitiveRestart || in _mesa_update_derived_primitive_restart_state() 55 ctx->Array.PrimitiveRestartFixedIndex) { in _mesa_update_derived_primitive_restart_state() 57 _mesa_primitive_restart_index(ctx, 1), in _mesa_update_derived_primitive_restart_state() 58 _mesa_primitive_restart_index(ctx, 2), in _mesa_update_derived_primitive_restart_state() 59 _mesa_primitive_restart_index(ctx, 4), in _mesa_update_derived_primitive_restart_state() 62 ctx->Array._RestartIndex[0] = restart_index[0]; in _mesa_update_derived_primitive_restart_state() 63 ctx->Array._RestartIndex[1] = restart_index[1]; in _mesa_update_derived_primitive_restart_state() 64 ctx->Array._RestartIndex[2] = restart_index[2]; in _mesa_update_derived_primitive_restart_state() 71 ctx->Array._PrimitiveRestart[0] = true && restart_index[0] <= UINT8_MAX; in _mesa_update_derived_primitive_restart_state() [all …]
|
D | state.c | 61 _mesa_update_allow_draw_out_of_order(struct gl_context *ctx) in _mesa_update_allow_draw_out_of_order() argument 93 if (!ctx->Const.AllowDrawOutOfOrder) in _mesa_update_allow_draw_out_of_order() 96 assert(ctx->API == API_OPENGL_COMPAT); in _mesa_update_allow_draw_out_of_order() 100 ctx->_Shader->CurrentProgram[MESA_SHADER_VERTEX]; in _mesa_update_allow_draw_out_of_order() 102 ctx->_Shader->CurrentProgram[MESA_SHADER_TESS_CTRL]; in _mesa_update_allow_draw_out_of_order() 104 ctx->_Shader->CurrentProgram[MESA_SHADER_TESS_EVAL]; in _mesa_update_allow_draw_out_of_order() 106 ctx->_Shader->CurrentProgram[MESA_SHADER_GEOMETRY]; in _mesa_update_allow_draw_out_of_order() 108 ctx->_Shader->CurrentProgram[MESA_SHADER_FRAGMENT]; in _mesa_update_allow_draw_out_of_order() 109 GLenum16 depth_func = ctx->Depth.Func; in _mesa_update_allow_draw_out_of_order() 122 bool previous_state = ctx->_AllowDrawOutOfOrder; in _mesa_update_allow_draw_out_of_order() [all …]
|
D | stencil.c | 61 validate_stencil_op(struct gl_context *ctx, GLenum op) in validate_stencil_op() argument 80 validate_stencil_func(struct gl_context *ctx, GLenum func) in validate_stencil_func() argument 112 GET_CURRENT_CONTEXT(ctx); in _mesa_ClearStencil() 115 _mesa_debug(ctx, "glClearStencil(%d)\n", s); in _mesa_ClearStencil() 117 ctx->PopAttribState |= GL_STENCIL_BUFFER_BIT; in _mesa_ClearStencil() 118 ctx->Stencil.Clear = (GLuint) s; in _mesa_ClearStencil() 139 GET_CURRENT_CONTEXT(ctx); in _mesa_StencilFuncSeparateATI() 142 _mesa_debug(ctx, "glStencilFuncSeparateATI()\n"); in _mesa_StencilFuncSeparateATI() 144 if (!validate_stencil_func(ctx, frontfunc)) { in _mesa_StencilFuncSeparateATI() 145 _mesa_error(ctx, GL_INVALID_ENUM, in _mesa_StencilFuncSeparateATI() [all …]
|
D | context.h | 74 _mesa_initialize_context( struct gl_context *ctx, 85 _mesa_initialize_exec_table(struct gl_context *ctx); 88 _mesa_initialize_dispatch_tables(struct gl_context *ctx); 94 _mesa_free_context_data(struct gl_context *ctx, bool destroy_debug_output); 100 _mesa_make_current( struct gl_context *ctx, struct gl_framebuffer *drawBuffer, 104 _mesa_share_state(struct gl_context *ctx, struct gl_context *ctxToShare); 115 _mesa_get_dispatch(struct gl_context *ctx); 118 _mesa_set_context_lost_dispatch(struct gl_context *ctx); 126 _mesa_flush(struct gl_context *ctx); 136 _mesa_inside_begin_end(const struct gl_context *ctx) in _mesa_inside_begin_end() argument [all …]
|
/third_party/skia/modules/canvaskit/tests/ |
D | canvas2d.spec.js | 281 const ctx = canvas.getContext('2d'); constant 282 ctx.scale(3.0, 3.0); 283 ctx.moveTo(20, 5); 284 ctx.lineTo(30, 20); 285 ctx.lineTo(40, 10); 286 ctx.lineTo(50, 20); 287 ctx.lineTo(60, 0); 288 ctx.lineTo(20, 5); 290 ctx.moveTo(20, 80); 291 ctx.bezierCurveTo(90, 10, 160, 150, 190, 10); [all …]
|
/third_party/openssl/crypto/cmp/ |
D | cmp_ctx.c | 26 X509_STORE *OSSL_CMP_CTX_get0_trustedStore(const OSSL_CMP_CTX *ctx) in OSSL_CMP_CTX_get0_trustedStore() argument 28 if (ctx == NULL) { in OSSL_CMP_CTX_get0_trustedStore() 32 return ctx->trusted; in OSSL_CMP_CTX_get0_trustedStore() 40 int OSSL_CMP_CTX_set0_trustedStore(OSSL_CMP_CTX *ctx, X509_STORE *store) in OSSL_CMP_CTX_set0_trustedStore() argument 42 if (ctx == NULL) { in OSSL_CMP_CTX_set0_trustedStore() 46 X509_STORE_free(ctx->trusted); in OSSL_CMP_CTX_set0_trustedStore() 47 ctx->trusted = store; in OSSL_CMP_CTX_set0_trustedStore() 52 STACK_OF(X509) *OSSL_CMP_CTX_get0_untrusted(const OSSL_CMP_CTX *ctx) in STACK_OF() 54 if (ctx == NULL) { in STACK_OF() 58 return ctx->untrusted; in STACK_OF() [all …]
|
/third_party/node/deps/openssl/openssl/crypto/cmp/ |
D | cmp_ctx.c | 26 X509_STORE *OSSL_CMP_CTX_get0_trustedStore(const OSSL_CMP_CTX *ctx) in OSSL_CMP_CTX_get0_trustedStore() argument 28 if (ctx == NULL) { in OSSL_CMP_CTX_get0_trustedStore() 32 return ctx->trusted; in OSSL_CMP_CTX_get0_trustedStore() 40 int OSSL_CMP_CTX_set0_trustedStore(OSSL_CMP_CTX *ctx, X509_STORE *store) in OSSL_CMP_CTX_set0_trustedStore() argument 42 if (ctx == NULL) { in OSSL_CMP_CTX_set0_trustedStore() 46 X509_STORE_free(ctx->trusted); in OSSL_CMP_CTX_set0_trustedStore() 47 ctx->trusted = store; in OSSL_CMP_CTX_set0_trustedStore() 52 STACK_OF(X509) *OSSL_CMP_CTX_get0_untrusted(const OSSL_CMP_CTX *ctx) in STACK_OF() 54 if (ctx == NULL) { in STACK_OF() 58 return ctx->untrusted; in STACK_OF() [all …]
|
/third_party/optimized-routines/math/test/rtest/ |
D | wrappers.c | 14 void wrapper_init(wrapperctx *ctx) in wrapper_init() argument 17 ctx->nops = ctx->nresults = 0; in wrapper_init() 19 ctx->mpfr_ops[i] = NULL; in wrapper_init() 20 ctx->mpc_ops[i] = NULL; in wrapper_init() 21 ctx->ieee_ops[i] = NULL; in wrapper_init() 23 ctx->mpfr_result = NULL; in wrapper_init() 24 ctx->mpc_result = NULL; in wrapper_init() 25 ctx->ieee_result = NULL; in wrapper_init() 26 ctx->need_regen = 0; in wrapper_init() 29 void wrapper_op_real(wrapperctx *ctx, const mpfr_t r, in wrapper_op_real() argument [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/cso_cache/ |
D | cso_context.c | 131 static inline boolean delete_cso(struct cso_context *ctx, in delete_cso() argument 136 if (ctx->blend == ((struct cso_blend*)state)->data) in delete_cso() 140 if (ctx->depth_stencil == ((struct cso_depth_stencil_alpha*)state)->data) in delete_cso() 144 if (ctx->rasterizer == ((struct cso_rasterizer*)state)->data) in delete_cso() 148 if (ctx->velements == ((struct cso_velements*)state)->data) in delete_cso() 158 cso_delete_state(ctx->pipe, state, type); in delete_cso() 166 struct cso_context *ctx = (struct cso_context *)user_data; in sanitize_hash() local 193 struct cso_sampler *sampler = ctx->samplers[i].cso_samplers[j]; in sanitize_hash() 210 if (delete_cso(ctx, cso, type)) { in sanitize_hash() 250 struct cso_context *ctx = CALLOC_STRUCT(cso_context); in cso_create_context() local [all …]
|
/third_party/node/deps/openssl/openssl/crypto/evp/ |
D | bio_b64.c | 69 BIO_B64_CTX *ctx; in b64_new() local 71 if ((ctx = OPENSSL_zalloc(sizeof(*ctx))) == NULL) { in b64_new() 76 ctx->cont = 1; in b64_new() 77 ctx->start = 1; in b64_new() 78 ctx->base64 = EVP_ENCODE_CTX_new(); in b64_new() 79 if (ctx->base64 == NULL) { in b64_new() 80 OPENSSL_free(ctx); in b64_new() 84 BIO_set_data(bi, ctx); in b64_new() 92 BIO_B64_CTX *ctx; in b64_free() local 96 ctx = BIO_get_data(a); in b64_free() [all …]
|
/third_party/openssl/crypto/evp/ |
D | bio_b64.c | 69 BIO_B64_CTX *ctx; in b64_new() local 71 if ((ctx = OPENSSL_zalloc(sizeof(*ctx))) == NULL) { in b64_new() 76 ctx->cont = 1; in b64_new() 77 ctx->start = 1; in b64_new() 78 ctx->base64 = EVP_ENCODE_CTX_new(); in b64_new() 79 if (ctx->base64 == NULL) { in b64_new() 80 OPENSSL_free(ctx); in b64_new() 84 BIO_set_data(bi, ctx); in b64_new() 92 BIO_B64_CTX *ctx; in b64_free() local 96 ctx = BIO_get_data(a); in b64_free() [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | dnxhdenc.c | 119 static int dnxhd_10bit_dct_quantize_444(MpegEncContext *ctx, int16_t *block, in dnxhd_10bit_dct_quantize_444() argument 124 const uint8_t *scantable= ctx->intra_scantable.scantable; in dnxhd_10bit_dct_quantize_444() 129 ctx->fdsp.fdct(block); in dnxhd_10bit_dct_quantize_444() 134 qmat = n < 4 ? ctx->q_intra_matrix[qscale] : ctx->q_chroma_intra_matrix[qscale]; in dnxhd_10bit_dct_quantize_444() 135 bias= ctx->intra_quant_bias * (1 << (16 - 8)); in dnxhd_10bit_dct_quantize_444() 168 *overflow = ctx->max_qcoeff < max; //overflow might have happened in dnxhd_10bit_dct_quantize_444() 171 if (ctx->idsp.perm_type != FF_IDCT_PERM_NONE) in dnxhd_10bit_dct_quantize_444() 172 ff_block_permute(block, ctx->idsp.idct_permutation, in dnxhd_10bit_dct_quantize_444() 178 static int dnxhd_10bit_dct_quantize(MpegEncContext *ctx, int16_t *block, in dnxhd_10bit_dct_quantize() argument 181 const uint8_t *scantable= ctx->intra_scantable.scantable; in dnxhd_10bit_dct_quantize() [all …]
|
/third_party/libwebsockets/lib/tls/mbedtls/ |
D | lws-genrsa.c | 44 lws_genrsa_create(struct lws_genrsa_ctx *ctx, argument 49 memset(ctx, 0, sizeof(*ctx)); 50 ctx->ctx = lws_zalloc(sizeof(*ctx->ctx), "genrsa"); 51 if (!ctx->ctx) 54 ctx->context = context; 55 ctx->mode = mode; 61 mbedtls_rsa_init(ctx->ctx, mode_map[mode], 0); 63 mbedtls_rsa_init(ctx->ctx); 64 mbedtls_rsa_set_padding(ctx->ctx, mode_map[mode], 0); 67 ctx->ctx->MBEDTLS_PRIVATE(padding) = mode_map[mode]; [all …]
|
/third_party/skia/tools/perf-canvaskit-puppeteer/ |
D | canvas_perf.js | 31 setup: function(CanvasKit, ctx) { argument 32 ctx.canvas = ctx.surface.getCanvas(); 34 test: function(CanvasKit, ctx) { argument 39 ctx.canvas.save(); 40 ctx.canvas.clipRect(CanvasKit.LTRBRect(x, y, x+50, y+50), 42 ctx.canvas.drawColor(randomColorTwo(CanvasKit, 0, 1), CanvasKit.BlendMode.SrcOver); 43 ctx.canvas.restore(); 46 teardown: function(CanvasKit, ctx) {}, argument 52 setup: function(CanvasKit, ctx) { argument 53 ctx.canvas = ctx.surface.getCanvas(); [all …]
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_shader_llvm_gs.c | 32 LLVMValueRef si_is_es_thread(struct si_shader_context *ctx) in si_is_es_thread() argument 35 return LLVMBuildICmp(ctx->ac.builder, LLVMIntULT, ac_get_thread_id(&ctx->ac), in si_is_es_thread() 36 si_unpack_param(ctx, ctx->args.merged_wave_info, 0, 8), ""); in si_is_es_thread() 39 LLVMValueRef si_is_gs_thread(struct si_shader_context *ctx) in si_is_gs_thread() argument 42 return LLVMBuildICmp(ctx->ac.builder, LLVMIntULT, ac_get_thread_id(&ctx->ac), in si_is_gs_thread() 43 si_unpack_param(ctx, ctx->args.merged_wave_info, 8, 8), ""); in si_is_gs_thread() 47 static void si_set_es_return_value_for_gs(struct si_shader_context *ctx) in si_set_es_return_value_for_gs() argument 49 if (!ctx->shader->is_monolithic) in si_set_es_return_value_for_gs() 50 ac_build_endif(&ctx->ac, ctx->merged_wrap_if_label); in si_set_es_return_value_for_gs() 52 LLVMValueRef ret = ctx->return_value; in si_set_es_return_value_for_gs() [all …]
|
/third_party/python/Modules/ |
D | sre_lib.h | 394 ctx->lastmark = state->lastmark; \ 395 ctx->lastindex = state->lastindex; \ 399 state->lastmark = ctx->lastmark; \ 400 state->lastindex = ctx->lastindex; \ 423 DATA_STACK_LOOKUP_AT(state, SRE(match_context), ctx, ctx_pos); \ 443 DATA_STACK_LOOKUP_AT(state, SRE(match_context), ctx, ctx_pos); \ 519 ctx = nextctx; \ 525 DO_JUMPX(jumpvalue, jumplabel, nextpattern, ctx->toplevel) 556 SRE(match_context)* ctx; in SRE() 561 DATA_ALLOC(SRE(match_context), ctx); in SRE() [all …]
|
/third_party/libwebsockets/lib/tls/openssl/ |
D | lws-genaes.c | 38 lws_genaes_create(struct lws_genaes_ctx *ctx, enum enum_aes_operation op, in lws_genaes_create() argument 44 ctx->ctx = EVP_CIPHER_CTX_new(); in lws_genaes_create() 45 if (!ctx->ctx) in lws_genaes_create() 48 ctx->mode = mode; in lws_genaes_create() 49 ctx->k = el; in lws_genaes_create() 50 ctx->engine = engine; in lws_genaes_create() 51 ctx->init = 0; in lws_genaes_create() 52 ctx->op = op; in lws_genaes_create() 53 ctx->padding = padding; in lws_genaes_create() 55 switch (ctx->k->len) { in lws_genaes_create() [all …]
|