nvc0: add support for indirect compute on Fermi
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 12 Jan 2016 22:51:00 +0000 (23:51 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 21 Feb 2016 09:41:45 +0000 (10:41 +0100)
commitc6293877f0d2f69db122d351c14ab2d21b7b2964
tree04f98030d41eead3e2ece7be139df97e7bdc99b2
parentfa7333a742d8f816c0502e79503a7ad33ab0a9a5
nvc0: add support for indirect compute on Fermi

When indirect compute is used, the size of the grid (in blocks) is
stored as three integers inside a buffer. This requires a macro to
set up GRIDDIM_YX and GRIDDIM_Z.

Changes from v2:
 - do not launch the grid if the number of groups for a dimension is 0

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/mme/Makefile
src/gallium/drivers/nouveau/nvc0/mme/com90c0.mme [new file with mode: 0644]
src/gallium/drivers/nouveau/nvc0/mme/com90c0.mme.h [new file with mode: 0644]
src/gallium/drivers/nouveau/nvc0/nvc0_compute.c
src/gallium/drivers/nouveau/nvc0/nvc0_macros.h
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c