From: Samuel Iglesias Gonsálvez Date: Tue, 21 Feb 2017 07:27:30 +0000 (+0100) Subject: i965/fs: mark last DF uniform array element as 64 bit live one X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7427425247d80c9f59a3c3ad2dfeeb2429de6f67;p=mesa.git 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 Cc: "17.0" Reviewed-by: Francisco Jerez --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index c348bc7138d..c713caa9b6f 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -1952,6 +1952,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) *