From eb8be5d923f1e3063aac330ced9fc7c7b63b2a88 Mon Sep 17 00:00:00 2001 From: Jerome Glisse Date: Sun, 22 May 2005 12:24:52 +0000 Subject: [PATCH] Small change to handle native case (7 natives case) --- src/mesa/drivers/dri/r300/r300_fragprog_swz.c | 18 ++++++++++++------ 1 file 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__, -- 2.30.2