]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
swap out some _mm_stream_ps usage
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 20 Mar 2011 21:17:01 +0000 (21:17 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 20 Mar 2011 21:17:01 +0000 (21:17 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10952 d7cf8633-e32d-0410-b094-e92efae38249

dpsoftrast.c

index 4f480f896cd999887d551261c403013b36c5b1a0..e8eb95706a1fbf7fd082d5fc9473d2f628399847 100644 (file)
@@ -4692,9 +4692,9 @@ static void DPSOFTRAST_Interpret_Draw(DPSOFTRAST_State_Thread *thread, DPSOFTRAS
                                attribxslope = _mm_sub_ps(_mm_mul_ps(attribuxslope, attribedge1), _mm_mul_ps(attribvxslope, attribedge2));
                                attribyslope = _mm_sub_ps(_mm_mul_ps(attribvyslope, attribedge2), _mm_mul_ps(attribuyslope, attribedge1));
                                attriborigin = _mm_sub_ps(attriborigin, _mm_add_ps(_mm_mul_ps(attribxslope, x1), _mm_mul_ps(attribyslope, y1)));
-                               _mm_stream_ps(triangle->attribs[k][0], attribxslope);
-                               _mm_stream_ps(triangle->attribs[k][1], attribyslope);
-                               _mm_stream_ps(triangle->attribs[k][2], attriborigin);
+                               _mm_storeu_ps(triangle->attribs[k][0], attribxslope);
+                               _mm_storeu_ps(triangle->attribs[k][1], attribyslope);
+                               _mm_storeu_ps(triangle->attribs[k][2], attriborigin);
                                if (k == DPSOFTRAST_ShaderModeTable[thread->shader_mode].lodarrayindex)
                                {
                                        mipedgescale = _mm_movelh_ps(triangleedge1, triangleedge2);