mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 08:00:12 +01:00
r600g: add family retrival
allow pipe driver to get the family of the gpu.
This commit is contained in:
parent
1a3fa3e910
commit
9433d0e801
3 changed files with 14 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -77,6 +77,8 @@ enum radeon_family {
|
|||
CHIP_LAST,
|
||||
};
|
||||
|
||||
enum radeon_family radeon_get_family(struct radeon *rw);
|
||||
|
||||
/*
|
||||
* radeon object functions
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -25,6 +25,11 @@
|
|||
#include "radeon_drm.h"
|
||||
#include "r600d.h"
|
||||
|
||||
enum radeon_family radeon_get_family(struct radeon *radeon)
|
||||
{
|
||||
return radeon->family;
|
||||
}
|
||||
|
||||
static int radeon_get_device(struct radeon *radeon)
|
||||
{
|
||||
struct drm_radeon_info info;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue