summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs.cpp
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2015-06-17 18:02:11 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2015-06-30 15:58:12 -0700
commitaca5228011e7b9e96f3bd3a621c88e63ba47a4f3 (patch)
treeeb87d056cd3c07f7074d26d29320feada7f2e101 /src/mesa/drivers/dri/i965/brw_fs.cpp
parent241317d59ab440bdcda25bacaadacfb3b4c2dd93 (diff)
downloadexternal_mesa3d-aca5228011e7b9e96f3bd3a621c88e63ba47a4f3.zip
external_mesa3d-aca5228011e7b9e96f3bd3a621c88e63ba47a4f3.tar.gz
external_mesa3d-aca5228011e7b9e96f3bd3a621c88e63ba47a4f3.tar.bz2
i965/fs: Fix fs_inst::regs_read() for uniform pull constant loads
Previously, fs_inst::regs_read() fell back to depending on the register width for the second source. This isn't really correct since it isn't a SIMD8 value at all, but a SIMD4x2 value. This commit changes it to explicitly be always one register. v2: Use mlen for determining the number of registers read Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Acked-by: Francisco Jerez <currojerez@riseup.net>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 94f4294..e83a092 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -715,6 +715,12 @@ fs_inst::regs_read(int arg) const
return mlen;
break;
+ case FS_OPCODE_UNIFORM_PULL_CONSTANT_LOAD_GEN7:
+ /* The payload is actually stored in src1 */
+ if (arg == 1)
+ return mlen;
+ break;
+
case FS_OPCODE_LINTERP:
if (arg == 0)
return exec_size / 4;