summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2016-09-02 16:23:44 -0700
committerFrancisco Jerez <[email protected]>2016-09-14 14:50:54 -0700
commit31a40202b8bdf8bb65d33862144a03610fd57e3f (patch)
treefaf58359c282ddc4f37bb26de1378efbf66b4da2 /src/mesa
parent728dd30c0ac0078653974de36087456065d2e3ae (diff)
i965/fs: Return more accurate read size from fs_inst::size_read for IMM and UNIFORM files.
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp2
1 files changed, 1 insertions, 1 deletions
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: