diff options
author | Eric Anholt <[email protected]> | 2010-11-09 16:19:34 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-11-09 17:18:52 -0800 |
commit | f00929cbddf2ea5794bebf01ac45f4070416d334 (patch) | |
tree | 0da0135439b6aaf87826f4cb79804bb192d82292 /src/mesa/drivers | |
parent | afb6fb9a92afaecbb0f8e9e65380c842667a4bd4 (diff) |
i965: Allow OPCODE_SWZ to put immediates in the first arg.
Fixes assertion failure with texture swizzling in the GLSL path when
it's triggered (such as gen6 FF or ARB_fp shadow comparisons).
Fixes:
texdepth
texSwizzle
fp1-DST test
fp1-LIT test 3
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_emit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_emit.c b/src/mesa/drivers/dri/i965/brw_wm_emit.c index 272476219a2..d03756067a7 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_emit.c +++ b/src/mesa/drivers/dri/i965/brw_wm_emit.c @@ -83,6 +83,7 @@ brw_wm_arg_can_be_immediate(enum prog_opcode opcode, int arg) [OPCODE_SLE] = 2, [OPCODE_SLT] = 2, [OPCODE_SNE] = 2, + [OPCODE_SWZ] = 1, [OPCODE_XPD] = 2, }; |