summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/nouveau/nouveau_card.c
blob: a0628389bf7155db6babfa9434ad6935479b31e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

#include "nouveau_card.h"
#include "nouveau_reg.h"
#include "nouveau_drm.h"
// FIXME hack for now
#define NV15_TCL_PRIMITIVE_3D 0x0096
#define NV17_TCL_PRIMITIVE_3D 0x0099
#include "nouveau_card_list.h"


nouveau_card* nouveau_card_lookup(uint32_t device_id)
{
	int i;
	for(i=0;i<sizeof(nouveau_card_list)/sizeof(nouveau_card)-1;i++)
		if (nouveau_card_list[i].id==(device_id&0xffff))
			break;
	return &(nouveau_card_list[i]);
}