st/glsl_to_tgsi: teach the DCE pass about bindless samplers/images
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 28 Mar 2017 23:22:47 +0000 (01:22 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 14 Jun 2017 08:04:36 +0000 (10:04 +0200)
commit77cbded9957836d573664a5c2b1d26cbf04988ad
tree38c660dab631ea15e24fcee7da29ed5e51e2d77c
parent5d59226a7fd6d96501d573e23f10eca7d83a68e8
st/glsl_to_tgsi: teach the DCE pass about bindless samplers/images

When a texture (or an image) instruction uses a bindless sampler
(respectively a bindless image), make sure the DCE pass won't
remove code when the resource is a temporary variable.

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/mesa/state_tracker/st_glsl_to_tgsi.cpp