summaryrefslogtreecommitdiff
path: root/lib/rendercopy_i830.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rendercopy_i830.c')
-rw-r--r--lib/rendercopy_i830.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/rendercopy_i830.c b/lib/rendercopy_i830.c
index 28c3e99e..20f3dc6e 100644
--- a/lib/rendercopy_i830.c
+++ b/lib/rendercopy_i830.c
@@ -227,3 +227,19 @@ void gen2_render_copyfunc(struct intel_batchbuffer *batch,
intel_batchbuffer_flush(batch);
}
+
+render_copyfunc_t get_render_copyfunc(int devid)
+{
+ render_copyfunc_t copy = NULL;
+
+ if (IS_GEN2(devid))
+ copy = gen2_render_copyfunc;
+ else if (IS_GEN3(devid))
+ copy = gen3_render_copyfunc;
+ else if (IS_GEN6(devid))
+ copy = gen6_render_copyfunc;
+ else if (IS_GEN7(devid))
+ copy = gen7_render_copyfunc;
+
+ return copy;
+}