mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
r600g/sb: fix constant propagation in gvn pass
Fixes the bug that prevented propagation of literals in some cases. Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
This commit is contained in:
parent
3c201a22ca
commit
f92bd0958e
1 changed files with 2 additions and 1 deletions
|
|
@ -159,7 +159,8 @@ void gvn::process_alu_src_constants(node &n, value* &v) {
|
|||
|
||||
rp_kcache_tracker kc(sh);
|
||||
|
||||
kc.try_reserve(v->gvn_source->select);
|
||||
if (v->gvn_source->is_kcache())
|
||||
kc.try_reserve(v->gvn_source->select);
|
||||
|
||||
// don't propagate 3rd constant to the trans-only instruction
|
||||
if (!n.is_alu_packed()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue