diff options
author | Chris Forbes <[email protected]> | 2013-10-05 23:26:07 +1300 |
---|---|---|
committer | Chris Forbes <[email protected]> | 2013-10-06 11:25:14 +1300 |
commit | 2656c6118be066766f16cc7c801e8e7997539c8b (patch) | |
tree | 3664ad3c6997d588e0a2d795444f2dd624521cc5 /src/mesa/drivers/dri/i965/brw_wm.c | |
parent | e8ec2e03442cc21e84ff3a1ed7610e6b6d4468e5 (diff) |
i965/ivb: Flag RG32F quirk for texture gather regardless of swizzles
As of ARB_gpu_shader5, textureGather doesn't always read the
post-swizzle RED channel -- so we can't just look at the red swizzle
state.
Theoretically we could only flag the quirk if *some* green swizzle is in
use, but that's probably more trouble than it's worth.
Signed-off-by: Chris Forbes <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c index 6ce58dda35a..ebf6b9cfe6a 100644 --- a/src/mesa/drivers/dri/i965/brw_wm.c +++ b/src/mesa/drivers/dri/i965/brw_wm.c @@ -349,7 +349,7 @@ brw_populate_sampler_prog_key_data(struct gl_context *ctx, /* gather4's channel select for green from RG32F is broken; * requires a shader w/a on IVB; fixable with just SCS on HSW. */ if (brw->gen >= 7 && !brw->is_haswell && prog->UsesGather) { - if (img->InternalFormat == GL_RG32F && GET_SWZ(t->_Swizzle, 0) == 1) + if (img->InternalFormat == GL_RG32F) key->gather_channel_quirk_mask |= 1 << s; } } |