summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2015-02-06 01:24:17 +0200
committerFrancisco Jerez <currojerez@riseup.net>2015-02-10 16:05:50 +0200
commita3ee6c7d1991a90d22fae992c1cb94123e51ae54 (patch)
treea7f96a32605e7529ba4b94397a8af9be447b3622 /src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
parentbfbb0e84e11e06af3d751701f157a21915976ca1 (diff)
downloadexternal_mesa3d-a3ee6c7d1991a90d22fae992c1cb94123e51ae54.zip
external_mesa3d-a3ee6c7d1991a90d22fae992c1cb94123e51ae54.tar.gz
external_mesa3d-a3ee6c7d1991a90d22fae992c1cb94123e51ae54.tar.bz2
i965/fs: Remove dependency of fs_inst on the visitor class.
The fs_visitor argument of fs_inst::regs_read() wasn't used at all. Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
index ebe0b12..72c490b 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
@@ -859,7 +859,7 @@ fs_visitor::spill_reg(int spill_reg)
for (unsigned int i = 0; i < inst->sources; i++) {
if (inst->src[i].file == GRF &&
inst->src[i].reg == spill_reg) {
- int regs_read = inst->regs_read(this, i);
+ int regs_read = inst->regs_read(i);
int subset_spill_offset = (spill_offset +
REG_SIZE * inst->src[i].reg_offset);
fs_reg unspill_dst(GRF, alloc.allocate(regs_read));