radeonsi: rework the load_sampler_desc() helpers
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 30 Mar 2017 17:58:01 +0000 (19:58 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 1 Apr 2017 16:07:49 +0000 (18:07 +0200)
commit2f44402386253c9f2fe0f17ff695f40d3131a0c0
tree7ad2c92909f49d5c7036bce3558ebf4c97ddfb9a
parent8a3ef8c65d9125012d32522eef58e5fc5c0b086a
radeonsi: rework the load_sampler_desc() helpers

Will be more convenient for bindless because the 64bit handle is
actually the base_ptr of the descriptor (ie. 'list' will be fetched
from TGSI_FILE_CONSTANT/TGSI_FILE_TEMPORARY instead).

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c