diff options
author | Dave Airlie <[email protected]> | 2010-01-23 12:57:51 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2010-01-23 12:57:51 +1000 |
commit | 9a62f0ce3bffd37bad101552b57347e0855d1df1 (patch) | |
tree | d6f2c989f2b34447c36e1e1572228e50f5b73be5 /src/mesa/drivers/dri | |
parent | 782b6885c2573e1f004d9572eb386d9e1f392254 (diff) |
r300: only enable half floats on r500s.
Thank to MAD for point it out.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_context.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_context.c b/src/mesa/drivers/dri/r300/r300_context.c index 24c51d4fee8..74947a95d23 100644 --- a/src/mesa/drivers/dri/r300/r300_context.c +++ b/src/mesa/drivers/dri/r300/r300_context.c @@ -97,7 +97,6 @@ static const struct dri_extension card_extensions[] = { /* *INDENT-OFF* */ {"GL_ARB_depth_texture", NULL}, {"GL_ARB_fragment_program", NULL}, - {"GL_ARB_half_float_vertex", NULL}, {"GL_ARB_occlusion_query", GL_ARB_occlusion_query_functions}, {"GL_ARB_multitexture", NULL}, {"GL_ARB_point_parameters", GL_ARB_point_parameters_functions}, @@ -452,6 +451,8 @@ 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_RV515) + _mesa_enable_extension(ctx, "GL_ARB_half_float_vertex"); } static void r300InitIoctlFuncs(struct dd_function_table *functions) |