gallium: distinguish between shader IR in get_compute_param
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 25 Mar 2016 01:06:50 +0000 (02:06 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 1 Apr 2016 23:51:13 +0000 (01:51 +0200)
commit1a5c8c24b5791efa02a7beefa4ba1c49ae033c73
treec63783871510b1ba41d5a12f187f51a336a6b79a
parentbe5899dcf9a337548d8095a00060d4451b0df222
gallium: distinguish between shader IR in get_compute_param

For radeonsi, native and TGSI use different compilers and this results
in different limits for different IR's.

The set we strictly need for radeonsi is only the MAX_BLOCK_SIZE
and MAX_THREADS_PER_BLOCK params, but I added a few others as shader
related that seemed like they would also typically depend on the
compiler.

Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Dave Airlie <airlied@redhat.com>
12 files changed:
src/gallium/docs/source/screen.rst
src/gallium/drivers/ilo/ilo_screen.c
src/gallium/drivers/nouveau/nv50/nv50_screen.c
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/radeon/r600_pipe_common.c
src/gallium/drivers/radeonsi/si_pipe.c
src/gallium/drivers/trace/tr_screen.c
src/gallium/include/pipe/p_screen.h
src/gallium/state_trackers/clover/core/device.cpp
src/gallium/tests/trivial/compute.c
src/mesa/state_tracker/st_extensions.c