gem_stress: gen2 render copy

Sometimes acts up like gen3 on my i855gm. Sometimes works flawless.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2011-03-31 23:30:17 +02:00
parent a6751bac8d
commit 4fcfc9f102
4 changed files with 1166 additions and 2 deletions
+5 -1
View File
@@ -283,7 +283,11 @@ static void render_copyfunc(struct scratch_buf *src, unsigned src_x, unsigned sr
struct scratch_buf *dst, unsigned dst_x, unsigned dst_y,
unsigned logical_tile_no)
{
if (IS_GEN3(devid))
if (IS_GEN2(devid))
gen2_render_copyfunc(src, src_x, src_y,
dst, dst_x, dst_y,
logical_tile_no);
else if (IS_GEN3(devid))
gen3_render_copyfunc(src, src_x, src_y,
dst, dst_x, dst_y,
logical_tile_no);