From c5a8da5f24eae4479b4ebe6301d780f781e24ed2 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 30 Jun 2015 15:51:13 -0700 Subject: [PATCH] i965/fs: Properly handle LOAD_PAYLOAD in fs_inst::regs_read Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index d91ad0a0650..cae4e4263ea 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -733,6 +733,11 @@ fs_inst::regs_read(int arg) const components = 1; break; + case SHADER_OPCODE_LOAD_PAYLOAD: + if (arg < this->header_size) + return 1; + break; + default: if (is_tex() && arg == 0 && src[0].file == GRF) return mlen; -- 2.30.2