#ifndef _RADEON_CHIPSET_H
#define _RADEON_CHIPSET_H
-/* Including xf86PciInfo.h introduces a bunch of errors...
- */
/* General chip classes:
* r100 includes R100, RV100, RV200, RS100, RS200, RS250.
CHIP_FAMILY_LAST
};
-/* General classes of Radeons, as described above the device ID section */
-#define RADEON_CLASS_R100 (0 << 0)
-#define RADEON_CLASS_R200 (1 << 0)
-#define RADEON_CLASS_MASK (3 << 0)
-
-#define RADEON_CHIPSET_TCL (1 << 2) /* tcl support - any radeon */
-#define RADEON_CHIPSET_BROKEN_STENCIL (1 << 3) /* r100 stencil bug */
-#define R200_CHIPSET_YCBCR_BROKEN (1 << 4) /* r200 ycbcr bug */
+#define RADEON_CHIPSET_TCL (1 << 0) /* tcl support - any radeon */
+#define RADEON_CHIPSET_BROKEN_STENCIL (1 << 1) /* r100 stencil bug */
+#define R200_CHIPSET_YCBCR_BROKEN (1 << 2) /* r200 ycbcr bug */
#endif /* _RADEON_CHIPSET_H */
radeonSetTexBuffer,
radeonSetTexBuffer2,
};
-#endif
-
-#if defined(RADEON_R200)
+#elif defined(RADEON_R200)
static const __DRItexBufferExtension r200TexBufferExtension = {
{ __DRI_TEX_BUFFER, __DRI_TEX_BUFFER_VERSION },
r200SetTexBuffer,
if (getenv("R300_NO_TCL"))
screen->chip_flags &= ~RADEON_CHIPSET_TCL;
-#if defined(RADEON_R100)
- screen->chip_flags |= RADEON_CLASS_R100;
-#elif defined(RADEON_R200)
- screen->chip_flags |= RADEON_CLASS_R200;
-#endif
-
i = 0;
screen->extensions[i++] = &dri2ConfigQueryExtension.base;
#if defined(RADEON_R100)
screen->extensions[i++] = &radeonTexBufferExtension.base;
-#endif
-
-#if defined(RADEON_R200)
+#elif defined(RADEON_R200)
screen->extensions[i++] = &r200TexBufferExtension.base;
#endif
GLenum srcFormat,
GLenum srcType, GLboolean fbo)
{
- /* r100 can only do this */
#if defined(RADEON_R100)
+ /* r100 can only do this */
return _radeon_texformat_argb8888;
#elif defined(RADEON_R200)
const GLuint ui = 1;