i965/fs: mark last DF uniform array element as 64 bit live one

This bug can make that we don't detect the end of a contiguous area
correctly and push larger areas than the real ones.

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Cc: "17.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
(cherry picked from commit 7427425247)
This commit is contained in:
Samuel Iglesias Gonsálvez 2017-02-21 08:27:30 +01:00 committed by Emil Velikov
parent 9919331f4d
commit 7466ffa468

View file

@ -1963,6 +1963,9 @@ fs_visitor::assign_constant_locations()
}
}
is_live[last] = true;
if (type_sz(inst->src[i].type) == 8) {
is_live_64bit[last] = true;
}
} else {
if (constant_nr >= 0 && constant_nr < (int) uniforms) {
int regs_read = inst->components_read(i) *