[prev in list] [next in list] [prev in thread] [next in thread]
List: haiku-commits
Subject: [haiku-commits] r42516 - haiku/trunk/src/add-ons/accelerants/radeon_hd
From: kallisti5 () unixzen ! com
Date: 2011-07-30 18:25:09
Message-ID: 20110730182509.4CFA268054 () vmsvn ! haiku-os ! org
[Download RAW message or body]
Author: kallisti5
Date: 2011-07-30 20:25:08 +0200 (Sat, 30 Jul 2011)
New Revision: 42516
Changeset: https://dev.haiku-os.org/changeset/42516
Modified:
haiku/trunk/src/add-ons/accelerants/radeon_hd/accelerant.cpp
Log:
* Provide device chipset in accelerant_device_info
Modified: haiku/trunk/src/add-ons/accelerants/radeon_hd/accelerant.cpp
===================================================================
--- haiku/trunk/src/add-ons/accelerants/radeon_hd/accelerant.cpp 2011-07-30 17:45:14 UTC (rev 42515)
+++ haiku/trunk/src/add-ons/accelerants/radeon_hd/accelerant.cpp 2011-07-30 18:25:08 UTC (rev 42516)
@@ -18,6 +18,7 @@
#include <errno.h>
#include <stdlib.h>
+#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <syslog.h>
@@ -250,8 +251,11 @@
{
di->version = B_ACCELERANT_VERSION;
strcpy(di->name, gInfo->shared_info->device_identifier);
- strcpy(di->chipset, "radeon_hd");
- // TODO : Give chipset, ex: r600
+
+ char chipset[32];
+ sprintf(chipset, "r%X", gInfo->shared_info->device_chipset);
+ strcpy(di->chipset, chipset);
+
strcpy(di->serial_no, "None" );
di->memory = gInfo->shared_info->graphics_memory_size;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic