st/glsl_to_tgsi: be precise about merging scopes
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 6 Sep 2017 09:43:06 +0000 (11:43 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 13 Sep 2017 16:28:11 +0000 (18:28 +0200)
commit55ca12be9d3f6948bb6ce05da626c5ad32c1ef22
tree7ecba286a9d4d5574ab085eb470c1b8af039365c
parentcffc0ae0d9e572a82ce88c09e6ee8e2ed2a9be91
st/glsl_to_tgsi: be precise about merging scopes

enclosing_scope already contains enclosing_scope_first_read.
What we really want to check here -- not for correctness, but
for speed -- is whether last_read_scope already contains
enclosing_scope.

Reviewed-By: Gert Wollny <gw.fossdev@gmail.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp