tests/pm_rps: fixup the blt copy load helper changes

All suggested by Jeff McGee.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter 2014-03-14 16:47:50 +01:00
parent 816c947236
commit 7a8109458e

View File

@ -231,7 +231,7 @@ static void load_helper_run(enum load load)
while (!lh.exit) {
if (lh.load == HIGH)
intel_copy_bo(lh.batch, lh.dst, lh.dst,
intel_copy_bo(lh.batch, lh.dst, lh.src,
LOAD_HELPER_BO_SIZE);
emit_store_dword_imm(val);
@ -294,6 +294,10 @@ static void load_helper_deinit(void)
if (lh.target_buffer)
drm_intel_bo_unreference(lh.target_buffer);
if (lh.src)
drm_intel_bo_unreference(lh.src);
if (lh.dst)
drm_intel_bo_unreference(lh.dst);
if (lh.batch)
intel_batchbuffer_free(lh.batch);