From: Jason Ekstrand Date: Tue, 30 Jun 2015 22:51:13 +0000 (-0700) Subject: i965/fs: Properly handle LOAD_PAYLOAD in fs_inst::regs_read X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c5a8da5f24eae4479b4ebe6301d780f781e24ed2;p=mesa.git i965/fs: Properly handle LOAD_PAYLOAD in fs_inst::regs_read Reviewed-by: Kenneth Graunke --- 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;