2012-03-30 19:09:08 +04:00
|
|
|
diff --git a/src/mesa/sources.mak b/src/mesa/sources.mak
|
2012-06-07 20:53:51 +04:00
|
|
|
index 63fbf58..5530230 100644
|
2012-03-30 19:09:08 +04:00
|
|
|
--- a/src/mesa/sources.mak
|
|
|
|
+++ b/src/mesa/sources.mak
|
2012-06-07 20:53:51 +04:00
|
|
|
@@ -277,7 +277,6 @@ ASM_C_FILES = \
|
|
|
|
$(SRCDIR)/x86/x86_xform.c \
|
|
|
|
$(SRCDIR)/x86/3dnow.c \
|
|
|
|
$(SRCDIR)/x86/sse.c \
|
|
|
|
- $(SRCDIR)/x86/rtasm/x86sse.c \
|
|
|
|
$(SRCDIR)/sparc/sparc.c \
|
|
|
|
$(SRCDIR)/x86-64/x86-64.c
|
2012-03-30 19:09:08 +04:00
|
|
|
|
|
|
|
diff --git a/src/mesa/tnl/t_vertex_sse.c b/src/mesa/tnl/t_vertex_sse.c
|
|
|
|
index e0141c3..1afaf78 100644
|
|
|
|
--- a/src/mesa/tnl/t_vertex_sse.c
|
|
|
|
+++ b/src/mesa/tnl/t_vertex_sse.c
|
|
|
|
@@ -36,7 +36,7 @@
|
|
|
|
|
|
|
|
#if defined(USE_SSE_ASM)
|
|
|
|
|
|
|
|
-#include "x86/rtasm/x86sse.h"
|
|
|
|
+#include "rtasm/rtasm_x86sse.h"
|
|
|
|
#include "x86/common_x86_asm.h"
|
|
|
|
|
|
|
|
|
|
|
|
@@ -356,7 +356,7 @@ static GLboolean build_vertex_emit( struct x86_program *p )
|
|
|
|
struct x86_reg vp0 = x86_make_reg(file_XMM, 1);
|
|
|
|
struct x86_reg vp1 = x86_make_reg(file_XMM, 2);
|
|
|
|
struct x86_reg temp2 = x86_make_reg(file_XMM, 3);
|
|
|
|
- GLubyte *fixup, *label;
|
|
|
|
+ GLuint fixup, label;
|
|
|
|
|
|
|
|
/* Push a few regs?
|
|
|
|
*/
|
|
|
|
@@ -658,7 +658,8 @@ void _tnl_generate_sse_emit( struct gl_context *ctx )
|
|
|
|
p.identity = x86_make_reg(file_XMM, 6);
|
|
|
|
p.chan0 = x86_make_reg(file_XMM, 7);
|
|
|
|
|
|
|
|
- if (!x86_init_func_size(&p.func, MAX_SSE_CODE_SIZE)) {
|
|
|
|
+ x86_init_func_size(&p.func, MAX_SSE_CODE_SIZE);
|
|
|
|
+ if (p.func.caps == 0) {
|
|
|
|
vtx->emit = NULL;
|
|
|
|
return;
|
|
|
|
}
|