Home
last modified time | relevance | path

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

12345678910>>...101

/external/deqp/modules/gles31/functional/
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 …]
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 …]
Des31fNegativeVertexArrayApiTests.cpp62 void vertex_attribf (NegativeTestContext& ctx) in vertex_attribf() argument
64ctx.beginSection("GL_INVALID_VALUE is generated if index is greater than or equal to GL_MAX_VERTEX… in vertex_attribf()
65 int maxVertexAttribs = ctx.getInteger(GL_MAX_VERTEX_ATTRIBS); in vertex_attribf()
66 ctx.glVertexAttrib1f(maxVertexAttribs, 0.0f); in vertex_attribf()
67 ctx.expectError(GL_INVALID_VALUE); in vertex_attribf()
68 ctx.glVertexAttrib2f(maxVertexAttribs, 0.0f, 0.0f); in vertex_attribf()
69 ctx.expectError(GL_INVALID_VALUE); in vertex_attribf()
70 ctx.glVertexAttrib3f(maxVertexAttribs, 0.0f, 0.0f, 0.0f); in vertex_attribf()
71 ctx.expectError(GL_INVALID_VALUE); in vertex_attribf()
72 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/main/
Dstate.c57 update_separate_specular(struct gl_context *ctx) in update_separate_specular() argument
59 if (_mesa_need_secondary_color(ctx)) in update_separate_specular()
60 ctx->_TriangleCaps |= DD_SEPARATE_SPECULAR; in update_separate_specular()
62 ctx->_TriangleCaps &= ~DD_SEPARATE_SPECULAR; in update_separate_specular()
74 update_program_enables(struct gl_context *ctx) in update_program_enables() argument
80 ctx->VertexProgram._Enabled = ctx->VertexProgram.Enabled in update_program_enables()
81 && ctx->VertexProgram.Current->Base.Instructions; in update_program_enables()
82 ctx->FragmentProgram._Enabled = ctx->FragmentProgram.Enabled in update_program_enables()
83 && ctx->FragmentProgram.Current->Base.Instructions; in update_program_enables()
84 ctx->ATIFragmentShader._Enabled = ctx->ATIFragmentShader.Enabled in update_program_enables()
[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()
111 ASSERT_OUTSIDE_BEGIN_END(ctx); in _mesa_ClearStencil()
113 if (ctx->Stencil.Clear == (GLuint) s) in _mesa_ClearStencil()
116 FLUSH_VERTICES(ctx, _NEW_STENCIL); in _mesa_ClearStencil()
117 ctx->Stencil.Clear = (GLuint) s; in _mesa_ClearStencil()
138 GET_CURRENT_CONTEXT(ctx); in _mesa_StencilFuncSeparateATI()
139 const GLint stencilMax = (1 << ctx->DrawBuffer->Visual.stencilBits) - 1; in _mesa_StencilFuncSeparateATI()
140 ASSERT_OUTSIDE_BEGIN_END(ctx); in _mesa_StencilFuncSeparateATI()
[all …]
Dfeedback.c56 GET_CURRENT_CONTEXT(ctx); in _mesa_FeedbackBuffer()
57 ASSERT_OUTSIDE_BEGIN_END(ctx); in _mesa_FeedbackBuffer()
59 if (ctx->RenderMode==GL_FEEDBACK) { in _mesa_FeedbackBuffer()
60 _mesa_error( ctx, GL_INVALID_OPERATION, "glFeedbackBuffer" ); in _mesa_FeedbackBuffer()
64 _mesa_error( ctx, GL_INVALID_VALUE, "glFeedbackBuffer(size<0)" ); in _mesa_FeedbackBuffer()
68 _mesa_error( ctx, GL_INVALID_VALUE, "glFeedbackBuffer(buffer==NULL)" ); in _mesa_FeedbackBuffer()
69 ctx->Feedback.BufferSize = 0; in _mesa_FeedbackBuffer()
75 ctx->Feedback._Mask = 0; in _mesa_FeedbackBuffer()
78 ctx->Feedback._Mask = FB_3D; in _mesa_FeedbackBuffer()
81 ctx->Feedback._Mask = (FB_3D | FB_COLOR); in _mesa_FeedbackBuffer()
[all …]
Denable.c46 if (!ctx->Extensions.EXTNAME) { \
55 client_state(struct gl_context *ctx, GLenum cap, GLboolean state) in client_state() argument
57 struct gl_array_object *arrayObj = ctx->Array.ArrayObj; in client_state()
79 var = &arrayObj->VertexAttrib[VERT_ATTRIB_TEX(ctx->Array.ActiveTexture)].Enabled; in client_state()
80 flag = VERT_BIT_TEX(ctx->Array.ActiveTexture); in client_state()
131 if (!ctx->Extensions.NV_primitive_restart) { in client_state()
134 var = &ctx->Array.PrimitiveRestart; in client_state()
145 FLUSH_VERTICES(ctx, _NEW_ARRAY); in client_state()
147 _ae_invalidate_state(ctx, _NEW_ARRAY); in client_state()
158 if (ctx->Driver.Enable) { in client_state()
[all …]
Dpixelstore.c43 GET_CURRENT_CONTEXT(ctx); in _mesa_PixelStorei()
44 ASSERT_OUTSIDE_BEGIN_END(ctx); in _mesa_PixelStorei()
48 if (!_mesa_is_desktop_gl(ctx)) in _mesa_PixelStorei()
50 if (param == (GLint)ctx->Pack.SwapBytes) in _mesa_PixelStorei()
52 FLUSH_VERTICES(ctx, _NEW_PACKUNPACK); in _mesa_PixelStorei()
53 ctx->Pack.SwapBytes = param ? GL_TRUE : GL_FALSE; in _mesa_PixelStorei()
56 if (!_mesa_is_desktop_gl(ctx)) in _mesa_PixelStorei()
58 if (param == (GLint)ctx->Pack.LsbFirst) in _mesa_PixelStorei()
60 FLUSH_VERTICES(ctx, _NEW_PACKUNPACK); in _mesa_PixelStorei()
61 ctx->Pack.LsbFirst = param ? GL_TRUE : GL_FALSE; in _mesa_PixelStorei()
[all …]
Dversion.c36 override_version(struct gl_context *ctx) in override_version() argument
54 ctx->Version = major * 10 + minor; in override_version()
63 _mesa_override_glsl_version(struct gl_context *ctx) in _mesa_override_glsl_version() argument
74 n = sscanf(version, "%u", &ctx->Const.GLSLVersion); in _mesa_override_glsl_version()
85 compute_version(struct gl_context *ctx) in compute_version() argument
90 const GLboolean ver_1_3 = (ctx->Extensions.ARB_texture_border_clamp && in compute_version()
91 ctx->Extensions.ARB_texture_cube_map && in compute_version()
92 ctx->Extensions.ARB_texture_env_combine && in compute_version()
93 ctx->Extensions.ARB_texture_env_dot3); in compute_version()
95 ctx->Extensions.ARB_depth_texture && in compute_version()
[all …]
Dcontext.c168 _mesa_notifySwapBuffers(struct gl_context *ctx) in _mesa_notifySwapBuffers() argument
171 _mesa_debug(ctx, "SwapBuffers\n"); in _mesa_notifySwapBuffers()
172 FLUSH_CURRENT( ctx, 0 ); in _mesa_notifySwapBuffers()
173 if (ctx->Driver.Flush) { in _mesa_notifySwapBuffers()
174 ctx->Driver.Flush(ctx); in _mesa_notifySwapBuffers()
387 one_time_init( struct gl_context *ctx ) in one_time_init() argument
413 _mesa_debug(ctx, "Mesa %s DEBUG build %s %s\n", in one_time_init()
424 if (!(api_init_mask & (1 << ctx->API))) { in one_time_init()
425 _mesa_init_get_hash(ctx); in one_time_init()
433 if (_mesa_is_desktop_gl(ctx) || ctx->API == API_OPENGLES2) in one_time_init()
[all …]
Dpixel.c53 GET_CURRENT_CONTEXT(ctx); in _mesa_PixelZoom()
55 ASSERT_OUTSIDE_BEGIN_END(ctx); in _mesa_PixelZoom()
57 if (ctx->Pixel.ZoomX == xfactor && in _mesa_PixelZoom()
58 ctx->Pixel.ZoomY == yfactor) in _mesa_PixelZoom()
61 FLUSH_VERTICES(ctx, _NEW_PIXEL); in _mesa_PixelZoom()
62 ctx->Pixel.ZoomX = xfactor; in _mesa_PixelZoom()
63 ctx->Pixel.ZoomY = yfactor; in _mesa_PixelZoom()
76 get_pixelmap(struct gl_context *ctx, GLenum map) in get_pixelmap() argument
80 return &ctx->PixelMaps.ItoI; in get_pixelmap()
82 return &ctx->PixelMaps.StoS; in get_pixelmap()
[all …]
Dpolygon.c56 GET_CURRENT_CONTEXT(ctx); in _mesa_CullFace()
57 ASSERT_OUTSIDE_BEGIN_END(ctx); in _mesa_CullFace()
60 _mesa_debug(ctx, "glCullFace %s\n", _mesa_lookup_enum_by_nr(mode)); in _mesa_CullFace()
63 _mesa_error( ctx, GL_INVALID_ENUM, "glCullFace" ); in _mesa_CullFace()
67 if (ctx->Polygon.CullFaceMode == mode) in _mesa_CullFace()
70 FLUSH_VERTICES(ctx, _NEW_POLYGON); in _mesa_CullFace()
71 ctx->Polygon.CullFaceMode = mode; in _mesa_CullFace()
73 if (ctx->Driver.CullFace) in _mesa_CullFace()
74 ctx->Driver.CullFace( ctx, mode ); in _mesa_CullFace()
92 GET_CURRENT_CONTEXT(ctx); in _mesa_FrontFace()
[all …]
Dblend.c46 legal_src_factor(const struct gl_context *ctx, GLenum factor) in legal_src_factor() argument
51 return ctx->Extensions.NV_blend_square; in legal_src_factor()
66 return _mesa_is_desktop_gl(ctx) || ctx->API == API_OPENGLES2; in legal_src_factor()
71 return _mesa_is_desktop_gl(ctx) in legal_src_factor()
72 && ctx->Extensions.ARB_blend_func_extended; in legal_src_factor()
84 legal_dst_factor(const struct gl_context *ctx, GLenum factor) in legal_dst_factor() argument
89 return ctx->Extensions.NV_blend_square; in legal_dst_factor()
103 return _mesa_is_desktop_gl(ctx) || ctx->API == API_OPENGLES2; in legal_dst_factor()
105 return (_mesa_is_desktop_gl(ctx) in legal_dst_factor()
106 && ctx->Extensions.ARB_blend_func_extended) in legal_dst_factor()
[all …]
/external/e2fsprogs/e2fsck/
De2fsck.c54 errcode_t e2fsck_reset_context(e2fsck_t ctx) in e2fsck_reset_context() argument
58 ctx->flags &= E2F_RESET_FLAGS; in e2fsck_reset_context()
59 ctx->lost_and_found = 0; in e2fsck_reset_context()
60 ctx->bad_lost_and_found = 0; in e2fsck_reset_context()
61 if (ctx->inode_used_map) { in e2fsck_reset_context()
62 ext2fs_free_inode_bitmap(ctx->inode_used_map); in e2fsck_reset_context()
63 ctx->inode_used_map = 0; in e2fsck_reset_context()
65 if (ctx->inode_dir_map) { in e2fsck_reset_context()
66 ext2fs_free_inode_bitmap(ctx->inode_dir_map); in e2fsck_reset_context()
67 ctx->inode_dir_map = 0; in e2fsck_reset_context()
[all …]
Dunix.c74 static void usage(e2fsck_t ctx) in usage() argument
81 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/auxiliary/cso_cache/
Dcso_context.c123 static boolean delete_blend_state(struct cso_context *ctx, void *state) in delete_blend_state() argument
127 if (ctx->blend == cso->data) in delete_blend_state()
136 static boolean delete_depth_stencil_state(struct cso_context *ctx, void *state) in delete_depth_stencil_state() argument
141 if (ctx->depth_stencil == cso->data) in delete_depth_stencil_state()
151 static boolean delete_sampler_state(struct cso_context *ctx, void *state) in delete_sampler_state() argument
160 static boolean delete_rasterizer_state(struct cso_context *ctx, void *state) in delete_rasterizer_state() argument
164 if (ctx->rasterizer == cso->data) in delete_rasterizer_state()
172 static boolean delete_vertex_elements(struct cso_context *ctx, in delete_vertex_elements() argument
177 if (ctx->velements == cso->data) in delete_vertex_elements()
187 static INLINE boolean delete_cso(struct cso_context *ctx, in delete_cso() argument
[all …]
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnouveau_state.c36 nouveau_alpha_func(struct gl_context *ctx, GLenum func, GLfloat ref) in nouveau_alpha_func() argument
38 context_dirty(ctx, ALPHA_FUNC); in nouveau_alpha_func()
42 nouveau_blend_color(struct gl_context *ctx, const GLfloat color[4]) in nouveau_blend_color() argument
44 context_dirty(ctx, BLEND_COLOR); in nouveau_blend_color()
48 nouveau_blend_equation_separate(struct gl_context *ctx, GLenum modeRGB, GLenum modeA) in nouveau_blend_equation_separate() argument
50 context_dirty(ctx, BLEND_EQUATION); in nouveau_blend_equation_separate()
54 nouveau_blend_func_separate(struct gl_context *ctx, GLenum sfactorRGB, in nouveau_blend_func_separate() argument
57 context_dirty(ctx, BLEND_FUNC); in nouveau_blend_func_separate()
61 nouveau_clip_plane(struct gl_context *ctx, GLenum plane, const GLfloat *equation) in nouveau_clip_plane() argument
63 context_dirty_i(ctx, CLIP_PLANE, plane - GL_CLIP_PLANE0); in nouveau_clip_plane()
[all …]
/external/mesa3d/src/mesa/drivers/dri/intel/
Dintel_extensions.c42 intelInitExtensions(struct gl_context *ctx) in intelInitExtensions() argument
44 struct intel_context *intel = intel_context(ctx); in intelInitExtensions()
46 ctx->Extensions.ARB_draw_elements_base_vertex = true; in intelInitExtensions()
47 ctx->Extensions.ARB_explicit_attrib_location = true; in intelInitExtensions()
48 if (_mesa_is_desktop_gl(ctx)) in intelInitExtensions()
49 ctx->Extensions.ARB_framebuffer_object = true; in intelInitExtensions()
50 ctx->Extensions.ARB_half_float_pixel = true; in intelInitExtensions()
51 ctx->Extensions.ARB_map_buffer_range = true; in intelInitExtensions()
52 ctx->Extensions.ARB_point_sprite = true; in intelInitExtensions()
53 ctx->Extensions.ARB_shader_objects = true; in intelInitExtensions()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_extensions.c42 intelInitExtensions(struct gl_context *ctx) in intelInitExtensions() argument
44 struct intel_context *intel = intel_context(ctx); in intelInitExtensions()
46 ctx->Extensions.ARB_draw_elements_base_vertex = true; in intelInitExtensions()
47 ctx->Extensions.ARB_explicit_attrib_location = true; in intelInitExtensions()
48 if (_mesa_is_desktop_gl(ctx)) in intelInitExtensions()
49 ctx->Extensions.ARB_framebuffer_object = true; in intelInitExtensions()
50 ctx->Extensions.ARB_half_float_pixel = true; in intelInitExtensions()
51 ctx->Extensions.ARB_map_buffer_range = true; in intelInitExtensions()
52 ctx->Extensions.ARB_point_sprite = true; in intelInitExtensions()
53 ctx->Extensions.ARB_shader_objects = true; in intelInitExtensions()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_extensions.c42 intelInitExtensions(struct gl_context *ctx) in intelInitExtensions() argument
44 struct intel_context *intel = intel_context(ctx); in intelInitExtensions()
46 ctx->Extensions.ARB_draw_elements_base_vertex = true; in intelInitExtensions()
47 ctx->Extensions.ARB_explicit_attrib_location = true; in intelInitExtensions()
48 if (_mesa_is_desktop_gl(ctx)) in intelInitExtensions()
49 ctx->Extensions.ARB_framebuffer_object = true; in intelInitExtensions()
50 ctx->Extensions.ARB_half_float_pixel = true; in intelInitExtensions()
51 ctx->Extensions.ARB_map_buffer_range = true; in intelInitExtensions()
52 ctx->Extensions.ARB_point_sprite = true; in intelInitExtensions()
53 ctx->Extensions.ARB_shader_objects = true; in intelInitExtensions()
[all …]
/external/boringssl/src/decrepit/bio/
Dbase64_bio.c90 BIO_B64_CTX *ctx; in b64_new() local
92 ctx = OPENSSL_malloc(sizeof(*ctx)); in b64_new()
93 if (ctx == NULL) { in b64_new()
97 memset(ctx, 0, sizeof(*ctx)); in b64_new()
99 ctx->cont = 1; in b64_new()
100 ctx->start = 1; in b64_new()
103 bio->ptr = (char *)ctx; in b64_new()
120 BIO_B64_CTX *ctx; in b64_read() local
126 ctx = (BIO_B64_CTX *) b->ptr; in b64_read()
128 if (ctx == NULL || b->next_bio == NULL) { in b64_read()
[all …]
/external/mesa3d/src/mesa/drivers/common/
Ddriverfuncs.c221 _mesa_init_driver_state(struct gl_context *ctx) in _mesa_init_driver_state() argument
223 ctx->Driver.AlphaFunc(ctx, ctx->Color.AlphaFunc, ctx->Color.AlphaRef); in _mesa_init_driver_state()
225 ctx->Driver.BlendColor(ctx, ctx->Color.BlendColor); in _mesa_init_driver_state()
227 ctx->Driver.BlendEquationSeparate(ctx, in _mesa_init_driver_state()
228 ctx->Color.Blend[0].EquationRGB, in _mesa_init_driver_state()
229 ctx->Color.Blend[0].EquationA); in _mesa_init_driver_state()
231 ctx->Driver.BlendFuncSeparate(ctx, in _mesa_init_driver_state()
232 ctx->Color.Blend[0].SrcRGB, in _mesa_init_driver_state()
233 ctx->Color.Blend[0].DstRGB, in _mesa_init_driver_state()
234 ctx->Color.Blend[0].SrcA, in _mesa_init_driver_state()
[all …]

12345678910>>...101