projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
728dd30
)
i965/fs: Return more accurate read size from fs_inst::size_read for IMM and UNIFORM...
author
Francisco Jerez
<currojerez@riseup.net>
Fri, 2 Sep 2016 23:23:44 +0000
(16:23 -0700)
committer
Francisco Jerez
<currojerez@riseup.net>
Wed, 14 Sep 2016 21:50:54 +0000
(14:50 -0700)
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_fs.cpp
b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 8f1cd61d3b6beb212baced9742bb3e1d276c98de..e18aa72bd2c62180c9a2c2299d2ff563623ee2d1 100644
(file)
--- 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: