[i965] flip point sprite
authorZou Nan hai <nanhai.zou@intel.com>
Thu, 14 Feb 2008 03:01:34 +0000 (11:01 +0800)
committerZou Nan hai <nanhai.zou@intel.com>
Thu, 14 Feb 2008 03:01:34 +0000 (11:01 +0800)
src/mesa/drivers/dri/i965/brw_sf_emit.c

index ad1527e5193a6ab2ed8cba2c97bdaefc304596ef..6fba8c890835b3b6a8cbad1d95b462d2ef1d7e7e 100644 (file)
@@ -570,7 +570,7 @@ void brw_emit_point_sprite_setup( struct brw_sf_compile *c, GLboolean allocate)
                  BRW_MATH_DATA_SCALAR,
                  BRW_MATH_PRECISION_FULL);
 
-         if (c->key.SpriteOrigin == GL_UPPER_LEFT) {
+         if (c->key.SpriteOrigin == GL_LOWER_LEFT) {
                brw_MUL(p, c->m1Cx, c->tmp, c->inv_w[0]);
                brw_MOV(p, vec1(suboffset(c->m1Cx, 1)), brw_imm_f(0.0));
                brw_MUL(p, c->m2Cy, c->tmp, negate(c->inv_w[0]));
@@ -589,7 +589,7 @@ void brw_emit_point_sprite_setup( struct brw_sf_compile *c, GLboolean allocate)
       {
         brw_set_predicate_control_flag_value(p, pc); 
         if (tex->CoordReplace) {
-            if (c->key.SpriteOrigin == GL_UPPER_LEFT) {
+            if (c->key.SpriteOrigin == GL_LOWER_LEFT) {
                 brw_MUL(p, c->m3C0, c->inv_w[0], brw_imm_f(1.0));
                 brw_MOV(p, vec1(suboffset(c->m3C0, 0)), brw_imm_f(0.0));
             }