nvc0: add indirect compute support on Kepler
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 14 Jan 2016 17:24:53 +0000 (18:24 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 1 Apr 2016 20:26:24 +0000 (22:26 +0200)
commit3b246a71d7fe12c4b0670a9dadf566ea3eca1128
treee51a947d61c73c614b9f423cdceca4fcf0e2a1ab
parent7797d5f7d9b367f96200093cbe166c4478eae65e
nvc0: add indirect compute support on Kepler

The grid size is stored as three 32-bits integers in the indirect
buffer but the launch descriptor uses a 32-bits integer for both
griddim_y and griddim_z like this (z << 16) | y. To make it work,
the 16 high bits of griddim_y are overwritten by griddim_z.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nve4_compute.c