Mesa (master): r300/compiler: implement SFL for vertex shaders

Marek Olšák mareko at kemper.freedesktop.org
Fri Jun 4 22:04:10 PDT 2010


Module: Mesa
Branch: master
Commit: e629de94b53f49826626447a2e81cd9b01360a75
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e629de94b53f49826626447a2e81cd9b01360a75

Author: Marek Olšák <maraeo at gmail.com>
Date:   Fri Jun  4 23:10:11 2010 +0200

r300/compiler: implement SFL for vertex shaders

And sort the "case" statements alphabetically.

---

 .../drivers/dri/r300/compiler/radeon_program_alu.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_program_alu.c b/src/mesa/drivers/dri/r300/compiler/radeon_program_alu.c
index d07843c..0240fc0 100644
--- a/src/mesa/drivers/dri/r300/compiler/radeon_program_alu.c
+++ b/src/mesa/drivers/dri/r300/compiler/radeon_program_alu.c
@@ -636,11 +636,12 @@ int r300_transform_vertex_alu(
 	case RC_OPCODE_FLR: transform_FLR(c, inst); return 1;
 	case RC_OPCODE_LIT: transform_r300_vertex_fix_LIT(c, inst); return 1;
 	case RC_OPCODE_LRP: transform_LRP(c, inst); return 1;
+	case RC_OPCODE_SFL: transform_SFL(c, inst); return 1;
+	case RC_OPCODE_SGT: transform_r300_vertex_SGT(c, inst); return 1;
+	case RC_OPCODE_SLE: transform_r300_vertex_SLE(c, inst); return 1;
 	case RC_OPCODE_SUB: transform_SUB(c, inst); return 1;
 	case RC_OPCODE_SWZ: transform_SWZ(c, inst); return 1;
 	case RC_OPCODE_XPD: transform_XPD(c, inst); return 1;
-	case RC_OPCODE_SLE: transform_r300_vertex_SLE(c, inst); return 1;
-	case RC_OPCODE_SGT: transform_r300_vertex_SGT(c, inst); return 1;
 	default:
 		return 0;
 	}



More information about the mesa-commit mailing list