r300c: do not advertise half float vertex on RV3xx, RS4xx, RC4xx
authorMarek Olšák <maraeo@gmail.com>
Sat, 7 Aug 2010 16:10:07 +0000 (18:10 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sat, 7 Aug 2010 16:13:05 +0000 (18:13 +0200)
Fixes a hardlock.

NOTE: this is a candidate for the 7.8 branch, provided the half float vertex
is really implemented there.

src/mesa/drivers/dri/r300/r300_context.c
src/mesa/drivers/dri/radeon/radeon_chipset.h

index e4b302bbad9d177620ba69f3128de65f0f1f6d40..3d2f8928fa6dbc5c003aff0e870cc5989d492e2a 100644 (file)
@@ -461,7 +461,7 @@ static void r300InitGLExtensions(GLcontext *ctx)
        if (!r300->radeon.radeonScreen->drmSupportsOcclusionQueries) {
                _mesa_disable_extension(ctx, "GL_ARB_occlusion_query");
        }
-       if (r300->radeon.radeonScreen->chip_family >= CHIP_FAMILY_RV350)
+        if (r300->radeon.radeonScreen->chip_family >= CHIP_FAMILY_R420)
                _mesa_enable_extension(ctx, "GL_ARB_half_float_vertex");
 
        if (r300->radeon.radeonScreen->chip_family >= CHIP_FAMILY_RV515)
index b7ee9a134bf58b10d97439fb4bc526c13f17bab8..7d54fabebbc0c821457d7e31feafa13521bbfd75 100644 (file)
@@ -414,9 +414,9 @@ enum {
    CHIP_FAMILY_R350,
    CHIP_FAMILY_RV350,
    CHIP_FAMILY_RV380,
+   CHIP_FAMILY_RS400,
    CHIP_FAMILY_R420,
    CHIP_FAMILY_RV410,
-   CHIP_FAMILY_RS400,
    CHIP_FAMILY_RS600,
    CHIP_FAMILY_RS690,
    CHIP_FAMILY_RS740,