[Mesa-dev] [PATCH 40/59] i965/fs: fix regs_read() for uniforms
Samuel Iglesias Gonsálvez
siglesias at igalia.com
Fri Apr 29 11:29:37 UTC 2016
From: Connor Abbott <connor.w.abbott at intel.com>
---
src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index ac170d5..729c7a0 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -889,7 +889,7 @@ fs_inst::regs_read(int arg) const
return 0;
case UNIFORM:
case IMM:
- return 1;
+ return DIV_ROUND_UP(type_sz(src[arg].type), 4);
case ARF:
case FIXED_GRF:
case VGRF:
--
2.5.0
More information about the mesa-dev
mailing list