summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_screen.c
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-01-20 01:11:08 -0800
committerCorbin Simpson <[email protected]>2009-02-01 23:30:24 -0800
commit43f20357c8db2c90ae1f8360dbc2c71762a0478e (patch)
tree40b525d7fba2e93266f371ea362f2f147c190d3b /src/gallium/drivers/r300/r300_screen.c
parent538a8149af3fc773a3d1e15d113cb4e3fadc57cd (diff)
r300: Use chip caps for something.
Step two: Integration. Yay? Time to stop messing around with this and actually go do things.
Diffstat (limited to 'src/gallium/drivers/r300/r300_screen.c')
-rw-r--r--src/gallium/drivers/r300/r300_screen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c
index c75ff9414b3..7bba567e83e 100644
--- a/src/gallium/drivers/r300/r300_screen.c
+++ b/src/gallium/drivers/r300/r300_screen.c
@@ -27,8 +27,9 @@ static const char* r300_get_vendor(struct pipe_screen* pscreen) {
}
static const char* r300_get_name(struct pipe_screen* pscreen) {
- /* XXX lazy */
- return "unknown";
+ struct r300_screen* r300screen = r300_screen(pscreen);
+
+ return chip_families[r300screen->caps->family];
}
static int r300_get_param(struct pipe_screen* pscreen, int param) {