diff options
author | Xiang, Haihao <[email protected]> | 2007-08-13 17:16:27 +0800 |
---|---|---|
committer | Xiang, Haihao <[email protected]> | 2007-08-13 17:16:27 +0800 |
commit | 88451b04e9cd39db9cc9315aaf69e074614f22f9 (patch) | |
tree | 93cbbf60bfa563259f55689b5d088074a80f54ab /src/mesa/drivers/dri/i965/brw_wm_fp.c | |
parent | c9e4aa2b303f9056564724ece0e2733a54d9f569 (diff) |
i965: fix projtex_mask
projtex_mask is only an 8bit field, and wm.input_size_masks includes
other attributes' information, therefore right shift is needed.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm_fp.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_fp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_fp.c b/src/mesa/drivers/dri/i965/brw_wm_fp.c index ff97d87dc45..62bb0812062 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_fp.c +++ b/src/mesa/drivers/dri/i965/brw_wm_fp.c @@ -660,7 +660,7 @@ static GLboolean projtex( struct brw_wm_compile *c, return 0; /* ut2004 gun rendering !?! */ else if (src.File == PROGRAM_INPUT && GET_SWZ(src.Swizzle, W) == W && - (c->key.projtex_mask & (1<<src.Index)) == 0) + (c->key.projtex_mask & (1<<(src.Index + FRAG_ATTRIB_WPOS - FRAG_ATTRIB_TEX0))) == 0) return 0; else return 1; |