From 7427425247d80c9f59a3c3ad2dfeeb2429de6f67 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Samuel=20Iglesias=20Gons=C3=A1lvez?= Date: Tue, 21 Feb 2017 08:27:30 +0100 Subject: [PATCH] i965/fs: mark last DF uniform array element as 64 bit live one MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/mesa/drivers/dri/i965/brw_fs.cpp | 3 +++ 1 file changed, 3 insertions(+) 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) * -- 2.30.2