radeonsi: add load_tess_level() helper
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 11 Dec 2017 03:48:41 +0000 (14:48 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 8 Jan 2018 23:21:32 +0000 (10:21 +1100)
commit2bd7ab32cfe8ad2ee7469ecb83d9077cd520c537
tree5eb1328aca7c56cc576ced84b2d9b6dec1842199
parent9e5aaa93cb242d8e401d61156809082dae86ed03
radeonsi: add load_tess_level() helper

This will be shared by the tgsi and nir backends.

v2: move si_shader_io_get_unique_index_patch() call inside
    the helper.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> (v1)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c