diff options
author | Christoph Bumiller <[email protected]> | 2011-06-02 14:01:24 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-06-02 14:10:34 +0200 |
commit | a531513b06be45868bc4d4f6a9757fe6992ef304 (patch) | |
tree | 0be0e5b0aa41fff0ba0b972e464bab9119b410bd /src/gallium/state_trackers | |
parent | f61d1deac7d19dcec38b7852a635d92680624a32 (diff) |
d3d1x/sm4: fix swizzle for 1 component operands
For example, "mov o0.w, l(1)" would use imm_values[3], which is
not valid.
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/d3d1x/d3d1xshader/src/sm4_parse.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/d3d1x/d3d1xshader/src/sm4_parse.cpp b/src/gallium/state_trackers/d3d1x/d3d1xshader/src/sm4_parse.cpp index 2c0f8269af3..de4a1e551e2 100644 --- a/src/gallium/state_trackers/d3d1x/d3d1xshader/src/sm4_parse.cpp +++ b/src/gallium/state_trackers/d3d1x/d3d1xshader/src/sm4_parse.cpp @@ -91,6 +91,7 @@ struct sm4_parser break; case SM4_OPERAND_COMPNUM_1: op.comps = 1; + op.swizzle[1] = op.swizzle[2] = op.swizzle[3] = 0; break; case SM4_OPERAND_COMPNUM_4: op.comps = 4; |