[Mesa-dev] [PATCH 8/8] r600g: implement pipe_screen::get_driver_name
Vadim Girlin
vadimgirlin at gmail.com
Mon Apr 9 08:32:39 PDT 2012
Signed-off-by: Vadim Girlin <vadimgirlin at gmail.com>
---
src/gallium/drivers/r600/r600_pipe.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c
index 7c40e50..35553f4 100644
--- a/src/gallium/drivers/r600/r600_pipe.c
+++ b/src/gallium/drivers/r600/r600_pipe.c
@@ -364,6 +364,11 @@ static const char *r600_get_family_name(enum radeon_family family)
}
}
+static const char* r600_get_driver_name(struct pipe_screen* pscreen)
+{
+ return "r600g";
+}
+
static const char* r600_get_name(struct pipe_screen* pscreen)
{
struct r600_screen *rscreen = (struct r600_screen *)pscreen;
@@ -839,6 +844,7 @@ struct pipe_screen *r600_screen_create(struct radeon_winsys *ws)
}
rscreen->screen.destroy = r600_destroy_screen;
+ rscreen->screen.get_driver_name = r600_get_driver_name;
rscreen->screen.get_name = r600_get_name;
rscreen->screen.get_vendor = r600_get_vendor;
rscreen->screen.get_param = r600_get_param;
--
1.7.7.6
More information about the mesa-dev
mailing list