summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2016-11-28 13:29:45 -0800
committerMatt Turner <[email protected]>2016-11-29 11:53:36 -0800
commitcab0952d4b8bf633658d8ecf6539a3ec4f62b9c7 (patch)
tree389fc3f802e3c83f60cb6af0b92aaa7ac6ecebda /src/mesa/drivers/dri
parentb0156702fa5b416e09c48d44a97749be9bde362e (diff)
i965/sched: Make 'time' a local variable.
Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp b/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
index 28d1e90309c..9d7ba3be719 100644
--- a/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
+++ b/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
@@ -442,7 +442,6 @@ public:
this->instructions_to_schedule = 0;
this->post_reg_alloc = (mode == SCHEDULE_POST);
this->mode = mode;
- this->time = 0;
if (!post_reg_alloc) {
this->reg_pressure_in = rzalloc_array(mem_ctx, int, block_count);
@@ -514,7 +513,6 @@ public:
int instructions_to_schedule;
int grf_count;
int hw_reg_count;
- int time;
int reg_pressure;
int block_idx;
exec_list instructions;
@@ -1574,7 +1572,7 @@ void
instruction_scheduler::schedule_instructions(bblock_t *block)
{
const struct gen_device_info *devinfo = bs->devinfo;
- time = 0;
+ int time = 0;
if (!post_reg_alloc)
reg_pressure = reg_pressure_in[block->num];
block_idx = block->num;