diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2010-03-02 09:22:33 +0100 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-03-04 09:38:38 -0800 |
commit | 57c0043b9a519da5c9af29019ef632716782bda2 (patch) | |
tree | 482a36463954303c502961fdaab471fd07bfe21e /src | |
parent | e606be463f6359fd017791a8d4d85059831a5d41 (diff) |
Xv: fixup relocation in i965_video.c
The previous code made no sense, (multiplying an offset by 4 is
meaningless). It could have onlt worked with the offset being
fortuitously 0.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Carl Worth <cworth@cworth.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/i965_video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i965_video.c b/src/i965_video.c index 0ba9511c..05dd2c3e 100644 --- a/src/i965_video.c +++ b/src/i965_video.c @@ -1228,7 +1228,7 @@ I965DisplayVideoTextured(ScrnInfoPtr scrn, OUT_RELOC(vb_bo, I915_GEM_DOMAIN_VERTEX, 0, 0); if (IS_IGDNG(intel)) OUT_RELOC(vb_bo, I915_GEM_DOMAIN_VERTEX, 0, - (vb_bo->offset + i) * 4); + i * 4); else OUT_BATCH(3); /* four corners to our rectangle */ OUT_BATCH(0); /* reserved */ |