Home
last modified time | relevance | path

Searched refs:glthread (Results 1 – 25 of 39) sorted by relevance

12

/third_party/mesa3d/src/mesa/main/
Dglthread.c95 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->DefaultVAO); in _mesa_glthread_init()
111 glthread->CurrentVAO = &glthread->DefaultVAO; in _mesa_glthread_init()
114 _mesa_DeleteHashTable(glthread->VAOs); in _mesa_glthread_init()
115 util_queue_destroy(&glthread->queue); in _mesa_glthread_init()
[all …]
Dglthread_varray.c74 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 = &ctx->GLThread; in _mesa_glthread_BindVertexArray() local
99 glthread->CurrentVAO = &glthread->DefaultVAO; in _mesa_glthread_BindVertexArray()
104 glthread->CurrentVAO = vao; in _mesa_glthread_BindVertexArray()
112 struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_DeleteVertexArrays() local
[all …]
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->upload_ptr); in _mesa_glthread_upload()
[all …]
Dglthread_marshal.h59 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->CurrentVAO; in _mesa_glthread_has_non_vbo_vertices()
116 const struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_has_non_vbo_vertices_or_indirect() local
[all …]
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()
Dshaderobj.c454 bool glthread, const char *caller) in _mesa_lookup_shader_program_err_glthread() argument
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()
Duniforms.h98 bool glthread);
103 GLenum *type, GLcharARB *nameOut, bool glthread);
Dshaderapi.h136 GLchar *name, bool glthread,
153 const GLenum prop, GLint *val, bool glthread,
Dcontext.h82 _mesa_alloc_dispatch_table(bool glthread);
91 _mesa_new_nop_table(unsigned numEntries, bool glthread);
Dshader_query.cpp1058 GLchar *name, bool glthread, in _mesa_get_program_resource_name() argument
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() argument
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() argument
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()
Duniform_query.cpp56 GLenum *type, GLcharARB *nameOut, bool glthread) in _mesa_GetActiveUniform_impl() argument
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()
Dcontext.c860 _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()
Dshaderobj.h101 bool glthread, const char *caller);
Dglthread.h254 bool glthread, const char *format, ...);
/third_party/mesa3d/docs/relnotes/
D22.2.2.rst36 - glthread: radeonsi: offset textures in game starsector with glthread enabled
140 - glthread: fix matrix stack depth tracking
141 - glthread: leave dlist dispatch in place for Begin/End
D20.1.0.rst2991 - glthread: don't generate the sync fallback if the call size is not
2993 - glthread: don't prefix variable_data with const
2994 - glthread: inline \_mesa_unmarshal_dispatch_cmd and convert the switch
2996 - glthread: reduce pointer dereferences in glthread_unmarshal_batch
2997 - glthread: use int instead of size_t where it's OK
2998 - glthread: simplify repeated function sequences in marshal_generated.c
2999 - glthread: don't insert \_mesa_post_marshal_hook into every function
3000 - glthread: don't increment variable_data if it's the last
3002 - glthread: add GL_DRAW_INDIRECT_BUFFER tracking and generator support
3003 - glthread: add/update count and marshal fields for many GL functions
[all …]
D19.1.7.rst129 - intel/dri: finish proper glthread
D20.3.5.rst65 - glthread crash in \_mesa_glthread_upload
191 - glthread: fix interpreting vertex size == GL_BGRA for vertex attribs
D22.2.1.rst178 - glthread: handle DeleteBuffers(n=-1) gracefully
D21.0.0.rst104 - glthread crash in \_mesa_glthread_upload
2076 - mesa: add glInternalSetError for glthread
2077 - mesa: make error handling for glGetActiveUniform glthread-safe
2078 - glthread: make glGetActiveUniform return without syncing
2079 - mesa: lock Shared->BufferObjects only once for a glthread batch
2080 - mesa: lock Shared->TexMutex only once for a glthread batch
2182 - glthread: use glthread->used instead of glthread->next_batch->used
2183 - glthread: use uint64_t to declare the batch buffer instead of align(8)
2184 - glthread: change sizes to unsigned or size_t where needed
2185 - glthread: count batch space in units of uint64_t elements
[all …]
D3.358 Thread support in Mesa has been rewritten. The glthread.[ch] files
D20.2.0.rst243 - [radeonsi] [glthread] Crash with glthread enabled
806 - drirc: Enable glthread for rpcs3
2687 - drirc: Enable glthread for PCSX2
2691 - glthread: Fix use of alloca() without #include "c99_alloca.h"
2886 - glthread: Add GLAPIENTRY to _mesa_marshal_MultiDrawArrays.
3182 - mesa: add glInternalBufferSubDataCopyMESA for glthread
3183 - mesa: add _mesa_InternalBind{ElementBuffer,VertexBuffers} for glthread
3184 - glthread: do glBufferSubData as unsynchronized upload + GPU copy
3185 - glthread: don't use atomics for refcounting to decrease overhead on AMD Zen
3186 - glthread: track pointers and strides for Pointer & EXT_dsa attrib functions
[all …]
/third_party/mesa3d/src/mapi/glapi/gen/
Dgl_API.dtd130 codegen for. If "sync", we finish any queued glthread work and call
132 call to be performed by glthread. If "custom", the prototype will be
134 marshal_sync - an expression that, if it evaluates true, causes glthread
137 glthread.
/third_party/mesa3d/docs/
DlibGL.txt103 xc/lib/GL/mesa/src/glthread.c
104 xc/lib/GL/mesa/src/glthread.h
/third_party/mesa3d/src/mesa/
Dmeson.build121 'main/glthread.c',
122 'main/glthread.h',

12