diff options
author | Jason Ekstrand <[email protected]> | 2015-06-30 15:51:13 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-06-30 16:11:17 -0700 |
commit | c5a8da5f24eae4479b4ebe6301d780f781e24ed2 (patch) | |
tree | 9fb8ea6783064e110b2d2f839c7fcf83f72255e4 | |
parent | 12bc22ef58377191508af91a918efd18e2da7500 (diff) |
i965/fs: Properly handle LOAD_PAYLOAD in fs_inst::regs_read
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; |