[Mesa-dev] [PATCH 11/47] (0012) i965/fs: Fix fs_inst::size_read() for send-from-MRF FB writes.
Shaofeng Tang
shaofeng.tang at intel.com
Mon May 21 03:29:45 UTC 2018
From: Francisco Jerez <currojerez at riseup.net>
Change-Id: I12f4844c513ab7241859cb65cf74a53f2f7dcb7e
---
src/intel/compiler/brw_fs.cpp | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp
index 7e72024..be5583f 100644
--- a/src/intel/compiler/brw_fs.cpp
+++ b/src/intel/compiler/brw_fs.cpp
@@ -835,6 +835,15 @@ fs_inst::size_read(int arg) const
{
switch (opcode) {
case FS_OPCODE_FB_WRITE:
+ case FS_OPCODE_REP_FB_WRITE:
+ if (arg == 0) {
+ if (base_mrf >= 0)
+ return (src[0].file == BAD_FILE ? 0 : 2) * REG_SIZE;
+ else
+ return mlen * REG_SIZE;
+ }
+ break;
+
case FS_OPCODE_FB_READ:
case SHADER_OPCODE_URB_WRITE_SIMD8:
case SHADER_OPCODE_URB_WRITE_SIMD8_PER_SLOT:
--
2.7.4
More information about the mesa-dev
mailing list