Home
last modified time | relevance | path

Searched full:ctx (Results 1 – 25 of 9234) sorted by relevance

12345678910>>...370

/external/deqp/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 …]
Des31fNegativeShaderApiTests.cpp88 static bool supportsES32orGL45(NegativeTestContext &ctx) in supportsES32orGL45() argument
90 return contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)) || in supportsES32orGL45()
91 contextSupports(ctx.getRenderContext().getType(), glu::ApiType::core(4, 5)); in supportsES32orGL45()
95 void create_shader(NegativeTestContext &ctx) in create_shader() argument
97 ctx.beginSection("GL_INVALID_ENUM is generated if shaderType is not an accepted value."); in create_shader()
98 ctx.glCreateShader(-1); in create_shader()
99 ctx.expectError(GL_INVALID_ENUM); in create_shader()
100 ctx.endSection(); in create_shader()
103 void shader_source(NegativeTestContext &ctx) in shader_source() argument
106 const GLuint notAShader = ctx.glCreateShader(GL_VERTEX_SHADER); in shader_source()
[all …]
Des31fNegativeTextureApiTests.cpp84 static bool supportsES32orGL45(NegativeTestContext &ctx) in supportsES32orGL45() argument
86 return contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)) || in supportsES32orGL45()
87 contextSupports(ctx.getRenderContext().getType(), glu::ApiType::core(4, 5)); in supportsES32orGL45()
102 void activetexture(NegativeTestContext &ctx) in activetexture() argument
104ctx.beginSection("GL_INVALID_ENUM is generated if texture is not one of GL_TEXTUREi, where i range… in activetexture()
106 ctx.glActiveTexture(-1); in activetexture()
107 ctx.expectError(GL_INVALID_ENUM); in activetexture()
108 int numMaxTextureUnits = ctx.getInteger(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS); in activetexture()
109 ctx.glActiveTexture(GL_TEXTURE0 + numMaxTextureUnits); in activetexture()
110 ctx.expectError(GL_INVALID_ENUM); in activetexture()
[all …]
Des31fNegativeVertexArrayApiTests.cpp74 VAOHelper(NegativeTestContext &ctx, bool isES) : m_vao(0), m_ctx(ctx) in VAOHelper() argument
97 void vertex_attribf(NegativeTestContext &ctx) in vertex_attribf() argument
99ctx.beginSection("GL_INVALID_VALUE is generated if index is greater than or equal to GL_MAX_VERTEX… in vertex_attribf()
100 int maxVertexAttribs = ctx.getInteger(GL_MAX_VERTEX_ATTRIBS); in vertex_attribf()
101 ctx.glVertexAttrib1f(maxVertexAttribs, 0.0f); in vertex_attribf()
102 ctx.expectError(GL_INVALID_VALUE); in vertex_attribf()
103 ctx.glVertexAttrib2f(maxVertexAttribs, 0.0f, 0.0f); in vertex_attribf()
104 ctx.expectError(GL_INVALID_VALUE); in vertex_attribf()
105 ctx.glVertexAttrib3f(maxVertexAttribs, 0.0f, 0.0f, 0.0f); in vertex_attribf()
106 ctx.expectError(GL_INVALID_VALUE); in vertex_attribf()
[all …]
Des31fNegativeStateApiTests.cpp76 VAOHelper(NegativeTestContext &ctx) : m_vao(0), m_ctx(ctx) in VAOHelper() argument
79 if (glu::isContextTypeES(ctx.getRenderContext().getType())) in VAOHelper()
97 static std::string getVtxFragVersionSources(const std::string source, NegativeTestContext &ctx) in getVtxFragVersionSources() argument
99 …const bool supportsES32 = glu::contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(… in getVtxFragVersionSources()
110 void enable(NegativeTestContext &ctx) in enable() argument
112 ctx.beginSection("GL_INVALID_ENUM is generated if cap is not one of the allowed values."); in enable()
113 ctx.glEnable(-1); in enable()
114 ctx.expectError(GL_INVALID_ENUM); in enable()
115 ctx.endSection(); in enable()
118 static bool checkSupport(NegativeTestContext &ctx) in checkSupport() argument
[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 …]
/external/mesa3d/src/mesa/main/
Denable.c52 _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 …]
Dblend.c49 legal_src_factor(const struct gl_context *ctx, GLenum factor) in legal_src_factor() argument
68 return _mesa_is_desktop_gl(ctx) || _mesa_is_gles2(ctx); in legal_src_factor()
73 return ctx->API != API_OPENGLES in legal_src_factor()
74 && ctx->Extensions.ARB_blend_func_extended; in legal_src_factor()
86 legal_dst_factor(const struct gl_context *ctx, GLenum factor) in legal_dst_factor() argument
104 return _mesa_is_desktop_gl(ctx) || _mesa_is_gles2(ctx); in legal_dst_factor()
106 return (ctx->API != API_OPENGLES in legal_dst_factor()
107 && ctx->Extensions.ARB_blend_func_extended) in legal_dst_factor()
108 || _mesa_is_gles3(ctx); in legal_dst_factor()
113 return ctx->API != API_OPENGLES in legal_dst_factor()
[all …]
/external/libwebsockets/lib/misc/
Dlejp.c59 * \param ctx: pointer to your struct lejp_ctx
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()
[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 …]
/external/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 …]
/external/arm-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 …]
/external/mesa3d/src/amd/llvm/
Dac_llvm_build.c37 * The caller is responsible for initializing ctx::module and ctx::builder.
39 void ac_llvm_context_init(struct ac_llvm_context *ctx, struct ac_llvm_compiler *compiler, in ac_llvm_context_init() argument
44 ctx->context = LLVMContextCreate(); in ac_llvm_context_init()
46 ctx->info = info; in ac_llvm_context_init()
47 ctx->gfx_level = info->gfx_level; in ac_llvm_context_init()
48 ctx->wave_size = wave_size; in ac_llvm_context_init()
49 ctx->ballot_mask_bits = ballot_mask_bits; in ac_llvm_context_init()
50 ctx->float_mode = float_mode; in ac_llvm_context_init()
51 ctx->exports_color_null = exports_color_null; in ac_llvm_context_init()
52 ctx->exports_mrtz = exports_mrtz; in ac_llvm_context_init()
[all …]
Dac_nir_to_llvm.c44 static LLVMTypeRef get_def_type(struct ac_nir_context *ctx, const nir_def *def) in get_def_type() argument
46 LLVMTypeRef type = LLVMIntTypeInContext(ctx->ac.context, def->bit_size); in get_def_type()
58 static LLVMValueRef get_memory_ptr(struct ac_nir_context *ctx, nir_src src, unsigned c_off) in get_memory_ptr() argument
60 LLVMValueRef ptr = get_src(ctx, src); in get_memory_ptr()
61 ptr = LLVMBuildAdd(ctx->ac.builder, ptr, LLVMConstInt(ctx->ac.i32, c_off, 0), ""); in get_memory_ptr()
63 return LLVMBuildGEP2(ctx->ac.builder, ctx->ac.i8, ctx->ac.lds.value, &ptr, 1, ""); in get_memory_ptr()
72 static LLVMValueRef get_alu_src(struct ac_nir_context *ctx, nir_alu_src src, in get_alu_src() argument
75 LLVMValueRef value = get_src(ctx, src.src); in get_alu_src()
87 LLVMValueRef masks[] = {LLVMConstInt(ctx->ac.i32, src.swizzle[0], false), in get_alu_src()
88 LLVMConstInt(ctx->ac.i32, src.swizzle[1], false), in get_alu_src()
[all …]
/external/python/cpython3/Modules/_decimal/libmpdec/
Dmpsignal.c39 mpd_format(const mpd_t *dec, const char *fmt, mpd_context_t *ctx) in mpd_format() argument
43 ret = mpd_qformat(dec, fmt, ctx, &status); in mpd_format()
44 mpd_addstatus_raise(ctx, status); in mpd_format()
50 uint8_t srcsign, uint32_t base, mpd_context_t *ctx) in mpd_import_u16() argument
53 mpd_qimport_u16(result, srcdata, srclen, srcsign, base, ctx, &status); in mpd_import_u16()
54 mpd_addstatus_raise(ctx, status); in mpd_import_u16()
59 uint8_t srcsign, uint32_t base, mpd_context_t *ctx) in mpd_import_u32() argument
62 mpd_qimport_u32(result, srcdata, srclen, srcsign, base, ctx, &status); in mpd_import_u32()
63 mpd_addstatus_raise(ctx, status); in mpd_import_u32()
68 mpd_context_t *ctx) in mpd_export_u16() argument
[all …]
/external/mesa3d/src/gallium/auxiliary/cso_cache/
Dcso_context.c129 delete_cso(struct cso_context_priv *ctx, in delete_cso() argument
134 if (ctx->blend == ((struct cso_blend*)state)->data || in delete_cso()
135 ctx->blend_saved == ((struct cso_blend*)state)->data) in delete_cso()
139 if (ctx->depth_stencil == ((struct cso_depth_stencil_alpha*)state)->data || in delete_cso()
140 ctx->depth_stencil_saved == ((struct cso_depth_stencil_alpha*)state)->data) in delete_cso()
144 if (ctx->rasterizer == ((struct cso_rasterizer*)state)->data || in delete_cso()
145 ctx->rasterizer_saved == ((struct cso_rasterizer*)state)->data) in delete_cso()
149 if (ctx->velements == ((struct cso_velements*)state)->data || in delete_cso()
150 ctx->velements_saved == ((struct cso_velements*)state)->data) in delete_cso()
160 cso_delete_state(ctx->base.pipe, state, type); in delete_cso()
[all …]
/external/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 …]
/external/zstd/lib/common/
Dpool.c68 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/linux-kselftest/tools/testing/selftests/filesystems/epoll/
Depoll_wakeup_test.c43 static void kill_timeout(struct epoll_mtcontext *ctx) in kill_timeout() argument
46 pthread_kill(ctx->main, SIGUSR1); in kill_timeout()
47 pthread_kill(ctx->waiter, SIGUSR1); in kill_timeout()
53 struct epoll_mtcontext *ctx = data; in waiter_entry1a() local
55 if (epoll_wait(ctx->efd[0], &e, 1, -1) > 0) in waiter_entry1a()
56 __sync_fetch_and_add(&ctx->count, 1); in waiter_entry1a()
65 struct epoll_mtcontext *ctx = data; in waiter_entry1ap() local
67 pfd.fd = ctx->efd[0]; in waiter_entry1ap()
70 if (epoll_wait(ctx->efd[0], &e, 1, 0) > 0) in waiter_entry1ap()
71 __sync_fetch_and_add(&ctx->count, 1); in waiter_entry1ap()
[all …]
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dtraining_ops.cc31 explicit ResourceApplyGradientDescent(OpKernelConstruction* ctx) in ResourceApplyGradientDescent() argument
32 : XlaOpKernel(ctx) {} in ResourceApplyGradientDescent()
33 void Compile(XlaOpKernelContext* ctx) override { in Compile() argument
35 DataType type = ctx->input_type(1); in Compile()
37 OP_REQUIRES_OK(ctx, ctx->ReadVariableInput(0, type, &var_shape, &handle)); in Compile()
39 TensorShape alpha_shape = ctx->InputShape(1); in Compile()
40 OP_REQUIRES(ctx, TensorShapeUtils::IsScalar(alpha_shape), in Compile()
44 TensorShape delta_shape = ctx->InputShape(2); in Compile()
46 ctx, var_shape.IsSameSize(delta_shape), in Compile()
51 handle = handle - ctx->Input(1) * ctx->Input(2); in Compile()
[all …]
/external/toolchain-utils/compiler_wrapper/
Dccache_flag_test.go13 withCCacheEnabledTestContext(t, func(ctx *testContext) {
14 cmd := ctx.must(callCompiler(ctx, ctx.cfg,
15 ctx.newCommand(gccX86_64, mainCc)))
26 withTestContext(t, func(ctx *testContext) {
27 cmd := ctx.must(callCompiler(ctx, ctx.cfg,
28 ctx.newCommand(gccX86_64, mainCc)))
36 withCCacheEnabledTestContext(t, func(ctx *testContext) {
37 ctx.env = append(ctx.env, "COMPILER_WRAPPER_FORCE_CCACHE=1")
39 cmd := ctx.must(callCompiler(ctx, ctx.cfg,
40 ctx.newCommand(gccX86_64, mainCc)))
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_gfx_cs.c17 void si_flush_gfx_cs(struct si_context *ctx, unsigned flags, struct pipe_fence_handle **fence) in si_flush_gfx_cs() argument
19 struct radeon_cmdbuf *cs = &ctx->gfx_cs; in si_flush_gfx_cs()
20 struct radeon_winsys *ws = ctx->ws; in si_flush_gfx_cs()
21 struct si_screen *sscreen = ctx->screen; in si_flush_gfx_cs()
25 if (ctx->gfx_flush_in_progress) in si_flush_gfx_cs()
41 if (ctx->gfx_level == GFX6) { in si_flush_gfx_cs()
54 if (!radeon_emitted(cs, ctx->initial_gfx_cs_size) && in si_flush_gfx_cs()
55 (!wait_flags || !ctx->gfx_last_ib_is_busy) && in si_flush_gfx_cs()
57 tc_driver_internal_flush_notify(ctx->tc); in si_flush_gfx_cs()
64 if (!(ctx->context_flags & SI_CONTEXT_FLAG_AUX) && in si_flush_gfx_cs()
[all …]
/external/skia/tools/perf-canvaskit-puppeteer/
Dcanvas_perf.js4 // tests should NOT call ctx.surface.flush()
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
[all …]
/external/bazelbuild-rules_android/rules/android_library/
Dimpl.bzl75 def _has_srcs(ctx):
76 return ctx.files.srcs or ctx.files.idl_srcs or getattr(ctx.files, "common_srcs", False)
78 def _uses_deprecated_implicit_export(ctx):
79 return (ctx.attr.deps and not (_has_srcs(ctx) or
80 ctx.attr._defined_assets or
81 ctx.files.resource_files or
82 ctx.attr.manifest or
83 ctx.attr.baseline_profiles))
85 def _uses_resources_and_deps_without_srcs(ctx):
86 return (ctx.attr.deps and
[all …]
/external/mesa3d/src/gallium/drivers/zink/nir_to_spirv/
Dnir_to_spirv.c120 get_fvec_constant(struct ntv_context *ctx, unsigned bit_size,
124 get_ivec_constant(struct ntv_context *ctx, unsigned bit_size,
128 emit_unop(struct ntv_context *ctx, SpvOp op, SpvId type, SpvId src);
131 emit_binop(struct ntv_context *ctx, SpvOp op, SpvId type,
135 emit_triop(struct ntv_context *ctx, SpvOp op, SpvId type,
261 get_bvec_type(struct ntv_context *ctx, int num_components) in get_bvec_type() argument
263 SpvId bool_type = spirv_builder_type_bool(&ctx->builder); in get_bvec_type()
265 return spirv_builder_type_vector(&ctx->builder, bool_type, in get_bvec_type()
273 find_image_type(struct ntv_context *ctx, nir_variable *var) in find_image_type() argument
275 struct hash_entry *he = _mesa_hash_table_search(&ctx->image_types, var); in find_image_type()
[all …]

12345678910>>...370