Merge branch 'mesa_7_7_branch'
authorBrian Paul <brianp@vmware.com>
Fri, 22 Jan 2010 23:09:03 +0000 (16:09 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 22 Jan 2010 23:09:03 +0000 (16:09 -0700)
Conflicts:

src/mesa/shader/prog_execute.c

1  2 
src/gallium/winsys/xlib/xlib_softpipe.c
src/mesa/shader/prog_execute.c

index 7ea792f6193c181daa00c578531b58a73a0eaec0,fb29768935f389d219cc61c542b21156acde05f7..c212790dcd9f21c78cfe48ac8901432f427a9ba6
@@@ -1667,13 -1655,11 +1689,11 @@@ _mesa_execute_program(GLcontext * ctx
           break;
        case OPCODE_UP2H:        /* unpack two 16-bit floats */
           {
-             GLfloat a[4], result[4];
-             fi_type fi;
-             GLhalfNV hx, hy;
-             fetch_vector1(&inst->SrcReg[0], machine, a);
-             fi.f = a[0];
-             hx = fi.i & 0xffff;
-             hy = fi.i >> 16;
+             const GLuint raw = fetch_vector1ui(&inst->SrcReg[0], machine);
+             GLfloat result[4];
 -            GLhalfNV hx, hy;
++            GLushort hx, hy;
+             hx = raw & 0xffff;
+             hy = raw >> 16;
              result[0] = result[2] = _mesa_half_to_float(hx);
              result[1] = result[3] = _mesa_half_to_float(hy);
              store_vector4(inst, machine, result);