As we now no longer track a pipelined fence change, we never use
ring->setup_seqno and can kill it.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
struct drm_i915_fence_reg {
struct list_head lru_list;
struct drm_i915_gem_object *obj;
- uint32_t setup_seqno;
int pin_count;
};
goto update;
}
- if (reg->setup_seqno) {
- if (!ring_passed_seqno(obj->last_fenced_ring,
- reg->setup_seqno)) {
- ret = i915_wait_request(obj->last_fenced_ring,
- reg->setup_seqno,
- true);
- if (ret)
- return ret;
- }
-
- reg->setup_seqno = 0;
- }
-
return 0;
}
obj->fence_reg = reg - dev_priv->fence_regs;
obj->last_fenced_ring = NULL;
- reg->setup_seqno = 0;
- obj->last_fenced_seqno = reg->setup_seqno;
-
update:
obj->tiling_changed = false;
switch (INTEL_INFO(dev)->gen) {
list_del_init(®->lru_list);
reg->obj = NULL;
- reg->setup_seqno = 0;
reg->pin_count = 0;
}