HomeSort by: relevance | last modified time | path
    Searched refs:GLThread (Results 1 - 17 of 17) sorted by relevancy

  /xsrc/external/mit/MesaLib/dist/src/mesa/main/
glthread_get.c 47 /* glthread only tracks these states for the compatibility profile. */
55 *p = GL_TEXTURE0 + ctx->GLThread.ActiveTexture;
58 *p = ctx->GLThread.CurrentArrayBufferName;
61 *p = ctx->GLThread.AttribStackDepth;
64 *p = ctx->GLThread.ClientActiveTexture;
67 *p = ctx->GLThread.ClientAttribStackTop;
70 *p = ctx->GLThread.CurrentDrawIndirectBufferName;
74 *p = ctx->GLThread.MatrixMode;
77 *p = ctx->GLThread.MatrixStackDepth[ctx->GLThread.MatrixIndex] + 1
    [all...]
glthread_marshal.h 33 #include "main/glthread.h"
59 struct glthread_state *glthread = &ctx->GLThread; local
62 if (unlikely(glthread->used + num_elements > MARSHAL_MAX_CMD_SIZE / 8))
65 struct glthread_batch *next = glthread->next_batch;
67 (struct marshal_cmd_base *)&next->buffer[glthread->used];
68 glthread->used += num_elements;
77 return ctx->GLThread.CurrentPixelPackBufferName == 0;
83 return ctx->GLThread.CurrentPixelUnpackBufferName == 0;
93 const struct glthread_state *glthread = &ctx->GLThread local
104 const struct glthread_state *glthread = &ctx->GLThread; local
114 const struct glthread_state *glthread = &ctx->GLThread; local
125 const struct glthread_state *glthread = &ctx->GLThread; local
    [all...]
glthread_varray.c 24 /* 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; local
79 if (glthread->LastLookedUpVAO &&
80 glthread->LastLookedUpVAO->Name == id) {
81 vao = glthread->LastLookedUpVAO;
83 vao = _mesa_HashLookupLocked(glthread->VAOs, id);
87 glthread->LastLookedUpVAO = vao
96 struct glthread_state *glthread = &ctx->GLThread; local
112 struct glthread_state *glthread = &ctx->GLThread; local
146 struct glthread_state *glthread = &ctx->GLThread; local
179 struct glthread_state *glthread = &ctx->GLThread; local
373 struct glthread_state *glthread = &ctx->GLThread; local
386 struct glthread_state *glthread = &ctx->GLThread; local
416 struct glthread_state *glthread = &ctx->GLThread; local
427 struct glthread_state *glthread = &ctx->GLThread; local
456 struct glthread_state *glthread = &ctx->GLThread; local
467 struct glthread_state *glthread = &ctx->GLThread; local
481 struct glthread_state *glthread = &ctx->GLThread; local
514 struct glthread_state *glthread = &ctx->GLThread; local
523 struct glthread_state *glthread = &ctx->GLThread; local
534 struct glthread_state *glthread = &ctx->GLThread; local
549 struct glthread_state *glthread = &ctx->GLThread; local
577 struct glthread_state *glthread = &ctx->GLThread; local
606 struct glthread_state *glthread = &ctx->GLThread; local
645 struct glthread_state *glthread = &ctx->GLThread; local
    [all...]
glthread.c 24 /** @file glthread.c
26 * Support functions for the glthread feature of Mesa.
36 #include "main/glthread.h"
76 unsigned batch_index = batch - ctx->GLThread.batches;
78 p_atomic_cmpxchg(&ctx->GLThread.LastProgramChangeBatch, batch_index, -1);
79 p_atomic_cmpxchg(&ctx->GLThread.LastDListChangeBatchIndex, batch_index, -1);
87 ctx->Driver.SetBackgroundContext(ctx, &ctx->GLThread.stats);
94 struct glthread_state *glthread = &ctx->GLThread; local
96 assert(!glthread->enabled)
162 struct glthread_state *glthread = &ctx->GLThread; local
209 struct glthread_state *glthread = &ctx->GLThread; local
269 struct glthread_state *glthread = &ctx->GLThread; local
    [all...]
glthread_shaderobj.c 123 struct glthread_state *glthread = &ctx->GLThread; local
126 p_atomic_set(&glthread->LastProgramChangeBatch, glthread->next);
143 int batch = p_atomic_read(&ctx->GLThread.LastProgramChangeBatch);
145 util_queue_fence_wait(&ctx->GLThread.batches[batch].fence);
146 assert(p_atomic_read(&ctx->GLThread.LastProgramChangeBatch) == -1);
glthread_draw.c 24 /* Draw function marshalling for glthread.
27 * index data, so that glthread doesn't have to execute synchronously.
115 struct glthread_vao *vao = ctx->GLThread.CurrentVAO;
383 struct glthread_vao *vao = ctx->GLThread.CurrentVAO;
386 if (compiled_into_dlist && ctx->GLThread.ListMode) {
406 if (!ctx->GLThread.SupportsNonVBOUploads ||
498 struct glthread_vao *vao = ctx->GLThread.CurrentVAO;
501 if (ctx->GLThread.ListMode)
511 if (!ctx->GLThread.SupportsNonVBOUploads ||
775 struct glthread_vao *vao = ctx->GLThread.CurrentVAO
    [all...]
glthread_bufferobj.c 35 assert(ctx->GLThread.SupportsBufferUploads);
70 struct glthread_state *glthread = &ctx->GLThread; local
77 unsigned offset = align(glthread->upload_offset, 8);
80 if (unlikely(!glthread->upload_buffer || offset + size > default_size)) {
100 if (glthread->upload_buffer_private_refcount > 0) {
101 p_atomic_add(&glthread->upload_buffer->RefCount,
102 -glthread->upload_buffer_private_refcount);
103 glthread->upload_buffer_private_refcount = 0;
105 _mesa_reference_buffer_object(ctx, &glthread->upload_buffer, NULL)
176 struct glthread_state *glthread = &ctx->GLThread; local
205 struct glthread_state *glthread = &ctx->GLThread; local
    [all...]
dlist.c 15051 if (ctx->GLThread.ListCallDepth < MAX_LIST_NESTING) {
15052 ctx->GLThread.ListCallDepth++;
15054 ctx->GLThread.ListCallDepth--;
15058 if (ctx->GLThread.ListCallDepth < MAX_LIST_NESTING) {
15059 ctx->GLThread.ListCallDepth++;
15061 ctx->GLThread.ListCallDepth--;
15101 ctx->GLThread.ListCallDepth--;
mtypes.h 42 #include "main/glthread.h"
1381 * Other internal buffers don't. (glthread requires refcounting for
5229 struct glthread_state GLThread;
  /xsrc/external/mit/MesaLib.old/dist/src/mesa/main/
glthread.c 24 /** @file glthread.c
26 * Support functions for the glthread feature of Mesa.
36 #include "main/glthread.h"
64 ctx->Driver.SetBackgroundContext(ctx, &ctx->GLThread->stats);
71 struct glthread_state *glthread = calloc(1, sizeof(*glthread)); local
73 if (!glthread)
76 if (!util_queue_init(&glthread->queue, "gl", MARSHAL_MAX_BATCHES - 2,
78 free(glthread);
84 util_queue_destroy(&glthread->queue)
110 struct glthread_state *glthread = ctx->GLThread; local
148 struct glthread_state *glthread = ctx->GLThread; local
184 struct glthread_state *glthread = ctx->GLThread; local
    [all...]
marshal.h 33 #include "main/glthread.h"
55 struct glthread_state *glthread = ctx->GLThread; local
56 struct glthread_batch *next = &glthread->batches[glthread->next];
62 next = &glthread->batches[glthread->next];
80 struct glthread_state *glthread = ctx->GLThread; local
82 return ctx->API != API_OPENGL_CORE && !glthread->vertex_array_is_vbo
92 struct glthread_state *glthread = ctx->GLThread; local
    [all...]
marshal.c 209 * This is part of what we need to enable glthread on compat-GL contexts that
233 struct glthread_state *glthread = ctx->GLThread; local
237 glthread->vertex_array_is_vbo = (buffer != 0);
244 glthread->element_array_is_vbo = (buffer != 0);
mtypes.h 4839 struct glthread_state *GLThread;
  /xsrc/external/mit/MesaLib.old/dist/src/mesa/state_tracker/
st_manager.c 32 #include "main/glthread.h"
823 * on AMD Zen. This is only done if glthread is enabled.
825 * If glthread is disabled, st_draw.c re-pins driver threads regularly
828 struct glthread_state *glthread = st->ctx->GLThread; local
829 if (glthread && st->pipe->set_context_param) {
830 util_pin_driver_threads_to_random_L3(st->pipe, &glthread->queue.threads[0]);
  /xsrc/external/mit/MesaLib/src/mapi/glapi/gen/
marshal_generated2.c 1176 if (COMPAT) _mesa_glthread_AttribPointer(ctx, VERT_ATTRIB_TEX(ctx->GLThread.ClientActiveTexture), size, type, stride, pointer);
2581 ctx->GLThread.ActiveTexture = texture - GL_TEXTURE0; if (ctx->GLThread.MatrixMode == GL_TEXTURE) ctx->GLThread.MatrixIndex = _mesa_get_matrix_index(ctx, texture);
2608 ctx->GLThread.ClientActiveTexture = texture - GL_TEXTURE0;
marshal_generated5.c 1726 if (COMPAT) _mesa_glthread_AttribPointer(ctx, VERT_ATTRIB_TEX(ctx->GLThread.ClientActiveTexture), size, type, stride, pointer);
marshal_generated6.c 6900 if (COMPAT) _mesa_glthread_DSAAttribPointer(ctx, vaobj, buffer, VERT_ATTRIB_TEX(ctx->GLThread.ClientActiveTexture), size, type, stride, offset);

Completed in 168 milliseconds