summaryrefslogtreecommitdiff
path: root/src/sna/gen6_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-05-28 12:02:56 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-05-28 23:16:31 +0100
commitb3169768ddf8c8977d2ace3675611b5ec6eba7ee (patch)
tree2cfb0f16f819a62d0af95004b072d835f59353ee /src/sna/gen6_render.c
parent0839e3316a02380cd64d354ee0ec9d4c2b8eecf4 (diff)
sna: Make the backend identifier more informative
This is useful, for example, with the multiple gen7 variants. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen6_render.c')
-rw-r--r--src/sna/gen6_render.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c
index f7af54e0..c25ef94c 100644
--- a/src/sna/gen6_render.c
+++ b/src/sna/gen6_render.c
@@ -3656,10 +3656,10 @@ static bool gen6_render_setup(struct sna *sna)
return state->general_bo != NULL;
}
-bool gen6_render_init(struct sna *sna)
+const char *gen6_render_init(struct sna *sna, const char *backend)
{
if (!gen6_render_setup(sna))
- return false;
+ return backend;
sna->kgem.context_switch = gen6_render_context_switch;
sna->kgem.retire = gen6_render_retire;
@@ -3704,5 +3704,5 @@ bool gen6_render_init(struct sna *sna)
sna->render.max_3d_size = GEN6_MAX_SIZE;
sna->render.max_3d_pitch = 1 << 18;
- return true;
+ return "Sandybridge (gen6)";
}