aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_screen.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2010-07-21 15:39:01 +1000
committerJerome Glisse <[email protected]>2010-07-21 17:05:36 -0400
commit9433d0e8010bfe182762f8d2bd856a416a7f93bb (patch)
tree4dca8302ca2bd3c6af56b36195f654a596e3a682 /src/gallium/drivers/r600/r600_screen.c
parent1a3fa3e91089d534b8219518a44ae8ada66be3e3 (diff)
r600g: add family retrival
allow pipe driver to get the family of the gpu.
Diffstat (limited to 'src/gallium/drivers/r600/r600_screen.c')
-rw-r--r--src/gallium/drivers/r600/r600_screen.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_screen.c b/src/gallium/drivers/r600/r600_screen.c
index 20758b049c5..dec6fa8d272 100644
--- a/src/gallium/drivers/r600/r600_screen.c
+++ b/src/gallium/drivers/r600/r600_screen.c
@@ -41,7 +41,13 @@ static const char* r600_get_vendor(struct pipe_screen* pscreen)
static const char* r600_get_name(struct pipe_screen* pscreen)
{
- return "R600/R700 (HD2XXX,HD3XXX,HD4XXX)";
+ struct r600_screen *screen = r600_screen(pscreen);
+ enum radeon_family family = radeon_get_family(screen->rw);
+
+ if (family >= CHIP_R600 && family < CHIP_RV770)
+ return "R600 (HD2XXX,HD3XXX)";
+ else
+ return "R700 (HD4XXX)";
}
static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)