[Mesa-dev] [PATCH 12/57] i965/fs: Return more accurate read size from fs_inst::size_read for IMM and UNIFORM files.

Francisco Jerez currojerez at riseup.net
Thu Sep 8 01:48:39 UTC 2016


---
 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 5979461..7473f07 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.9.0



More information about the mesa-dev mailing list