From: Alex Deucher Date: Tue, 26 May 2009 15:36:55 +0000 (-0400) Subject: R6xx: select proper shader format X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=930b42693eb2e875d2447897dd1379d7bd273a95;p=mesa.git R6xx: select proper shader format --- diff --git a/src/mesa/drivers/dri/r600/r700_render.c b/src/mesa/drivers/dri/r600/r700_render.c index 3d7eec34032..464023e96f8 100644 --- a/src/mesa/drivers/dri/r600/r700_render.c +++ b/src/mesa/drivers/dri/r600/r700_render.c @@ -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; } diff --git a/src/mesa/drivers/dri/r600/r700_vertprog.c b/src/mesa/drivers/dri/r600/r700_vertprog.c index 4d113e2e0ba..932555376cb 100644 --- a/src/mesa/drivers/dri/r600/r700_vertprog.c +++ b/src/mesa/drivers/dri/r600/r700_vertprog.c @@ -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; }