[Mesa-dev] [PATCH 19/57] i965/fs: Don't consider LOAD_PAYLOAD with sub-GRF offset to behave like a raw copy.

Francisco Jerez currojerez at riseup.net
Thu Sep 8 01:48:46 UTC 2016


This was likely the original intention, and at least register coalesce
relies on it.
---
 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 51c0d55..f6a9ec1 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -353,7 +353,7 @@ fs_inst::is_copy_payload(const brw::simple_allocator &grf_alloc) const
       return false;
 
    fs_reg reg = this->src[0];
-   if (reg.file != VGRF || reg.offset / REG_SIZE != 0 || reg.stride == 0)
+   if (reg.file != VGRF || reg.offset != 0 || reg.stride == 0)
       return false;
 
    if (grf_alloc.sizes[reg.nr] * REG_SIZE != this->size_written)
-- 
2.9.0



More information about the mesa-dev mailing list