/external/deqp/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 | 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 …]
|
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 …]
|
/external/libwebsockets/lib/misc/ |
D | lejp.c | 70 lejp_construct(struct lejp_ctx *ctx, in lejp_construct() argument 71 signed char (*callback)(struct lejp_ctx *ctx, char reason), void *user, in lejp_construct() argument 74 ctx->st[0].s = 0; in lejp_construct() 75 ctx->st[0].p = 0; in lejp_construct() 76 ctx->st[0].i = 0; in lejp_construct() 77 ctx->st[0].b = 0; in lejp_construct() 78 ctx->sp = 0; in lejp_construct() 79 ctx->ipos = 0; in lejp_construct() 80 ctx->path_match = 0; in lejp_construct() 81 ctx->path_stride = 0; in lejp_construct() [all …]
|
/external/mesa3d/src/mesa/main/ |
D | enable.c | 48 _mesa_update_derived_primitive_restart_state(struct gl_context *ctx) in _mesa_update_derived_primitive_restart_state() argument 50 ctx->Array._PrimitiveRestart = ctx->Array.PrimitiveRestart || in _mesa_update_derived_primitive_restart_state() 51 ctx->Array.PrimitiveRestartFixedIndex; in _mesa_update_derived_primitive_restart_state() 52 ctx->Array._RestartIndex[0] = _mesa_primitive_restart_index(ctx, 1); in _mesa_update_derived_primitive_restart_state() 53 ctx->Array._RestartIndex[1] = _mesa_primitive_restart_index(ctx, 2); in _mesa_update_derived_primitive_restart_state() 54 ctx->Array._RestartIndex[3] = _mesa_primitive_restart_index(ctx, 4); in _mesa_update_derived_primitive_restart_state() 62 vao_state(struct gl_context *ctx, struct gl_vertex_array_object* vao, in vao_state() argument 66 _mesa_enable_vertex_array_attrib(ctx, vao, attr); in vao_state() 68 _mesa_disable_vertex_array_attrib(ctx, vao, attr); in vao_state() 76 client_state(struct gl_context *ctx, struct gl_vertex_array_object* vao, in client_state() argument [all …]
|
D | state.c | 60 _mesa_update_allow_draw_out_of_order(struct gl_context *ctx) in _mesa_update_allow_draw_out_of_order() argument 92 if (ctx->API != API_OPENGL_COMPAT || !ctx->Const.AllowDrawOutOfOrder) in _mesa_update_allow_draw_out_of_order() 97 ctx->_Shader->CurrentProgram[MESA_SHADER_VERTEX]; in _mesa_update_allow_draw_out_of_order() 99 ctx->_Shader->CurrentProgram[MESA_SHADER_TESS_CTRL]; in _mesa_update_allow_draw_out_of_order() 101 ctx->_Shader->CurrentProgram[MESA_SHADER_TESS_EVAL]; in _mesa_update_allow_draw_out_of_order() 103 ctx->_Shader->CurrentProgram[MESA_SHADER_GEOMETRY]; in _mesa_update_allow_draw_out_of_order() 105 ctx->_Shader->CurrentProgram[MESA_SHADER_FRAGMENT]; in _mesa_update_allow_draw_out_of_order() 106 GLenum16 depth_func = ctx->Depth.Func; in _mesa_update_allow_draw_out_of_order() 119 bool previous_state = ctx->_AllowDrawOutOfOrder; in _mesa_update_allow_draw_out_of_order() 120 ctx->_AllowDrawOutOfOrder = in _mesa_update_allow_draw_out_of_order() [all …]
|
D | feedback.c | 50 GET_CURRENT_CONTEXT(ctx); in _mesa_FeedbackBuffer() 52 if (ctx->RenderMode==GL_FEEDBACK) { in _mesa_FeedbackBuffer() 53 _mesa_error( ctx, GL_INVALID_OPERATION, "glFeedbackBuffer" ); in _mesa_FeedbackBuffer() 57 _mesa_error( ctx, GL_INVALID_VALUE, "glFeedbackBuffer(size<0)" ); in _mesa_FeedbackBuffer() 61 _mesa_error( ctx, GL_INVALID_VALUE, "glFeedbackBuffer(buffer==NULL)" ); in _mesa_FeedbackBuffer() 62 ctx->Feedback.BufferSize = 0; in _mesa_FeedbackBuffer() 68 ctx->Feedback._Mask = 0; in _mesa_FeedbackBuffer() 71 ctx->Feedback._Mask = FB_3D; in _mesa_FeedbackBuffer() 74 ctx->Feedback._Mask = (FB_3D | FB_COLOR); in _mesa_FeedbackBuffer() 77 ctx->Feedback._Mask = (FB_3D | FB_COLOR | FB_TEXTURE); in _mesa_FeedbackBuffer() [all …]
|
D | stencil.c | 59 validate_stencil_op(struct gl_context *ctx, GLenum op) in validate_stencil_op() argument 78 validate_stencil_func(struct gl_context *ctx, GLenum func) in validate_stencil_func() argument 110 GET_CURRENT_CONTEXT(ctx); in _mesa_ClearStencil() 113 _mesa_debug(ctx, "glClearStencil(%d)\n", s); in _mesa_ClearStencil() 115 ctx->Stencil.Clear = (GLuint) s; in _mesa_ClearStencil() 136 GET_CURRENT_CONTEXT(ctx); in _mesa_StencilFuncSeparateATI() 139 _mesa_debug(ctx, "glStencilFuncSeparateATI()\n"); in _mesa_StencilFuncSeparateATI() 141 if (!validate_stencil_func(ctx, frontfunc)) { in _mesa_StencilFuncSeparateATI() 142 _mesa_error(ctx, GL_INVALID_ENUM, in _mesa_StencilFuncSeparateATI() 146 if (!validate_stencil_func(ctx, backfunc)) { in _mesa_StencilFuncSeparateATI() [all …]
|
/external/e2fsprogs/e2fsck/ |
D | e2fsck.c | 55 errcode_t e2fsck_reset_context(e2fsck_t ctx) in e2fsck_reset_context() argument 59 ctx->flags &= E2F_RESET_FLAGS; in e2fsck_reset_context() 60 ctx->lost_and_found = 0; in e2fsck_reset_context() 61 ctx->bad_lost_and_found = 0; in e2fsck_reset_context() 62 if (ctx->inode_used_map) { in e2fsck_reset_context() 63 ext2fs_free_inode_bitmap(ctx->inode_used_map); in e2fsck_reset_context() 64 ctx->inode_used_map = 0; in e2fsck_reset_context() 66 if (ctx->inode_dir_map) { in e2fsck_reset_context() 67 ext2fs_free_inode_bitmap(ctx->inode_dir_map); in e2fsck_reset_context() 68 ctx->inode_dir_map = 0; in e2fsck_reset_context() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | intel_extensions.c | 37 intelInitExtensions(struct gl_context *ctx) in intelInitExtensions() argument 39 struct brw_context *brw = brw_context(ctx); in intelInitExtensions() 44 ctx->Extensions.ARB_arrays_of_arrays = true; in intelInitExtensions() 45 ctx->Extensions.ARB_buffer_storage = true; in intelInitExtensions() 46 ctx->Extensions.ARB_clear_texture = true; in intelInitExtensions() 47 ctx->Extensions.ARB_clip_control = true; in intelInitExtensions() 48 ctx->Extensions.ARB_copy_image = true; in intelInitExtensions() 49 ctx->Extensions.ARB_depth_buffer_float = true; in intelInitExtensions() 50 ctx->Extensions.ARB_depth_clamp = true; in intelInitExtensions() 51 ctx->Extensions.ARB_depth_texture = true; in intelInitExtensions() [all …]
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_gfx_cs.c | 33 void si_need_gfx_cs_space(struct si_context *ctx, unsigned num_draws) in si_need_gfx_cs_space() argument 35 struct radeon_cmdbuf *cs = ctx->gfx_cs; in si_need_gfx_cs_space() 48 if (unlikely(!radeon_cs_memory_below_limit(ctx->screen, ctx->gfx_cs, ctx->vram, ctx->gtt))) { in si_need_gfx_cs_space() 49 ctx->gtt = 0; in si_need_gfx_cs_space() 50 ctx->vram = 0; in si_need_gfx_cs_space() 51 si_flush_gfx_cs(ctx, RADEON_FLUSH_ASYNC_START_NEXT_GFX_IB_NOW, NULL); in si_need_gfx_cs_space() 54 ctx->gtt = 0; in si_need_gfx_cs_space() 55 ctx->vram = 0; in si_need_gfx_cs_space() 57 unsigned need_dwords = si_get_minimum_num_gfx_cs_dwords(ctx, num_draws); in si_need_gfx_cs_space() 58 if (!ctx->ws->cs_check_space(cs, need_dwords, false)) in si_need_gfx_cs_space() [all …]
|
/external/usrsctp/usrsctplib/netinet/ |
D | sctp_sha1.c | 43 sctp_sha1_init(struct sctp_sha1_context *ctx) in sctp_sha1_init() argument 45 ctx->pk11_ctx = PK11_CreateDigestContext(SEC_OID_SHA1); in sctp_sha1_init() 46 PK11_DigestBegin(ctx->pk11_ctx); in sctp_sha1_init() 50 sctp_sha1_update(struct sctp_sha1_context *ctx, const unsigned char *ptr, unsigned int siz) in sctp_sha1_update() argument 52 PK11_DigestOp(ctx->pk11_ctx, ptr, siz); in sctp_sha1_update() 56 sctp_sha1_final(unsigned char *digest, struct sctp_sha1_context *ctx) in sctp_sha1_final() argument 60 PK11_DigestFinal(ctx->pk11_ctx, digest, &output_len, SHA_DIGEST_LENGTH); in sctp_sha1_final() 61 PK11_DestroyContext(ctx->pk11_ctx, PR_TRUE); in sctp_sha1_final() 67 sctp_sha1_init(struct sctp_sha1_context *ctx) in sctp_sha1_init() argument 69 SHA1_Init(&ctx->sha_ctx); in sctp_sha1_init() [all …]
|
/external/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 …]
|
/external/llvm-project/libc/AOR_v20.02/math/test/rtest/ |
D | wrappers.c | 15 void wrapper_init(wrapperctx *ctx) in wrapper_init() argument 18 ctx->nops = ctx->nresults = 0; in wrapper_init() 20 ctx->mpfr_ops[i] = NULL; in wrapper_init() 21 ctx->mpc_ops[i] = NULL; in wrapper_init() 22 ctx->ieee_ops[i] = NULL; in wrapper_init() 24 ctx->mpfr_result = NULL; in wrapper_init() 25 ctx->mpc_result = NULL; in wrapper_init() 26 ctx->ieee_result = NULL; in wrapper_init() 27 ctx->need_regen = 0; in wrapper_init() 30 void wrapper_op_real(wrapperctx *ctx, const mpfr_t r, in wrapper_op_real() argument [all …]
|
/external/arm-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 …]
|
/external/zstd/lib/common/ |
D | pool.c | 68 POOL_ctx* const ctx = (POOL_ctx*)opaque; in POOL_thread() local 69 if (!ctx) { return NULL; } in POOL_thread() 72 ZSTD_pthread_mutex_lock(&ctx->queueMutex); in POOL_thread() 74 while ( ctx->queueEmpty in POOL_thread() 75 || (ctx->numThreadsBusy >= ctx->threadLimit) ) { in POOL_thread() 76 if (ctx->shutdown) { in POOL_thread() 80 ZSTD_pthread_mutex_unlock(&ctx->queueMutex); in POOL_thread() 83 ZSTD_pthread_cond_wait(&ctx->queuePopCond, &ctx->queueMutex); in POOL_thread() 86 { POOL_job const job = ctx->queue[ctx->queueHead]; in POOL_thread() 87 ctx->queueHead = (ctx->queueHead + 1) % ctx->queueSize; in POOL_thread() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
D | nouveau_state.c | 38 nouveau_alpha_func(struct gl_context *ctx, GLenum func, GLfloat ref) in nouveau_alpha_func() argument 40 context_dirty(ctx, ALPHA_FUNC); in nouveau_alpha_func() 44 nouveau_blend_color(struct gl_context *ctx, const GLfloat color[4]) in nouveau_blend_color() argument 46 context_dirty(ctx, BLEND_COLOR); in nouveau_blend_color() 50 nouveau_blend_equation_separate(struct gl_context *ctx, GLenum modeRGB, GLenum modeA) in nouveau_blend_equation_separate() argument 52 context_dirty(ctx, BLEND_EQUATION); in nouveau_blend_equation_separate() 56 nouveau_blend_func_separate(struct gl_context *ctx, GLenum sfactorRGB, in nouveau_blend_func_separate() argument 59 context_dirty(ctx, BLEND_FUNC); in nouveau_blend_func_separate() 63 nouveau_clip_plane(struct gl_context *ctx, GLenum plane, const GLfloat *equation) in nouveau_clip_plane() argument 65 context_dirty_i(ctx, CLIP_PLANE, plane - GL_CLIP_PLANE0); in nouveau_clip_plane() [all …]
|
/external/libwebsockets/lib/tls/mbedtls/ |
D | lws-genrsa.c | 44 lws_genrsa_create(struct lws_genrsa_ctx *ctx, struct lws_gencrypto_keyelem *el, in lws_genrsa_create() argument 48 memset(ctx, 0, sizeof(*ctx)); in lws_genrsa_create() 49 ctx->ctx = lws_zalloc(sizeof(*ctx->ctx), "genrsa"); in lws_genrsa_create() 50 if (!ctx->ctx) in lws_genrsa_create() 53 ctx->context = context; in lws_genrsa_create() 54 ctx->mode = mode; in lws_genrsa_create() 59 mbedtls_rsa_init(ctx->ctx, mode_map[mode], 0); in lws_genrsa_create() 61 ctx->ctx->padding = mode_map[mode]; in lws_genrsa_create() 62 ctx->ctx->hash_id = lws_gencrypto_mbedtls_hash_to_MD_TYPE(oaep_hashid); in lws_genrsa_create() 68 &ctx->ctx->E, &ctx->ctx->N, &ctx->ctx->D, &ctx->ctx->P, in lws_genrsa_create() [all …]
|
/external/llvm-project/polly/lib/External/isl/ |
D | isl_ctx.c | 57 static void *check_non_null(isl_ctx *ctx, void *p, size_t size) in check_non_null() argument 61 isl_die(ctx, isl_error_alloc, "allocation failure", return NULL); in check_non_null() 71 int isl_ctx_next_operation(isl_ctx *ctx) in isl_ctx_next_operation() argument 73 if (!ctx) in isl_ctx_next_operation() 75 if (ctx->abort) { in isl_ctx_next_operation() 76 isl_ctx_set_error(ctx, isl_error_abort); in isl_ctx_next_operation() 79 if (ctx->max_operations && ctx->operations >= ctx->max_operations) in isl_ctx_next_operation() 80 isl_die(ctx, isl_error_quota, in isl_ctx_next_operation() 82 ctx->operations++; in isl_ctx_next_operation() 89 void *isl_malloc_or_die(isl_ctx *ctx, size_t size) in isl_malloc_or_die() argument [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/decrepit/bio/ |
D | base64_bio.c | 92 BIO_B64_CTX *ctx; in b64_new() local 94 ctx = OPENSSL_malloc(sizeof(*ctx)); in b64_new() 95 if (ctx == NULL) { in b64_new() 99 OPENSSL_memset(ctx, 0, sizeof(*ctx)); in b64_new() 101 ctx->cont = 1; in b64_new() 102 ctx->start = 1; in b64_new() 105 bio->ptr = (char *)ctx; in b64_new() 122 BIO_B64_CTX *ctx; in b64_read() local 128 ctx = (BIO_B64_CTX *) b->ptr; in b64_read() 130 if (ctx == NULL || b->next_bio == NULL) { in b64_read() [all …]
|
/external/boringssl/src/decrepit/bio/ |
D | base64_bio.c | 92 BIO_B64_CTX *ctx; in b64_new() local 94 ctx = OPENSSL_malloc(sizeof(*ctx)); in b64_new() 95 if (ctx == NULL) { in b64_new() 99 OPENSSL_memset(ctx, 0, sizeof(*ctx)); in b64_new() 101 ctx->cont = 1; in b64_new() 102 ctx->start = 1; in b64_new() 105 bio->ptr = (char *)ctx; in b64_new() 122 BIO_B64_CTX *ctx; in b64_read() local 128 ctx = (BIO_B64_CTX *) b->ptr; in b64_read() 130 if (ctx == NULL || b->next_bio == NULL) { in b64_read() [all …]
|
/external/mesa3d/src/gallium/auxiliary/cso_cache/ |
D | cso_context.c | 138 static boolean delete_blend_state(struct cso_context *ctx, void *state) in delete_blend_state() argument 142 if (ctx->blend == cso->data) in delete_blend_state() 151 static boolean delete_depth_stencil_state(struct cso_context *ctx, void *state) in delete_depth_stencil_state() argument 156 if (ctx->depth_stencil == cso->data) in delete_depth_stencil_state() 166 static boolean delete_sampler_state(UNUSED struct cso_context *ctx, void *state) in delete_sampler_state() argument 175 static boolean delete_rasterizer_state(struct cso_context *ctx, void *state) in delete_rasterizer_state() argument 179 if (ctx->rasterizer == cso->data) in delete_rasterizer_state() 187 static boolean delete_vertex_elements(struct cso_context *ctx, in delete_vertex_elements() argument 192 if (ctx->velements == cso->data) in delete_vertex_elements() 202 static inline boolean delete_cso(struct cso_context *ctx, in delete_cso() argument [all …]
|