summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJerome Glisse <[email protected]>2005-05-22 12:24:52 +0000
committerJerome Glisse <[email protected]>2005-05-22 12:24:52 +0000
commiteb8be5d923f1e3063aac330ced9fc7c7b63b2a88 (patch)
tree2a4e4f06523041af4fc5ca377258875f8f3a8e86 /src
parent446980473d6f2449b139ffca48679179be6c0d87 (diff)
Small change to handle native case (7 natives case)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/r300/r300_fragprog_swz.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_fragprog_swz.c b/src/mesa/drivers/dri/r300/r300_fragprog_swz.c
index a5c1df704b2..0c7f5fc17da 100644
--- a/src/mesa/drivers/dri/r300/r300_fragprog_swz.c
+++ b/src/mesa/drivers/dri/r300/r300_fragprog_swz.c
@@ -97,7 +97,8 @@
struct r300_fragment_program_swizzle r300_swizzle [512] = {
/* XXX */
- {0,{0,0,0,0},{0,0,0,0,0,0,0,0}},
+ {1,{0,0,0,0},{ I0_XXX, I1_XYZ,
+ 0, 0, 0, 0, 0, 0 } },
/* YXX */
{2,{0,0,0,0},{ I0_YYY, I1_X__,
I0_XXX, I1__YZ,
@@ -157,7 +158,8 @@ struct r300_fragment_program_swizzle r300_swizzle [512] = {
I0_XXX, I1_X__,
0,0,0,0}},
/* YZX */
- {0,{0,0,0,0},{0,0,0,0,0,0,0,0}},
+ {1,{0,0,0,0},{ I0_YZX, I1_XYZ,
+ 0, 0, 0, 0, 0, 0 } },
/* ZZX */
{2,{0,0,0,0},{ I0_YZX, I1__YZ,
I0_ZZZ, I1_X__,0,0,0,0}},
@@ -270,7 +272,8 @@ struct r300_fragment_program_swizzle r300_swizzle [512] = {
I0_XXX, I1__Y_,
0,0,0,0}},
/* ZXY */
- {0,{0,0,0,0},{0,0,0,0,0,0,0,0}},
+ {1,{0,0,0,0},{ I0_ZXY, I1_XYZ,
+ 0, 0, 0, 0, 0, 0 } },
/* WXY */
{2,{0,0,0,0},{ I0_WZY, I1_X__,
I0_ZXY, I1__YZ,
@@ -289,7 +292,8 @@ struct r300_fragment_program_swizzle r300_swizzle [512] = {
I0_XXX, I1_X__,
0,0,0,0}},
/* YYY */
- {0,{0,0,0,0},{0,0,0,0,0,0,0,0}},
+ {1,{0,0,0,0},{ I0_YYY, I1_XYZ,
+ 0, 0, 0, 0, 0, 0 } },
/* ZYY */
{2,{0,0,0,0},{ I0_YYY, I1__YZ,
I0_ZZZ, I1_X__,
@@ -320,7 +324,8 @@ struct r300_fragment_program_swizzle r300_swizzle [512] = {
I0_ZZZ, I1_X__,
0,0,0,0}},
/* WZY */
- {0,{0,0,0,0},{0,0,0,0,0,0,0,0}},
+ {1,{0,0,0,0},{ I0_WZY, I1_XYZ,
+ 0, 0, 0, 0, 0, 0 } },
/* 0ZY */
{2,{0,0,0,0},{ I0_WZY, I1__YZ,
I0_000, I1_X__ | I1_CST,
@@ -478,7 +483,8 @@ struct r300_fragment_program_swizzle r300_swizzle [512] = {
I0_YYY, I1_X__,
0,0,0,0}},
/* ZZZ */
- {0,{0,0,0,0},{0,0,0,0,0,0,0,0}},
+ {1,{0,0,0,0},{ I0_ZZZ, I1_XYZ,
+ 0, 0, 0, 0, 0, 0 } },
/* WZZ */
{2,{0,0,0,0},{ I0_ZZZ, I1__YZ,
I0_WZY, I1_X__,