R6xx: select proper shader format
authorAlex Deucher <alexdeucher@gmail.com>
Tue, 26 May 2009 15:36:55 +0000 (11:36 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Tue, 26 May 2009 15:36:55 +0000 (11:36 -0400)
src/mesa/drivers/dri/r600/r700_render.c
src/mesa/drivers/dri/r600/r700_vertprog.c

index 3d7eec340322748830fb2e7ca09d1e337aece8d2..464023e96f8a04f1388ce3d24a9e1307d6052fca 100644 (file)
@@ -250,7 +250,7 @@ static GLboolean r700RunRender(GLcontext * ctx,
 
     struct r700_fragment_program *fp = (struct r700_fragment_program *)
                                           (ctx->FragmentProgram._Current);
-    if (context->radeon.radeonScreen->chip_family <= CHIP_FAMILY_RV670)
+    if (context->radeon.radeonScreen->chip_family < CHIP_FAMILY_RV770)
     {
         fp->r700AsmCode.bR6xx = 1;
     }
index 4d113e2e0badbad90ec6cf7c3b486ca03be3c8aa..932555376cb26eb90345b99c035273669290ef3b 100644 (file)
@@ -297,7 +297,7 @@ void r700SelectVertexShader(GLcontext *ctx)
     context_t *context = R700_CONTEXT(ctx);
     struct r700_vertex_program *vpc
              = (struct r700_vertex_program *)ctx->VertexProgram._Current;
-    if (context->radeon.radeonScreen->chip_family <= CHIP_FAMILY_RV670)
+    if (context->radeon.radeonScreen->chip_family < CHIP_FAMILY_RV770)
     {
         vpc->r700AsmCode.bR6xx = 1;
     }