mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
r5xx: Negation masks for every inst except SWZ.
Yay?
This commit is contained in:
parent
bd74d2aa26
commit
594760148c
1 changed files with 7 additions and 1 deletions
|
|
@ -117,8 +117,10 @@ static inline GLuint make_rgb_swizzle(struct prog_src_register src) {
|
|||
temp = GET_SWZ(src.Swizzle, i);
|
||||
/* Fix SWIZZLE_ONE */
|
||||
if (temp == 5) temp++;
|
||||
swiz += temp << i*3;
|
||||
swiz |= temp << i*3;
|
||||
}
|
||||
if (src.NegateBase)
|
||||
swiz |= (R500_SWIZ_MOD_NEG << 10);
|
||||
return swiz;
|
||||
}
|
||||
|
||||
|
|
@ -126,6 +128,10 @@ static inline GLuint make_alpha_swizzle(struct prog_src_register src) {
|
|||
GLuint swiz = GET_SWZ(src.Swizzle, 3);
|
||||
|
||||
if (swiz == 5) swiz++;
|
||||
|
||||
if (src.NegateBase)
|
||||
swiz |= (R500_SWIZ_MOD_NEG << 4);
|
||||
|
||||
return swiz;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue