Mesa (master): i965/fs: Have component() set the register stride to zero.

Francisco Jerez currojerez at kemper.freedesktop.org
Tue May 12 12:50:11 UTC 2015


Module: Mesa
Branch: master
Commit: ee1a8b5a8cc118b49b47c7074fa18cf1b4820885
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ee1a8b5a8cc118b49b47c7074fa18cf1b4820885

Author: Francisco Jerez <currojerez at riseup.net>
Date:   Thu Apr 30 19:29:54 2015 +0300

i965/fs: Have component() set the register stride to zero.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/mesa/drivers/dri/i965/brw_ir_fs.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/drivers/dri/i965/brw_ir_fs.h b/src/mesa/drivers/dri/i965/brw_ir_fs.h
index a98f4e3..7ac7ff8 100644
--- a/src/mesa/drivers/dri/i965/brw_ir_fs.h
+++ b/src/mesa/drivers/dri/i965/brw_ir_fs.h
@@ -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;
 }
 




More information about the mesa-commit mailing list