[Mesa-dev] [PATCH 35/59] i965/fs: use byte_offset() in offset() for uniforms
Samuel Iglesias Gonsálvez
siglesias at igalia.com
Fri Apr 29 11:29:32 UTC 2016
From: Connor Abbott <connor.w.abbott at 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
More information about the mesa-dev
mailing list