gallium: add indirect compute parameters to pipe_grid_info
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 18 Jan 2016 15:19:32 +0000 (16:19 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 13 Feb 2016 14:51:17 +0000 (15:51 +0100)
commit43f4420fba1c9855c0f127143a4ed13b170ac49b
treebb085857697775825f9a5cee758c6128925a2ad5
parentbfd695e1d2975e5dd5363c2e7fcc3084a28457aa
gallium: add indirect compute parameters to pipe_grid_info

Like indirect draw, we need to store a resource and an offset that
needs to be 4 byte aligned. When indirect is used, the size of the
grid (in blocks) is stored with three 32-bit integers.

Changes from v2:
 - s/most values/block sizes/

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/include/pipe/p_state.h