Mercurial > mplayer.hg
annotate libdha/test.c @ 18693:a4a6b2cf5022
Do not use border for bicubic filter helper texture, since it will cause ATI
cards to switch to software mode and be unusable. Double texture size to avoid
this causing artefacts.
Note: yuv=6 will not be changed, so it will stay unusable with ATI cards unless
ATI starts supporting this.
author | reimar |
---|---|
date | Tue, 13 Jun 2006 19:55:20 +0000 |
parents | 972d1998bde9 |
children |
rev | line source |
---|---|
3973 | 1 #include "libdha.h" |
2 #include <stdio.h> | |
3 #include <string.h> | |
4 #include <stdlib.h> | |
5 | |
6 int main( void ) | |
7 { | |
8 pciinfo_t lst[MAX_PCI_DEVICES]; | |
9 unsigned i,num_pci; | |
10 int err; | |
11 err = pci_scan(lst,&num_pci); | |
12 if(err) | |
13 { | |
11678
972d1998bde9
occured --> occurred typo patch by Clinton Roy <croy@dstc.edu.au>
diego
parents:
9767
diff
changeset
|
14 printf("Error occurred during pci scan: %s\n",strerror(err)); |
3973 | 15 return EXIT_FAILURE; |
16 } | |
17 else | |
18 { | |
9767
f6d2772efca3
Ignore disabled cards. (Jon Burgess <jburgess@uklinux.net>)
ranma
parents:
3973
diff
changeset
|
19 printf(" Bus:card:func vend:dev command base0 :base1 :base2 :baserom\n"); |
3973 | 20 for(i=0;i<num_pci;i++) |
9767
f6d2772efca3
Ignore disabled cards. (Jon Burgess <jburgess@uklinux.net>)
ranma
parents:
3973
diff
changeset
|
21 printf("%04X:%04X:%04X %04X:%04X %04X %08X:%08X:%08X:%08X\n" |
3973 | 22 ,lst[i].bus,lst[i].card,lst[i].func |
9767
f6d2772efca3
Ignore disabled cards. (Jon Burgess <jburgess@uklinux.net>)
ranma
parents:
3973
diff
changeset
|
23 ,lst[i].vendor,lst[i].device,lst[i].command |
3973 | 24 ,lst[i].base0,lst[i].base1,lst[i].base2,lst[i].baserom); |
25 } | |
26 return EXIT_SUCCESS; | |
27 } |