summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_system_graphics.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-09-17 21:40:00 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-09-17 21:40:00 -0400
commit8027075694b35e9761ddf888478fa3d3bfb488c9 (patch)
tree86a0631a4f692fe21856936e63f6b85fe3d20895 /pts-core/functions/pts-functions_system_graphics.php
parent2ce14e2bde0f31b3e1054c95a6ba92bdb0fbaed8 (diff)
downloadphoronix-test-suite-upstream-8027075694b35e9761ddf888478fa3d3bfb488c9.tar.gz
phoronix-test-suite-upstream-8027075694b35e9761ddf888478fa3d3bfb488c9.tar.xz
phoronix-test-suite-upstream-8027075694b35e9761ddf888478fa3d3bfb488c9.zip
pts-core: Add support for reading all ATI forced anti-aliasing types:
Box, Narrow-tent, Wide-tent, and Edge-detect
Diffstat (limited to 'pts-core/functions/pts-functions_system_graphics.php')
-rw-r--r--pts-core/functions/pts-functions_system_graphics.php71
1 files changed, 61 insertions, 10 deletions
diff --git a/pts-core/functions/pts-functions_system_graphics.php b/pts-core/functions/pts-functions_system_graphics.php
index ec9b71b..200521e 100644
--- a/pts-core/functions/pts-functions_system_graphics.php
+++ b/pts-core/functions/pts-functions_system_graphics.php
@@ -236,20 +236,71 @@ function graphics_antialiasing_level()
else if(IS_ATI_GRAPHICS)
{
$ati_fsaa = read_amd_pcsdb("OpenGL,AntiAliasSamples");
+ $ati_fsaa_filter = read_amd_pcsdb("OpenGL,AAF");
if(!empty($ati_fsaa))
{
- switch($ati_fsaa)
+ if($ati_fsaa_filter == "0x00000000")
{
- case "0x00000002":
- $aa_level = "2x";
- break;
- case "0x00000004":
- $aa_level = "4x";
- break;
- case "0x00000008":
- $aa_level = "8x";
- break;
+ // Filter: Box
+ switch($ati_fsaa)
+ {
+ case "0x00000002":
+ $aa_level = "2x Box";
+ break;
+ case "0x00000004":
+ $aa_level = "4x Box";
+ break;
+ case "0x00000008":
+ $aa_level = "8x Box";
+ break;
+ }
+ }
+ else if($ati_fsaa_filter == "0x00000001")
+ {
+ // Filter: Narrow-tent
+ switch($ati_fsaa)
+ {
+ case "0x00000002":
+ $aa_level = "4x Narrow-tent";
+ break;
+ case "0x00000004":
+ $aa_level = "8x Narrow-tent";
+ break;
+ case "0x00000008":
+ $aa_level = "12x Narrow-tent";
+ break;
+ }
+ }
+ else if($ati_fsaa_filter == "0x00000002")
+ {
+ // Filter: Wide-tent
+ switch($ati_fsaa)
+ {
+ case "0x00000002":
+ $aa_level = "6x Wide-tent";
+ break;
+ case "0x00000004":
+ $aa_level = "8x Wide-tent";
+ break;
+ case "0x00000008":
+ $aa_level = "16x Wide-tent";
+ break;
+ }
+
+ }
+ else if($ati_fsaa_filter == "0x00000003")
+ {
+ // Filter: Edge-detect
+ switch($ati_fsaa)
+ {
+ case "0x00000004":
+ $aa_level = "12x Edge-detect";
+ break;
+ case "0x00000008":
+ $aa_level = "24x Edge-detect";
+ break;
+ }
}
}
}