Home
last modified time | relevance | path

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

12345678910>>...109

/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 …]
Des31fNegativeTextureApiTests.cpp91 void activetexture (NegativeTestContext& ctx) in activetexture() argument
93ctx.beginSection("GL_INVALID_ENUM is generated if texture is not one of GL_TEXTUREi, where i range… in activetexture()
94 ctx.glActiveTexture(-1); in activetexture()
95 ctx.expectError(GL_INVALID_ENUM); in activetexture()
96 int numMaxTextureUnits = ctx.getInteger(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS); in activetexture()
97 ctx.glActiveTexture(GL_TEXTURE0 + numMaxTextureUnits); in activetexture()
98 ctx.expectError(GL_INVALID_ENUM); in activetexture()
99 ctx.endSection(); in activetexture()
104 void bindtexture (NegativeTestContext& ctx) in bindtexture() argument
107 ctx.glGenTextures(5, texture); in bindtexture()
[all …]
Des31fNegativeShaderApiTests.cpp91 void create_shader (NegativeTestContext& ctx) in create_shader() argument
93 ctx.beginSection("GL_INVALID_ENUM is generated if shaderType is not an accepted value."); in create_shader()
94 ctx.glCreateShader(-1); in create_shader()
95 ctx.expectError(GL_INVALID_ENUM); in create_shader()
96 ctx.endSection(); in create_shader()
99 void shader_source (NegativeTestContext& ctx) in shader_source() argument
102 const GLuint notAShader = ctx.glCreateShader(GL_VERTEX_SHADER); in shader_source()
103 ctx.glDeleteShader(notAShader); in shader_source()
105 ctx.beginSection("GL_INVALID_VALUE is generated if shader is not a value generated by OpenGL."); in shader_source()
106 ctx.glShaderSource(notAShader, 0, 0, 0); in shader_source()
[all …]
Des31fNegativeVertexArrayApiTests.cpp69 void vertex_attribf (NegativeTestContext& ctx) in vertex_attribf() argument
71ctx.beginSection("GL_INVALID_VALUE is generated if index is greater than or equal to GL_MAX_VERTEX… in vertex_attribf()
72 int maxVertexAttribs = ctx.getInteger(GL_MAX_VERTEX_ATTRIBS); in vertex_attribf()
73 ctx.glVertexAttrib1f(maxVertexAttribs, 0.0f); in vertex_attribf()
74 ctx.expectError(GL_INVALID_VALUE); in vertex_attribf()
75 ctx.glVertexAttrib2f(maxVertexAttribs, 0.0f, 0.0f); in vertex_attribf()
76 ctx.expectError(GL_INVALID_VALUE); in vertex_attribf()
77 ctx.glVertexAttrib3f(maxVertexAttribs, 0.0f, 0.0f, 0.0f); in vertex_attribf()
78 ctx.expectError(GL_INVALID_VALUE); in vertex_attribf()
79 ctx.glVertexAttrib4f(maxVertexAttribs, 0.0f, 0.0f, 0.0f, 0.0f); in vertex_attribf()
[all …]
Des31fNegativeStateApiTests.cpp71 static std::string getVtxFragVersionSources (const std::string source, NegativeTestContext& ctx) in getVtxFragVersionSources() argument
73 const bool isES32 = glu::contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)); in getVtxFragVersionSources()
83 void enable (NegativeTestContext& ctx) in enable() argument
85 ctx.beginSection("GL_INVALID_ENUM is generated if cap is not one of the allowed values."); in enable()
86 ctx.glEnable(-1); in enable()
87 ctx.expectError(GL_INVALID_ENUM); in enable()
88 ctx.endSection(); in enable()
92 void enablei (NegativeTestContext& ctx) in enablei() argument
94 …TCU_CHECK_AND_THROW(NotSupportedError, contextSupports(ctx.getRenderContext().getType(), glu::ApiT… in enablei()
96 ctx.beginSection("GL_INVALID_ENUM is generated if cap is not one of the allowed values."); in enablei()
[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/drivers/dri/i965/
Dintel_extensions.c37 intelInitExtensions(struct gl_context *ctx) in intelInitExtensions() argument
39 struct brw_context *brw = brw_context(ctx); in intelInitExtensions()
43 ctx->Extensions.ARB_arrays_of_arrays = true; in intelInitExtensions()
44 ctx->Extensions.ARB_buffer_storage = true; in intelInitExtensions()
45 ctx->Extensions.ARB_clear_texture = true; in intelInitExtensions()
46 ctx->Extensions.ARB_clip_control = true; in intelInitExtensions()
47 ctx->Extensions.ARB_copy_image = true; in intelInitExtensions()
48 ctx->Extensions.ARB_depth_buffer_float = true; in intelInitExtensions()
49 ctx->Extensions.ARB_depth_clamp = true; in intelInitExtensions()
50 ctx->Extensions.ARB_depth_texture = true; in intelInitExtensions()
[all …]
/external/mesa3d/src/mesa/main/
Denable.c46 if (!ctx->Extensions.EXTNAME) { \
52 update_derived_primitive_restart_state(struct gl_context *ctx) in update_derived_primitive_restart_state() argument
56 ctx->Array._PrimitiveRestart = ctx->Array.PrimitiveRestart in update_derived_primitive_restart_state()
57 || ctx->Array.PrimitiveRestartFixedIndex; in update_derived_primitive_restart_state()
64 client_state(struct gl_context *ctx, GLenum cap, GLboolean state) in client_state() argument
66 struct gl_vertex_array_object *vao = ctx->Array.VAO; in client_state()
88 var = &vao->VertexAttrib[VERT_ATTRIB_TEX(ctx->Array.ActiveTexture)].Enabled; in client_state()
89 flag = VERT_BIT_TEX(ctx->Array.ActiveTexture); in client_state()
107 FLUSH_VERTICES(ctx, _NEW_PROGRAM); in client_state()
108 ctx->VertexProgram.PointSizeEnabled = state; in client_state()
[all …]
Dfeedback.c51 GET_CURRENT_CONTEXT(ctx); in _mesa_FeedbackBuffer()
53 if (ctx->RenderMode==GL_FEEDBACK) { in _mesa_FeedbackBuffer()
54 _mesa_error( ctx, GL_INVALID_OPERATION, "glFeedbackBuffer" ); in _mesa_FeedbackBuffer()
58 _mesa_error( ctx, GL_INVALID_VALUE, "glFeedbackBuffer(size<0)" ); in _mesa_FeedbackBuffer()
62 _mesa_error( ctx, GL_INVALID_VALUE, "glFeedbackBuffer(buffer==NULL)" ); in _mesa_FeedbackBuffer()
63 ctx->Feedback.BufferSize = 0; in _mesa_FeedbackBuffer()
69 ctx->Feedback._Mask = 0; in _mesa_FeedbackBuffer()
72 ctx->Feedback._Mask = FB_3D; in _mesa_FeedbackBuffer()
75 ctx->Feedback._Mask = (FB_3D | FB_COLOR); in _mesa_FeedbackBuffer()
78 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->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 …]
Dstate.c66 update_program_enables(struct gl_context *ctx) in update_program_enables() argument
72 ctx->VertexProgram._Enabled = ctx->VertexProgram.Enabled in update_program_enables()
73 && ctx->VertexProgram.Current->arb.Instructions; in update_program_enables()
74 ctx->FragmentProgram._Enabled = ctx->FragmentProgram.Enabled in update_program_enables()
75 && ctx->FragmentProgram.Current->arb.Instructions; in update_program_enables()
76 ctx->ATIFragmentShader._Enabled = ctx->ATIFragmentShader.Enabled in update_program_enables()
77 && ctx->ATIFragmentShader.Current->Instructions[0]; in update_program_enables()
96 update_program(struct gl_context *ctx) in update_program() argument
99 ctx->_Shader->CurrentProgram[MESA_SHADER_VERTEX]; in update_program()
101 ctx->_Shader->CurrentProgram[MESA_SHADER_TESS_CTRL]; in update_program()
[all …]
Dblend.c46 legal_src_factor(const struct gl_context *ctx, GLenum factor) in legal_src_factor() argument
65 return _mesa_is_desktop_gl(ctx) || ctx->API == API_OPENGLES2; in legal_src_factor()
70 return ctx->API != API_OPENGLES in legal_src_factor()
71 && ctx->Extensions.ARB_blend_func_extended; in legal_src_factor()
83 legal_dst_factor(const struct gl_context *ctx, GLenum factor) in legal_dst_factor() argument
101 return _mesa_is_desktop_gl(ctx) || ctx->API == API_OPENGLES2; in legal_dst_factor()
103 return (ctx->API != API_OPENGLES in legal_dst_factor()
104 && ctx->Extensions.ARB_blend_func_extended) in legal_dst_factor()
105 || _mesa_is_gles3(ctx); in legal_dst_factor()
110 return ctx->API != API_OPENGLES in legal_dst_factor()
[all …]
Dpixel.c48 GET_CURRENT_CONTEXT(ctx); in _mesa_PixelZoom()
50 if (ctx->Pixel.ZoomX == xfactor && in _mesa_PixelZoom()
51 ctx->Pixel.ZoomY == yfactor) in _mesa_PixelZoom()
54 FLUSH_VERTICES(ctx, _NEW_PIXEL); in _mesa_PixelZoom()
55 ctx->Pixel.ZoomX = xfactor; in _mesa_PixelZoom()
56 ctx->Pixel.ZoomY = yfactor; in _mesa_PixelZoom()
69 get_pixelmap(struct gl_context *ctx, GLenum map) in get_pixelmap() argument
73 return &ctx->PixelMaps.ItoI; in get_pixelmap()
75 return &ctx->PixelMaps.StoS; in get_pixelmap()
77 return &ctx->PixelMaps.ItoR; in get_pixelmap()
[all …]
Dpixelstore.c42 GET_CURRENT_CONTEXT(ctx); in _mesa_PixelStorei()
46 if (!_mesa_is_desktop_gl(ctx)) in _mesa_PixelStorei()
48 ctx->Pack.SwapBytes = param ? GL_TRUE : GL_FALSE; in _mesa_PixelStorei()
51 if (!_mesa_is_desktop_gl(ctx)) in _mesa_PixelStorei()
53 ctx->Pack.LsbFirst = param ? GL_TRUE : GL_FALSE; in _mesa_PixelStorei()
56 if (!_mesa_is_desktop_gl(ctx) && !_mesa_is_gles3(ctx)) in _mesa_PixelStorei()
60 ctx->Pack.RowLength = param; in _mesa_PixelStorei()
63 if (!_mesa_is_desktop_gl(ctx) && !_mesa_is_gles3(ctx)) in _mesa_PixelStorei()
67 ctx->Pack.ImageHeight = param; in _mesa_PixelStorei()
70 if (!_mesa_is_desktop_gl(ctx) && !_mesa_is_gles3(ctx)) in _mesa_PixelStorei()
[all …]
Dapi_validate.c43 check_blend_func_error(struct gl_context *ctx) in check_blend_func_error() argument
54 for (unsigned i = ctx->Const.MaxDualSourceDrawBuffers; in check_blend_func_error()
55 i < ctx->DrawBuffer->_NumColorDrawBuffers; in check_blend_func_error()
57 if (ctx->Color.Blend[i]._UsesDualSrc) { in check_blend_func_error()
58 _mesa_error(ctx, GL_INVALID_OPERATION, in check_blend_func_error()
64 if (ctx->Color.BlendEnabled && ctx->Color._AdvancedBlendMode) { in check_blend_func_error()
77 if (ctx->DrawBuffer->ColorDrawBuffer[0] == GL_FRONT_AND_BACK) { in check_blend_func_error()
78 _mesa_error(ctx, GL_INVALID_OPERATION, in check_blend_func_error()
84 for (unsigned i = 1; i < ctx->DrawBuffer->_NumColorDrawBuffers; i++) { in check_blend_func_error()
85 if (ctx->DrawBuffer->ColorDrawBuffer[i] != GL_NONE) { in check_blend_func_error()
[all …]
Dpolygon.c56 GET_CURRENT_CONTEXT(ctx); in _mesa_CullFace()
59 _mesa_debug(ctx, "glCullFace %s\n", _mesa_enum_to_string(mode)); in _mesa_CullFace()
62 _mesa_error( ctx, GL_INVALID_ENUM, "glCullFace" ); in _mesa_CullFace()
66 if (ctx->Polygon.CullFaceMode == mode) in _mesa_CullFace()
69 FLUSH_VERTICES(ctx, _NEW_POLYGON); in _mesa_CullFace()
70 ctx->Polygon.CullFaceMode = mode; in _mesa_CullFace()
72 if (ctx->Driver.CullFace) in _mesa_CullFace()
73 ctx->Driver.CullFace( ctx, mode ); in _mesa_CullFace()
91 GET_CURRENT_CONTEXT(ctx); in _mesa_FrontFace()
94 _mesa_debug(ctx, "glFrontFace %s\n", _mesa_enum_to_string(mode)); in _mesa_FrontFace()
[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 …]
Dunix.c74 static void usage(e2fsck_t ctx) in usage() argument
80 ctx->program_name); in usage()
101 static void show_stats(e2fsck_t ctx) in show_stats() argument
103 ext2_filsys fs = ctx->fs; in show_stats()
112 dir_links = 2 * ctx->fs_directory_count - 1; in show_stats()
113 num_files = ctx->fs_total_count - dir_links; in show_stats()
114 num_links = ctx->fs_links_count - dir_links; in show_stats()
122 frag_percent_file = (10000 * ctx->fs_fragmented) / inodes_used; in show_stats()
125 frag_percent_dir = (10000 * ctx->fs_fragmented_dir) / inodes_used; in show_stats()
128 frag_percent_total = ((10000 * (ctx->fs_fragmented + in show_stats()
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_hw_context.c61 void si_need_cs_space(struct si_context *ctx) in si_need_cs_space() argument
63 struct radeon_winsys_cs *cs = ctx->b.gfx.cs; in si_need_cs_space()
64 struct radeon_winsys_cs *ce_ib = ctx->ce_ib; in si_need_cs_space()
77 if (unlikely(!radeon_cs_memory_below_limit(ctx->b.screen, ctx->b.gfx.cs, in si_need_cs_space()
78 ctx->b.vram, ctx->b.gtt))) { in si_need_cs_space()
79 ctx->b.gtt = 0; in si_need_cs_space()
80 ctx->b.vram = 0; in si_need_cs_space()
81 ctx->b.gfx.flush(ctx, RADEON_FLUSH_ASYNC, NULL); in si_need_cs_space()
84 ctx->b.gtt = 0; in si_need_cs_space()
85 ctx->b.vram = 0; in si_need_cs_space()
[all …]
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnouveau_state.c37 nouveau_alpha_func(struct gl_context *ctx, GLenum func, GLfloat ref) in nouveau_alpha_func() argument
39 context_dirty(ctx, ALPHA_FUNC); in nouveau_alpha_func()
43 nouveau_blend_color(struct gl_context *ctx, const GLfloat color[4]) in nouveau_blend_color() argument
45 context_dirty(ctx, BLEND_COLOR); in nouveau_blend_color()
49 nouveau_blend_equation_separate(struct gl_context *ctx, GLenum modeRGB, GLenum modeA) in nouveau_blend_equation_separate() argument
51 context_dirty(ctx, BLEND_EQUATION); in nouveau_blend_equation_separate()
55 nouveau_blend_func_separate(struct gl_context *ctx, GLenum sfactorRGB, in nouveau_blend_func_separate() argument
58 context_dirty(ctx, BLEND_FUNC); in nouveau_blend_func_separate()
62 nouveau_clip_plane(struct gl_context *ctx, GLenum plane, const GLfloat *equation) in nouveau_clip_plane() argument
64 context_dirty_i(ctx, CLIP_PLANE, plane - GL_CLIP_PLANE0); in nouveau_clip_plane()
[all …]
/external/boringssl/src/decrepit/bio/
Dbase64_bio.c92 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/
Dcso_context.c128 static boolean delete_blend_state(struct cso_context *ctx, void *state) in delete_blend_state() argument
132 if (ctx->blend == cso->data) in delete_blend_state()
141 static boolean delete_depth_stencil_state(struct cso_context *ctx, void *state) in delete_depth_stencil_state() argument
146 if (ctx->depth_stencil == cso->data) in delete_depth_stencil_state()
156 static boolean delete_sampler_state(struct cso_context *ctx, void *state) in delete_sampler_state() argument
165 static boolean delete_rasterizer_state(struct cso_context *ctx, void *state) in delete_rasterizer_state() argument
169 if (ctx->rasterizer == cso->data) in delete_rasterizer_state()
177 static boolean delete_vertex_elements(struct cso_context *ctx, in delete_vertex_elements() argument
182 if (ctx->velements == cso->data) in delete_vertex_elements()
192 static inline boolean delete_cso(struct cso_context *ctx, in delete_cso() argument
[all …]
/external/mesa3d/src/mesa/drivers/common/
Ddriverfuncs.c213 _mesa_init_driver_state(struct gl_context *ctx) in _mesa_init_driver_state() argument
215 ctx->Driver.AlphaFunc(ctx, ctx->Color.AlphaFunc, ctx->Color.AlphaRef); in _mesa_init_driver_state()
217 ctx->Driver.BlendColor(ctx, ctx->Color.BlendColor); in _mesa_init_driver_state()
219 ctx->Driver.BlendEquationSeparate(ctx, in _mesa_init_driver_state()
220 ctx->Color.Blend[0].EquationRGB, in _mesa_init_driver_state()
221 ctx->Color.Blend[0].EquationA); in _mesa_init_driver_state()
223 ctx->Driver.BlendFuncSeparate(ctx, in _mesa_init_driver_state()
224 ctx->Color.Blend[0].SrcRGB, in _mesa_init_driver_state()
225 ctx->Color.Blend[0].DstRGB, in _mesa_init_driver_state()
226 ctx->Color.Blend[0].SrcA, in _mesa_init_driver_state()
[all …]
/external/boringssl/src/crypto/evp/
Devp_ctx.c141 void EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx) { in EVP_PKEY_CTX_free() argument
142 if (ctx == NULL) { in EVP_PKEY_CTX_free()
145 if (ctx->pmeth && ctx->pmeth->cleanup) { in EVP_PKEY_CTX_free()
146 ctx->pmeth->cleanup(ctx); in EVP_PKEY_CTX_free()
148 EVP_PKEY_free(ctx->pkey); in EVP_PKEY_CTX_free()
149 EVP_PKEY_free(ctx->peerkey); in EVP_PKEY_CTX_free()
150 OPENSSL_free(ctx); in EVP_PKEY_CTX_free()
153 EVP_PKEY_CTX *EVP_PKEY_CTX_dup(EVP_PKEY_CTX *ctx) { in EVP_PKEY_CTX_dup() argument
154 if (!ctx->pmeth || !ctx->pmeth->copy) { in EVP_PKEY_CTX_dup()
165 ret->pmeth = ctx->pmeth; in EVP_PKEY_CTX_dup()
[all …]
/external/libdrm/intel/
Dintel_decode.c115 instr_out(struct drm_intel_decode *ctx, unsigned int index, in instr_out() argument
120 uint32_t offset = ctx->hw_offset + index * 4; in instr_out()
122 if (index > ctx->count) { in instr_out()
123 if (!ctx->overflowed) { in instr_out()
125 ctx->overflowed = true; in instr_out()
138 ctx->data[index], index == 0 ? "" : " "); in instr_out()
145 decode_MI_SET_CONTEXT(struct drm_intel_decode *ctx) in decode_MI_SET_CONTEXT() argument
147 uint32_t data = ctx->data[1]; in decode_MI_SET_CONTEXT()
148 if (ctx->gen > 7) in decode_MI_SET_CONTEXT()
151 instr_out(ctx, 0, "MI_SET_CONTEXT\n"); in decode_MI_SET_CONTEXT()
[all …]

12345678910>>...109