From: Connor Abbott <connor.w.abb...@intel.com> This makes things more consistent, and also fixes the offset calculation for double uniforms. --- src/mesa/drivers/dri/i965/brw_fs.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index 08f27e4..833061b 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.h +++ b/src/mesa/drivers/dri/i965/brw_fs.h @@ -55,11 +55,9 @@ offset(fs_reg reg, const brw::fs_builder& bld, unsigned delta) case MRF: case VGRF: case ATTR: + case UNIFORM: return byte_offset(reg, delta * reg.component_size(bld.dispatch_width())); - case UNIFORM: - reg.reg_offset += delta; - break; case IMM: assert(delta == 0); } -- 2.5.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev