summaryrefslogtreecommitdiff
path: root/tests/gem_stress.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-05-22 10:34:12 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-05-24 22:08:48 +0100
commit719ffef7c39386c453614bc71e1af97904d3671b (patch)
treeb441f3febb142a910be8e33e2318360146e6a21b /tests/gem_stress.h
parentd73cdde45afc41fb7b36829eda1af763af682ada (diff)
gem_stress: Add render copyfunc for SandyBridge
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_stress.h')
-rw-r--r--tests/gem_stress.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/gem_stress.h b/tests/gem_stress.h
index d2455065..e91453be 100644
--- a/tests/gem_stress.h
+++ b/tests/gem_stress.h
@@ -52,6 +52,11 @@ extern int fence_storm;
void keep_gpu_busy(void);
+static inline void emit_vertex_2s(int16_t x, int16_t y)
+{
+ OUT_BATCH((uint16_t)y << 16 | (uint16_t)x);
+}
+
static inline void emit_vertex(float f)
{
union { float f; uint32_t ui; } u;
@@ -76,6 +81,9 @@ static inline unsigned buf_height(struct scratch_buf *buf)
return options.scratch_buf_size/buf->stride;
}
+void gen6_render_copyfunc(struct scratch_buf *src, unsigned src_x, unsigned src_y,
+ struct scratch_buf *dst, unsigned dst_x, unsigned dst_y,
+ unsigned logical_tile_no);
void gen3_render_copyfunc(struct scratch_buf *src, unsigned src_x, unsigned src_y,
struct scratch_buf *dst, unsigned dst_x, unsigned dst_y,
unsigned logical_tile_no);