diff options
author | Francisco Jerez <[email protected]> | 2016-09-02 16:23:44 -0700 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2016-09-14 14:50:54 -0700 |
commit | 31a40202b8bdf8bb65d33862144a03610fd57e3f (patch) | |
tree | faf58359c282ddc4f37bb26de1378efbf66b4da2 /src/mesa/drivers/dri/i965/brw_fs.cpp | |
parent | 728dd30c0ac0078653974de36087456065d2e3ae (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/drivers/dri/i965/brw_fs.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 2 |
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: |