i965: Implement threaded GL support.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 10 Jul 2017 06:03:44 +0000 (23:03 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 5 Mar 2019 08:49:05 +0000 (00:49 -0800)
commitdca36d5516d0fdaf012b4476975c5d585c2d1a09
treea8c258b8713c44840095377f50be74dc2d7d615a
parent0010d0348aa56e1097093628b1c1ec062c43c2fa
i965: Implement threaded GL support.

Now i965 supports mesa_glthread=true like Gallium drivers do.

According to Markus (degasus), the Citra emulator now runs ~30% faster.
Emmanuel (linkmauve) also reported that the Dolphin emulator improved
by 2.8x on one game.  (Both of those still need to be added to drirc.)

An Intel Mesa CI run with mesa_glthread=true appears to be happy.

Bioshock Infinite's benchmark mode seems to be around 15-20% faster
on my Skylake GT4 at 1920x1080.

Tested-by: Markus Wick <markus@selfnet.de>
Tested-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Tested-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/intel_screen.c
src/mesa/drivers/dri/i965/intel_tex_image.c