summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs.cpp
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2016-09-02 19:32:37 -0700
committerFrancisco Jerez <currojerez@riseup.net>2016-09-14 14:50:55 -0700
commit3a4ea7cf803cb5af2b7d0e7d71ee4825294a94aa (patch)
tree2f72162ac4950e51e572e5da49f6672168568952 /src/mesa/drivers/dri/i965/brw_fs.cpp
parent1164aa1a1ba9d140a2b1435703b0029e0fe69f6f (diff)
downloadexternal_mesa3d-3a4ea7cf803cb5af2b7d0e7d71ee4825294a94aa.zip
external_mesa3d-3a4ea7cf803cb5af2b7d0e7d71ee4825294a94aa.tar.gz
external_mesa3d-3a4ea7cf803cb5af2b7d0e7d71ee4825294a94aa.tar.bz2
i965/fs: Don't consider LOAD_PAYLOAD with stride > 1 source to behave like a raw copy.
Noticed the problem by inspection while typing in the previous commit. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index c105798..f5ae603 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 != 0 || reg.stride == 0)
+ if (reg.file != VGRF || reg.offset != 0 || reg.stride != 1)
return false;
if (grf_alloc.sizes[reg.nr] * REG_SIZE != this->size_written)