Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 5509) sorted by relevance

12345678910>>...221

/third_party/vk-gl-cts/modules/gles31/functional/
Des31fNegativeBufferApiTests.cpp45 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 …]
Des31fNegativeTextureApiTests.cpp78 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
99ctx.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 …]
Des31fNegativeShaderApiTests.cpp89 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 …]
Des31fNegativeStateApiTests.cpp76 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 …]
Des31fNegativeFragmentApiTests.cpp48 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 …]
Des31fNegativeVertexArrayApiTests.cpp74 VAOHelper(NegativeTestContext& ctx, bool isES) in VAOHelper() argument
76 , m_ctx(ctx) in VAOHelper()
99 void vertex_attribf (NegativeTestContext& ctx) in vertex_attribf() argument
101ctx.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 …]
/third_party/libwebsockets/lib/misc/
Dlejp.c69 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 …]
Dlecp.c55 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/
Denable.c49 _mesa_update_derived_primitive_restart_state(struct gl_context *ctx) in _mesa_update_derived_primitive_restart_state() argument
51 if (ctx->Array.PrimitiveRestart || in _mesa_update_derived_primitive_restart_state()
52 ctx->Array.PrimitiveRestartFixedIndex) { in _mesa_update_derived_primitive_restart_state()
54 _mesa_primitive_restart_index(ctx, 1), in _mesa_update_derived_primitive_restart_state()
55 _mesa_primitive_restart_index(ctx, 2), in _mesa_update_derived_primitive_restart_state()
56 _mesa_primitive_restart_index(ctx, 4), in _mesa_update_derived_primitive_restart_state()
59 ctx->Array._RestartIndex[0] = restart_index[0]; in _mesa_update_derived_primitive_restart_state()
60 ctx->Array._RestartIndex[1] = restart_index[1]; in _mesa_update_derived_primitive_restart_state()
61 ctx->Array._RestartIndex[2] = restart_index[2]; in _mesa_update_derived_primitive_restart_state()
68 ctx->Array._PrimitiveRestart[0] = true && restart_index[0] <= UINT8_MAX; in _mesa_update_derived_primitive_restart_state()
[all …]
Dfeedback.c50 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 …]
Dstencil.c59 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->PopAttribState |= GL_STENCIL_BUFFER_BIT; in _mesa_ClearStencil()
116 ctx->Stencil.Clear = (GLuint) s; in _mesa_ClearStencil()
137 GET_CURRENT_CONTEXT(ctx); in _mesa_StencilFuncSeparateATI()
140 _mesa_debug(ctx, "glStencilFuncSeparateATI()\n"); in _mesa_StencilFuncSeparateATI()
142 if (!validate_stencil_func(ctx, frontfunc)) { in _mesa_StencilFuncSeparateATI()
143 _mesa_error(ctx, GL_INVALID_ENUM, in _mesa_StencilFuncSeparateATI()
[all …]
Dstate.c60 _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 …]
Dpolygon.c55 cull_face(struct gl_context *ctx, GLenum mode, bool no_error) in cull_face() argument
57 if (ctx->Polygon.CullFaceMode == mode) in cull_face()
62 _mesa_error(ctx, GL_INVALID_ENUM, "glCullFace"); in cull_face()
66 FLUSH_VERTICES(ctx, ctx->DriverFlags.NewPolygonState ? 0 : _NEW_POLYGON, in cull_face()
68 ctx->NewDriverState |= ctx->DriverFlags.NewPolygonState; in cull_face()
69 ctx->Polygon.CullFaceMode = mode; in cull_face()
71 if (ctx->Driver.CullFace) in cull_face()
72 ctx->Driver.CullFace(ctx, mode); in cull_face()
79 GET_CURRENT_CONTEXT(ctx); in _mesa_CullFace_no_error()
80 cull_face(ctx, mode, true); in _mesa_CullFace_no_error()
[all …]
/third_party/e2fsprogs/e2fsck/
De2fsck.c55 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 …]
/third_party/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_extensions.c37 brw_init_extensions(struct gl_context *ctx) in brw_init_extensions() argument
39 struct brw_context *brw = brw_context(ctx); in brw_init_extensions()
44 ctx->Extensions.ARB_arrays_of_arrays = true; in brw_init_extensions()
45 ctx->Extensions.ARB_buffer_storage = true; in brw_init_extensions()
46 ctx->Extensions.ARB_clear_texture = true; in brw_init_extensions()
47 ctx->Extensions.ARB_clip_control = true; in brw_init_extensions()
48 ctx->Extensions.ARB_copy_image = true; in brw_init_extensions()
49 ctx->Extensions.ARB_depth_buffer_float = true; in brw_init_extensions()
50 ctx->Extensions.ARB_depth_clamp = true; in brw_init_extensions()
51 ctx->Extensions.ARB_depth_texture = true; in brw_init_extensions()
[all …]
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/
Dsctp_sha1.c43 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 …]
/third_party/skia/modules/canvaskit/tests/
Dcanvas2d.spec.js281 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/optimized-routines/math/test/rtest/
Dwrappers.c14 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/mesa/drivers/dri/nouveau/
Dnouveau_state.c38 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 …]
/third_party/mesa3d/src/gallium/auxiliary/cso_cache/
Dcso_context.c130 static inline boolean delete_cso(struct cso_context *ctx, in delete_cso() argument
135 if (ctx->blend == ((struct cso_blend*)state)->data) in delete_cso()
139 if (ctx->depth_stencil == ((struct cso_depth_stencil_alpha*)state)->data) in delete_cso()
143 if (ctx->rasterizer == ((struct cso_rasterizer*)state)->data) in delete_cso()
147 if (ctx->velements == ((struct cso_velements*)state)->data) in delete_cso()
157 cso_delete_state(ctx->pipe, state, type); in delete_cso()
165 struct cso_context *ctx = (struct cso_context *)user_data; in sanitize_hash() local
192 struct cso_sampler *sampler = ctx->samplers[i].cso_samplers[j]; in sanitize_hash()
209 if (delete_cso(ctx, cso, type)) { in sanitize_hash()
249 struct cso_context *ctx = CALLOC_STRUCT(cso_context); in cso_create_context() local
[all …]
/third_party/openssl/crypto/evp/
Dbio_b64.c71 BIO_B64_CTX *ctx; in b64_new() local
73 if ((ctx = OPENSSL_zalloc(sizeof(*ctx))) == NULL) { in b64_new()
78 ctx->cont = 1; in b64_new()
79 ctx->start = 1; in b64_new()
80 ctx->base64 = EVP_ENCODE_CTX_new(); in b64_new()
81 if (ctx->base64 == NULL) { in b64_new()
82 OPENSSL_free(ctx); in b64_new()
86 BIO_set_data(bi, ctx); in b64_new()
94 BIO_B64_CTX *ctx; in b64_free() local
98 ctx = BIO_get_data(a); in b64_free()
[all …]
Dpmeth_fn.c17 #define M_check_autoarg(ctx, arg, arglen, err) \ argument
18 if (ctx->pmeth->flags & EVP_PKEY_FLAG_AUTOARGLEN) { \
19 size_t pksize = (size_t)EVP_PKEY_size(ctx->pkey); \
35 int EVP_PKEY_sign_init(EVP_PKEY_CTX *ctx) in EVP_PKEY_sign_init() argument
38 if (!ctx || !ctx->pmeth || !ctx->pmeth->sign) { in EVP_PKEY_sign_init()
43 ctx->operation = EVP_PKEY_OP_SIGN; in EVP_PKEY_sign_init()
44 if (!ctx->pmeth->sign_init) in EVP_PKEY_sign_init()
46 ret = ctx->pmeth->sign_init(ctx); in EVP_PKEY_sign_init()
48 ctx->operation = EVP_PKEY_OP_UNDEFINED; in EVP_PKEY_sign_init()
52 int EVP_PKEY_sign(EVP_PKEY_CTX *ctx, in EVP_PKEY_sign() argument
[all …]
/third_party/libwebsockets/lib/tls/mbedtls/
Dlws-genrsa.c44 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/libwebsockets/lib/tls/openssl/
Dlws-genaes.c38 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 …]
/third_party/flutter/skia/modules/canvaskit/tests/
Dcanvas2d.spec.js280 let ctx = canvas.getContext('2d');
281 ctx.scale(3.0, 3.0);
282 ctx.moveTo(20, 5);
283 ctx.lineTo(30, 20);
284 ctx.lineTo(40, 10);
285 ctx.lineTo(50, 20);
286 ctx.lineTo(60, 0);
287 ctx.lineTo(20, 5);
289 ctx.moveTo(20, 80);
290 ctx.bezierCurveTo(90, 10, 160, 150, 190, 10);
[all …]

12345678910>>...221