aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_compile.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-02-02 14:51:09 -0700
committerBrian <[email protected]>2007-02-02 14:51:09 -0700
commit8d396100374837519677c425342c10b738972260 (patch)
tree8f48cc10ad5ff555d53b79fdbc981123d3a1f2f1 /src/mesa/shader/slang/slang_compile.c
parentfa1fe5f6f3f33891abec491329e2a35adf7ffdca (diff)
move some functions, disable some code in preparation for removing assembly code
Diffstat (limited to 'src/mesa/shader/slang/slang_compile.c')
-rw-r--r--src/mesa/shader/slang/slang_compile.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c
index 9f7f18167d8..67fcbaef92d 100644
--- a/src/mesa/shader/slang/slang_compile.c
+++ b/src/mesa/shader/slang/slang_compile.c
@@ -100,7 +100,7 @@ _slang_code_object_ctr(slang_code_object * self)
for (i = 0; i < SLANG_BUILTIN_TOTAL; i++)
_slang_code_unit_ctr(&self->builtin[i], self);
_slang_code_unit_ctr(&self->unit, self);
-#if 01
+#if 0
_slang_assembly_file_ctr(&self->assembly);
#endif
self->varpool.next_addr = 0;
@@ -115,7 +115,7 @@ _slang_code_object_dtr(slang_code_object * self)
for (i = 0; i < SLANG_BUILTIN_TOTAL; i++)
_slang_code_unit_dtr(&self->builtin[i]);
_slang_code_unit_dtr(&self->unit);
-#if 01
+#if 0
slang_assembly_file_destruct(&self->assembly);
#endif
slang_atom_pool_destruct(&self->atompool);
@@ -1551,7 +1551,7 @@ initialize_global(slang_assemble_ctx * A, slang_variable * var)
slang_operation op_id, op_assign;
GLboolean result;
-#if 01
+#if 0
/* save the current assembly */
if (!slang_assembly_file_restore_point_save(A->file, &point))
return GL_FALSE;
@@ -1561,10 +1561,12 @@ initialize_global(slang_assemble_ctx * A, slang_variable * var)
A->local.ret_size = 0;
A->local.addr_tmp = 0;
A->local.swizzle_tmp = 4;
+#if 0
if (!slang_assembly_file_push_label(A->file, slang_asm_local_alloc, 20))
return GL_FALSE;
if (!slang_assembly_file_push_label(A->file, slang_asm_enter, 20))
return GL_FALSE;
+#endif
/* construct the left side of assignment */
if (!slang_operation_construct(&op_id))
@@ -1618,10 +1620,11 @@ initialize_global(slang_assemble_ctx * A, slang_variable * var)
if (!result)
return GL_FALSE;
+#if 0
if (!slang_assembly_file_push(A->file, slang_asm_exit))
return GL_FALSE;
-
-#if 01
+#endif
+#if 0
/* restore the old assembly */
if (!slang_assembly_file_restore_point_load(A->file, &point))
return GL_FALSE;