i965/fs: Have component() set the register stride to zero.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 30 Apr 2015 16:29:54 +0000 (19:29 +0300)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 12 May 2015 12:47:56 +0000 (15:47 +0300)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_ir_fs.h

index a98f4e3e14289aa23c81303b68f3a14e947a6b39..7ac7ff81d202b8787efccef1b9e295ca0820b260 100644 (file)
@@ -156,6 +156,7 @@ component(fs_reg reg, unsigned idx)
    assert(idx < reg.width);
    reg.subreg_offset = idx * type_sz(reg.type);
    reg.width = 1;
+   reg.stride = 0;
    return reg;
 }