diff options
author | Xiang, Haihao <[email protected]> | 2008-02-15 16:13:11 +0800 |
---|---|---|
committer | Xiang, Haihao <[email protected]> | 2008-02-15 16:13:11 +0800 |
commit | 83068115e2104b1880431ada96fa37e632149a86 (patch) | |
tree | 749544eea9e8d6431c9d0f64216a099903967519 /src/mesa/drivers/dri/i965 | |
parent | 7eef52e975e852207ee840c74cd822c8f8c90a01 (diff) |
i965: don't swizzle fogcoord if FogOption is FOG_NONE.
fix #10788 issue on 965.
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vs_tnl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs_tnl.c b/src/mesa/drivers/dri/i965/brw_vs_tnl.c index b8231fc1d2f..d58fd4c0da2 100644 --- a/src/mesa/drivers/dri/i965/brw_vs_tnl.c +++ b/src/mesa/drivers/dri/i965/brw_vs_tnl.c @@ -1172,6 +1172,11 @@ static void build_fog( struct tnl_program *p ) } else { input = swizzle1(register_input(p, VERT_ATTRIB_FOG), X); + if (p->state->fog_option && + p->state->tnl_do_vertex_fog) + input = swizzle1(register_input(p, VERT_ATTRIB_FOG), X); + else + input = register_input(p, VERT_ATTRIB_FOG); } if (p->state->fog_option && |