radeonsi/nir: tidy up si_nir_load_sampler_desc()
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 22 Mar 2018 00:55:20 +0000 (11:55 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 10 Apr 2018 04:43:45 +0000 (14:43 +1000)
commit494a5c350126268c45f3055687e22593a3fd74f4
treef337da121d5d19fbed8f922e48e80999bd32a9c4
parentd7cbe795edefb616c2df9d3bda0a2dc80a2c3405
radeonsi/nir: tidy up si_nir_load_sampler_desc()

This makes it easier to follow the code, and also initialises
dynamic_index which will be useful for adding bindless textures
support.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader_nir.c