OSDN Git Service

glsl: When lowering non-constant vector indexing, respect existing conditions
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 18 Jul 2011 00:35:00 +0000 (17:35 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 28 Jul 2011 18:47:44 +0000 (11:47 -0700)
commit3a5a7cfd2a5772dc1f183c5401f48020bef56639
treed694c68854b91dc887e24369dff9b6489399fde6
parentaad12d15bb2ba75d5c0cdb0b3aa1398cdf60a9a5
glsl: When lowering non-constant vector indexing, respect existing conditions

If the non-constant index was in the LHS of an assignment, any
existing condititon on that assignment would be lost.

Reviewed-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit 601428d2bbcf650c746f7a10b47228948f0ea912)
src/glsl/lower_vec_index_to_cond_assign.cpp