r600g: fix thinko in shadow code.
authorDave Airlie <airlied@redhat.com>
Thu, 2 Sep 2010 11:25:42 +0000 (21:25 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 2 Sep 2010 11:26:12 +0000 (21:26 +1000)
spotted by taiu on irc

src/gallium/drivers/r600/r600_shader.c

index 3147bc7ca33bfb67cd9361d4d920d4a0b7098aca..0ba26a23112f82ae36dc0adb9e4458a144ca3f02 100644 (file)
@@ -1684,7 +1684,7 @@ static int tgsi_tex(struct r600_shader_ctx *ctx)
        }
 
        if (inst->Texture.Texture == TGSI_TEXTURE_SHADOW1D || inst->Texture.Texture == TGSI_TEXTURE_SHADOW2D)
-               tex.coord_type_w = 2;
+               tex.src_sel_w = 2;
 
        r = r600_bc_add_tex(ctx->bc, &tex);
        if (r)