mesa: Replace program locks with atomic inc/dec.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Matt Turner
2017-04-05 10:49:35 +10:00
committed by Timothy Arceri
parent 060a6434ec
commit d5ee55f028
3 changed files with 3 additions and 15 deletions

View File

@@ -103,8 +103,6 @@ private:
void
init_gl_program(struct gl_program *prog, GLenum target, bool is_arb_asm)
{
mtx_init(&prog->Mutex, mtx_plain);
prog->RefCount = 1;
prog->Format = GL_PROGRAM_FORMAT_ASCII_ARB;
prog->is_arb_asm = is_arb_asm;