Home
last modified time | relevance | path

Searched refs:glthread (Results 1 - 15 of 15) sorted by relevance

/third_party/mesa3d/src/mesa/main/
H A Dglthread.c24 /** @file glthread.c
26 * Support functions for the glthread feature of Mesa.
36 #include "main/glthread.h"
95 struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_init() local
97 assert(!glthread->enabled); in _mesa_glthread_init()
99 if (!util_queue_init(&glthread->queue, "gl", MARSHAL_MAX_BATCHES - 2, in _mesa_glthread_init()
104 glthread->VAOs = _mesa_NewHashTable(); in _mesa_glthread_init()
105 if (!glthread->VAOs) { in _mesa_glthread_init()
106 util_queue_destroy(&glthread->queue); in _mesa_glthread_init()
110 _mesa_glthread_reset_vao(&glthread in _mesa_glthread_init()
162 struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_destroy() local
191 struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_flush_batch() local
258 struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_finish() local
311 _mesa_error_glthread_safe(struct gl_context *ctx, GLenum error, bool glthread, const char *format, ...) _mesa_error_glthread_safe() argument
[all...]
H A Dglthread_varray.c24 /* This implements vertex array state tracking for glthread. It's separate
26 * to serve glthread.
29 #include "main/glthread.h"
74 struct glthread_state *glthread = &ctx->GLThread; in lookup_vao() local
79 if (glthread->LastLookedUpVAO && in lookup_vao()
80 glthread->LastLookedUpVAO->Name == id) { in lookup_vao()
81 vao = glthread->LastLookedUpVAO; in lookup_vao()
83 vao = _mesa_HashLookupLocked(glthread->VAOs, id); in lookup_vao()
87 glthread->LastLookedUpVAO = vao; in lookup_vao()
96 struct glthread_state *glthread in _mesa_glthread_BindVertexArray() local
112 struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_DeleteVertexArrays() local
146 struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_GenVertexArrays() local
179 struct glthread_state *glthread = &ctx->GLThread; update_primitive_restart() local
299 set_attrib_binding(struct glthread_state *glthread, struct glthread_vao *vao, gl_vert_attrib attrib, unsigned new_binding_index) set_attrib_binding() argument
345 attrib_pointer(struct glthread_state *glthread, struct glthread_vao *vao, GLuint buffer, gl_vert_attrib attrib, GLint size, GLenum type, GLsizei stride, const void *pointer) attrib_pointer() argument
373 struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_AttribPointer() local
386 struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_DSAAttribPointer() local
398 attrib_format(struct glthread_state *glthread, struct glthread_vao *vao, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset) attrib_format() argument
416 struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_AttribFormat() local
427 struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_DSAAttribFormat() local
435 bind_vertex_buffer(struct glthread_state *glthread, struct glthread_vao *vao, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride) bind_vertex_buffer() argument
456 struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_VertexBuffer() local
467 struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_DSAVertexBuffer() local
481 struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_DSAVertexBuffers() local
495 binding_divisor(struct glthread_state *glthread, struct glthread_vao *vao, GLuint bindingindex, GLuint divisor) binding_divisor() argument
514 struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_BindingDivisor() local
523 struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_DSABindingDivisor() local
534 struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_AttribBinding() local
549 struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_DSAAttribBinding() local
577 struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_PushClientAttrib() local
606 struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_PopClientAttrib() local
645 struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_ClientAttribDefault() local
[all...]
H A Dglthread_bufferobj.c71 struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_upload() local
78 unsigned offset = align(glthread->upload_offset, 8); in _mesa_glthread_upload()
81 if (unlikely(!glthread->upload_buffer || offset + size > default_size)) { in _mesa_glthread_upload()
101 if (glthread->upload_buffer_private_refcount > 0) { in _mesa_glthread_upload()
102 p_atomic_add(&glthread->upload_buffer->RefCount, in _mesa_glthread_upload()
103 -glthread->upload_buffer_private_refcount); in _mesa_glthread_upload()
104 glthread->upload_buffer_private_refcount = 0; in _mesa_glthread_upload()
106 _mesa_reference_buffer_object(ctx, &glthread->upload_buffer, NULL); in _mesa_glthread_upload()
107 glthread->upload_buffer = in _mesa_glthread_upload()
108 new_upload_buffer(ctx, default_size, &glthread in _mesa_glthread_upload()
177 struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_BindBuffer() local
209 struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_DeleteBuffers() local
[all...]
H A Dglthread_marshal.h33 #include "main/glthread.h"
59 struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_allocate_command() local
64 if (unlikely(glthread->used + num_elements > MARSHAL_MAX_CMD_SIZE / 8)) in _mesa_glthread_allocate_command()
67 struct glthread_batch *next = glthread->next_batch; in _mesa_glthread_allocate_command()
69 (struct marshal_cmd_base *)&next->buffer[glthread->used]; in _mesa_glthread_allocate_command()
70 glthread->used += num_elements; in _mesa_glthread_allocate_command()
95 const struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_has_non_vbo_vertices_or_indices() local
96 struct glthread_vao *vao = glthread->CurrentVAO; in _mesa_glthread_has_non_vbo_vertices_or_indices()
106 const struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_has_non_vbo_vertices() local
107 const struct glthread_vao *vao = glthread in _mesa_glthread_has_non_vbo_vertices()
116 const struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_has_non_vbo_vertices_or_indirect() local
127 const struct glthread_state *glthread = &ctx->GLThread; _mesa_glthread_has_non_vbo_vertices_or_indices_or_indirect() local
[all...]
H A Dglthread_shaderobj.c124 struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_ProgramChanged() local
127 p_atomic_set(&glthread->LastProgramChangeBatch, glthread->next); in _mesa_glthread_ProgramChanged()
H A Duniforms.h98 bool glthread);
103 GLenum *type, GLcharARB *nameOut, bool glthread);
H A Dshaderobj.c454 bool glthread, const char *caller) in _mesa_lookup_shader_program_err_glthread()
457 _mesa_error_glthread_safe(ctx, GL_INVALID_VALUE, glthread, "%s", caller); in _mesa_lookup_shader_program_err_glthread()
464 _mesa_error_glthread_safe(ctx, GL_INVALID_VALUE, glthread, in _mesa_lookup_shader_program_err_glthread()
469 _mesa_error_glthread_safe(ctx, GL_INVALID_OPERATION, glthread, in _mesa_lookup_shader_program_err_glthread()
453 _mesa_lookup_shader_program_err_glthread(struct gl_context *ctx, GLuint name, bool glthread, const char *caller) _mesa_lookup_shader_program_err_glthread() argument
H A Dshaderapi.h136 GLchar *name, bool glthread,
153 const GLenum prop, GLint *val, bool glthread,
H A Dcontext.h82 _mesa_alloc_dispatch_table(bool glthread);
91 _mesa_new_nop_table(unsigned numEntries, bool glthread);
H A Dshader_query.cpp1058 GLchar *name, bool glthread, in _mesa_get_program_resource_name()
1072 _mesa_error_glthread_safe(ctx, GL_INVALID_VALUE, glthread, in _mesa_get_program_resource_name()
1078 _mesa_error_glthread_safe(ctx, GL_INVALID_VALUE, glthread, in _mesa_get_program_resource_name()
1282 GLint *val, bool glthread, const char *caller) in get_buffer_property()
1429 _mesa_error_glthread_safe(ctx, GL_INVALID_OPERATION, glthread, in get_buffer_property()
1440 const GLenum prop, GLint *val, bool glthread, in _mesa_program_resource_prop()
1549 return get_buffer_property(shProg, res, prop, val, glthread, caller); in _mesa_program_resource_prop()
1686 _mesa_error_glthread_safe(ctx, GL_INVALID_ENUM, glthread, in _mesa_program_resource_prop()
1693 _mesa_error_glthread_safe(ctx, GL_INVALID_OPERATION, glthread, in _mesa_program_resource_prop()
1055 _mesa_get_program_resource_name(struct gl_shader_program *shProg, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name, bool glthread, const char *caller) _mesa_get_program_resource_name() argument
1280 get_buffer_property(struct gl_shader_program *shProg, struct gl_program_resource *res, const GLenum prop, GLint *val, bool glthread, const char *caller) get_buffer_property() argument
1438 _mesa_program_resource_prop(struct gl_shader_program *shProg, struct gl_program_resource *res, GLuint index, const GLenum prop, GLint *val, bool glthread, const char *caller) _mesa_program_resource_prop() argument
H A Dshaderobj.h101 bool glthread, const char *caller);
H A Duniform_query.cpp48 * - glthread=true for GL errors to be passed to the driver thread safely
56 GLenum *type, GLcharARB *nameOut, bool glthread) in _mesa_GetActiveUniform_impl()
63 _mesa_error_glthread_safe(ctx, GL_INVALID_VALUE, glthread, in _mesa_GetActiveUniform_impl()
68 shProg = _mesa_lookup_shader_program_err_glthread(ctx, program, glthread, in _mesa_GetActiveUniform_impl()
77 _mesa_error_glthread_safe(ctx, GL_INVALID_VALUE, glthread, in _mesa_GetActiveUniform_impl()
84 length, nameOut, glthread, in _mesa_GetActiveUniform_impl()
89 glthread, "glGetActiveUniform"); in _mesa_GetActiveUniform_impl()
93 glthread, "glGetActiveUniform"); in _mesa_GetActiveUniform_impl()
54 _mesa_GetActiveUniform_impl(GLuint program, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *nameOut, bool glthread) _mesa_GetActiveUniform_impl() argument
H A Dcontext.c103 #include "glthread.h"
845 /* This writes the error into the glthread command buffer if glthread is in glthread_nop()
860 _mesa_new_nop_table(unsigned numEntries, bool glthread) in _mesa_new_nop_table() argument
877 if (glthread) { in _mesa_new_nop_table()
893 _mesa_alloc_dispatch_table(bool glthread) in _mesa_alloc_dispatch_table() argument
902 struct _glapi_table *table = _mesa_new_nop_table(numEntries, glthread); in _mesa_alloc_dispatch_table()
H A Dglthread.h105 * This is 0 when it's being filled because glthread::used holds the real
106 * value temporarily, and glthread::used is copied to this variable when
198 /** Vertex Array objects tracked by glthread independently of Mesa. */
254 bool glthread, const char *format, ...);
H A Duniforms.c1004 bool glthread) in _mesa_GetUniformLocation_impl()
1010 shProg = _mesa_lookup_shader_program_err_glthread(ctx, programObj, glthread, in _mesa_GetUniformLocation_impl()
1021 _mesa_error_glthread_safe(ctx, GL_INVALID_OPERATION, glthread, in _mesa_GetUniformLocation_impl()
1003 _mesa_GetUniformLocation_impl(GLuint programObj, const GLcharARB *name, bool glthread) _mesa_GetUniformLocation_impl() argument

Completed in 17 milliseconds