From 4b3ce1a05a781e3913c6daf4c173ee75114bbe75 Mon Sep 17 00:00:00 2001 From: Ben Widawsky Date: Mon, 16 Feb 2015 12:54:43 -0800 Subject: [PATCH] Only reserve message header space once --- src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 4949fd5..7600fa9 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -3024,7 +3024,7 @@ fs_visitor::lower_uniform_pull_constant_loads() /* We have to use a message header on Skylake to get SIMD4x2 mode. * Reserve space for the register. */ - if (brw->gen >= 9) { + if (brw->gen >= 9 && alloc.sizes[payload.reg] != 2) { payload.reg_offset++; alloc.sizes[payload.reg] = 2; } -- 2.3.0