r300g: silence guard band cap errors
authorJoakim Sindholt <opensource@zhasha.com>
Sun, 21 Nov 2010 12:24:03 +0000 (13:24 +0100)
committerJoakim Sindholt <opensource@zhasha.com>
Sun, 21 Nov 2010 14:45:20 +0000 (15:45 +0100)
Somebody should find out what these are. It can be found on Windows
getting a D3DCAPS9 from IDirect3D9::GetCaps() and reading the
GuardBand* values.

src/gallium/drivers/r300/r300_screen.c

index fd2f33814d152b3c699b90fab16aa1a60a3db35f..759d0e669686f3f7b685575f40ece2351be12387 100644 (file)
@@ -283,6 +283,13 @@ static float r300_get_paramf(struct pipe_screen* pscreen, enum pipe_cap param)
             return 16.0f;
         case PIPE_CAP_MAX_TEXTURE_LOD_BIAS:
             return 16.0f;
+        case PIPE_CAP_GUARD_BAND_LEFT:
+        case PIPE_CAP_GUARD_BAND_TOP:
+        case PIPE_CAP_GUARD_BAND_RIGHT:
+        case PIPE_CAP_GUARD_BAND_BOTTOM:
+            /* XXX I don't know what these should be but the least we can do is
+             * silence the potential error message */
+            return 0.0f;
         default:
             debug_printf("r300: Warning: Unknown CAP %d in get_paramf.\n",
                          param);