From: Francisco Jerez Date: Fri, 2 Sep 2016 23:23:44 +0000 (-0700) Subject: i965/fs: Return more accurate read size from fs_inst::size_read for IMM and UNIFORM... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=31a40202b8bdf8bb65d33862144a03610fd57e3f;p=mesa.git i965/fs: Return more accurate read size from fs_inst::size_read for IMM and UNIFORM files. Reviewed-by: Iago Toral Quiroga --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 8f1cd61d3b6..e18aa72bd2c 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: