r600/shader: implement getting thread id.
authorDave Airlie <airlied@redhat.com>
Tue, 14 Nov 2017 23:51:36 +0000 (09:51 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 17 Nov 2017 01:31:40 +0000 (11:31 +1000)
commit5689bb00229a422267ada6aef770dacc81e3319e
tree4a7697f2619e0dce10d4802c9faec80e22e383a3
parentc119a1acb33866c72cc1592b9bbf418e82cbab2a
r600/shader: implement getting thread id.

We need the thread id to use the immediate buffer readback
mechanism, so add support for calculating it.

Tested-By: Gert Wollny <gw.fossdev@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_shader.c