Lines Matching refs:glthread
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 = &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
130 if (glthread->CurrentVAO == vao) in _mesa_glthread_DeleteVertexArrays()
131 glthread->CurrentVAO = &glthread->DefaultVAO; in _mesa_glthread_DeleteVertexArrays()
133 if (glthread->LastLookedUpVAO == vao) in _mesa_glthread_DeleteVertexArrays()
134 glthread->LastLookedUpVAO = NULL; in _mesa_glthread_DeleteVertexArrays()
137 _mesa_HashRemoveLocked(glthread->VAOs, vao->Name); in _mesa_glthread_DeleteVertexArrays()
146 struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_GenVertexArrays() local
162 _mesa_HashInsertLocked(glthread->VAOs, id, vao, true); in _mesa_glthread_GenVertexArrays()
179 struct glthread_state *glthread = &ctx->GLThread; in update_primitive_restart() local
181 glthread->_PrimitiveRestart = glthread->PrimitiveRestart || in update_primitive_restart()
182 glthread->PrimitiveRestartFixedIndex; in update_primitive_restart()
183 glthread->_RestartIndex[0] = in update_primitive_restart()
184 _mesa_get_prim_restart_index(glthread->PrimitiveRestartFixedIndex, in update_primitive_restart()
185 glthread->RestartIndex, 1); in update_primitive_restart()
186 glthread->_RestartIndex[1] = in update_primitive_restart()
187 _mesa_get_prim_restart_index(glthread->PrimitiveRestartFixedIndex, in update_primitive_restart()
188 glthread->RestartIndex, 2); in update_primitive_restart()
189 glthread->_RestartIndex[3] = in update_primitive_restart()
190 _mesa_get_prim_restart_index(glthread->PrimitiveRestartFixedIndex, in update_primitive_restart()
191 glthread->RestartIndex, 4); in update_primitive_restart()
299 set_attrib_binding(struct glthread_state *glthread, struct glthread_vao *vao, in set_attrib_binding() argument
336 attrib_pointer(struct glthread_state *glthread, struct glthread_vao *vao, in attrib_pointer() argument
351 set_attrib_binding(glthread, vao, attrib, attrib); in attrib_pointer()
364 struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_AttribPointer() local
366 attrib_pointer(glthread, glthread->CurrentVAO, in _mesa_glthread_AttribPointer()
367 glthread->CurrentArrayBufferName, in _mesa_glthread_AttribPointer()
377 struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_DSAAttribPointer() local
384 attrib_pointer(glthread, vao, buffer, attrib, size, type, stride, in _mesa_glthread_DSAAttribPointer()
389 attrib_format(struct glthread_state *glthread, struct glthread_vao *vao, in attrib_format() argument
407 struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_AttribFormat() local
409 attrib_format(glthread, glthread->CurrentVAO, attribindex, size, type, in _mesa_glthread_AttribFormat()
418 struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_DSAAttribFormat() local
422 attrib_format(glthread, vao, attribindex, size, type, relativeoffset); in _mesa_glthread_DSAAttribFormat()
426 bind_vertex_buffer(struct glthread_state *glthread, struct glthread_vao *vao, in bind_vertex_buffer() argument
447 struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_VertexBuffer() local
449 bind_vertex_buffer(glthread, glthread->CurrentVAO, bindingindex, buffer, in _mesa_glthread_VertexBuffer()
458 struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_DSAVertexBuffer() local
462 bind_vertex_buffer(glthread, vao, bindingindex, buffer, offset, stride); in _mesa_glthread_DSAVertexBuffer()
472 struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_DSAVertexBuffers() local
480 bind_vertex_buffer(glthread, vao, first + i, buffers[i], offsets[i], in _mesa_glthread_DSAVertexBuffers()
486 binding_divisor(struct glthread_state *glthread, struct glthread_vao *vao, in binding_divisor() argument
505 struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_BindingDivisor() local
507 binding_divisor(glthread, glthread->CurrentVAO, bindingindex, divisor); in _mesa_glthread_BindingDivisor()
514 struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_DSABindingDivisor() local
518 binding_divisor(glthread, vao, bindingindex, divisor); in _mesa_glthread_DSABindingDivisor()
525 struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_AttribBinding() local
531 set_attrib_binding(glthread, glthread->CurrentVAO, in _mesa_glthread_AttribBinding()
540 struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_DSAAttribBinding() local
548 set_attrib_binding(glthread, vao, in _mesa_glthread_DSAAttribBinding()
568 struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_PushClientAttrib() local
570 if (glthread->ClientAttribStackTop >= MAX_CLIENT_ATTRIB_STACK_DEPTH) in _mesa_glthread_PushClientAttrib()
574 &glthread->ClientAttribStack[glthread->ClientAttribStackTop]; in _mesa_glthread_PushClientAttrib()
577 top->VAO = *glthread->CurrentVAO; in _mesa_glthread_PushClientAttrib()
578 top->CurrentArrayBufferName = glthread->CurrentArrayBufferName; in _mesa_glthread_PushClientAttrib()
579 top->ClientActiveTexture = glthread->ClientActiveTexture; in _mesa_glthread_PushClientAttrib()
580 top->RestartIndex = glthread->RestartIndex; in _mesa_glthread_PushClientAttrib()
581 top->PrimitiveRestart = glthread->PrimitiveRestart; in _mesa_glthread_PushClientAttrib()
582 top->PrimitiveRestartFixedIndex = glthread->PrimitiveRestartFixedIndex; in _mesa_glthread_PushClientAttrib()
588 glthread->ClientAttribStackTop++; in _mesa_glthread_PushClientAttrib()
597 struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_PopClientAttrib() local
599 if (glthread->ClientAttribStackTop == 0) in _mesa_glthread_PopClientAttrib()
602 glthread->ClientAttribStackTop--; in _mesa_glthread_PopClientAttrib()
605 &glthread->ClientAttribStack[glthread->ClientAttribStackTop]; in _mesa_glthread_PopClientAttrib()
619 glthread->CurrentArrayBufferName = top->CurrentArrayBufferName; in _mesa_glthread_PopClientAttrib()
620 glthread->ClientActiveTexture = top->ClientActiveTexture; in _mesa_glthread_PopClientAttrib()
621 glthread->RestartIndex = top->RestartIndex; in _mesa_glthread_PopClientAttrib()
622 glthread->PrimitiveRestart = top->PrimitiveRestart; in _mesa_glthread_PopClientAttrib()
623 glthread->PrimitiveRestartFixedIndex = top->PrimitiveRestartFixedIndex; in _mesa_glthread_PopClientAttrib()
626 vao = &glthread->DefaultVAO; in _mesa_glthread_PopClientAttrib()
630 glthread->CurrentVAO = vao; in _mesa_glthread_PopClientAttrib()
636 struct glthread_state *glthread = &ctx->GLThread; in _mesa_glthread_ClientAttribDefault() local
641 glthread->CurrentArrayBufferName = 0; in _mesa_glthread_ClientAttribDefault()
642 glthread->ClientActiveTexture = 0; in _mesa_glthread_ClientAttribDefault()
643 glthread->RestartIndex = 0; in _mesa_glthread_ClientAttribDefault()
644 glthread->PrimitiveRestart = false; in _mesa_glthread_ClientAttribDefault()
645 glthread->PrimitiveRestartFixedIndex = false; in _mesa_glthread_ClientAttribDefault()
646 glthread->CurrentVAO = &glthread->DefaultVAO; in _mesa_glthread_ClientAttribDefault()
647 _mesa_glthread_reset_vao(glthread->CurrentVAO); in _mesa_glthread_ClientAttribDefault()