From 31a40202b8bdf8bb65d33862144a03610fd57e3f Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Fri, 2 Sep 2016 16:23:44 -0700 Subject: [PATCH] i965/fs: Return more accurate read size from fs_inst::size_read for IMM and UNIFORM files. Reviewed-by: Iago Toral Quiroga --- 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 8f1cd61..e18aa72 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -900,7 +900,7 @@ fs_inst::size_read(int arg) const switch (src[arg].file) { case UNIFORM: case IMM: - return 4; + return components_read(arg) * type_sz(src[arg].type); case BAD_FILE: case ARF: case FIXED_GRF: -- 2.7.4