i965/fs: Don't consider LOAD_PAYLOAD with stride > 1 source to behave like a raw...
authorFrancisco Jerez <currojerez@riseup.net>
Sat, 3 Sep 2016 02:32:37 +0000 (19:32 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 14 Sep 2016 21:50:55 +0000 (14:50 -0700)
Noticed the problem by inspection while typing in the previous commit.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_fs.cpp

index c10579880b6161fa0a4c80f734d5ca43a0a67f60..f5ae60372f699683a36959518488f501aaa6523f 100644 (file)
@@ -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)