projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afb6fb9
)
i965: Allow OPCODE_SWZ to put immediates in the first arg.
author
Eric Anholt
<eric@anholt.net>
Wed, 10 Nov 2010 00:19:34 +0000
(16:19 -0800)
committer
Eric Anholt
<eric@anholt.net>
Wed, 10 Nov 2010 01:18:52 +0000
(17:18 -0800)
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
src/mesa/drivers/dri/i965/brw_wm_emit.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_wm_emit.c
b/src/mesa/drivers/dri/i965/brw_wm_emit.c
index 272476219a20dec15ad769ad5d3e1b3ed214cf87..d03756067a7b24ad549fa6f717fd95e3585882f7 100644
(file)
--- 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,
};