aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs.cpp
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2015-02-06 01:24:17 +0200
committerFrancisco Jerez <[email protected]>2015-02-10 16:05:50 +0200
commita3ee6c7d1991a90d22fae992c1cb94123e51ae54 (patch)
treea7f96a32605e7529ba4b94397a8af9be447b3622 /src/mesa/drivers/dri/i965/brw_fs.cpp
parentbfbb0e84e11e06af3d751701f157a21915976ca1 (diff)
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 <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 45870356f93..23c99b885db 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -916,7 +916,7 @@ fs_inst::is_partial_write() const
}
int
-fs_inst::regs_read(fs_visitor *v, int arg) const
+fs_inst::regs_read(int arg) const
{
if (is_tex() && arg == 0 && src[0].file == GRF) {
return mlen;
@@ -1953,7 +1953,7 @@ fs_visitor::split_virtual_grfs()
for (int i = 0; i < inst->sources; i++) {
if (inst->src[i].file == GRF) {
int reg = vgrf_to_reg[inst->src[i].reg] + inst->src[i].reg_offset;
- for (int j = 1; j < inst->regs_read(this, i); j++)
+ for (int j = 1; j < inst->regs_read(i); j++)
split_points[reg + j] = false;
}
}