summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authormichal <michal@michal-laptop.(none)>2007-07-05 19:55:38 +0200
committermichal <michal@michal-laptop.(none)>2007-07-05 19:55:38 +0200
commitffe58739da9eee2e99682747cc8f26e412c87430 (patch)
tree17698bfe671373d903d56ccc5d434b5ff3193d41 /src/mesa/state_tracker
parentac5523a9c31efbb89e58ef99da47b0d81a21409c (diff)
Softpipe: import TGSI tree. Not hooked-up yet.
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_cb_program.c14
-rw-r--r--src/mesa/state_tracker/st_texobj.c3
2 files changed, 13 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_cb_program.c b/src/mesa/state_tracker/st_cb_program.c
index 67a589ca8d..327b627722 100644
--- a/src/mesa/state_tracker/st_cb_program.c
+++ b/src/mesa/state_tracker/st_cb_program.c
@@ -41,6 +41,7 @@
#include "program.h"
#include "programopt.h"
#include "tnl/tnl.h"
+#include "pipe/tgsi/mesa/tgsi_mesa.h"
static void st_bind_program( GLcontext *ctx,
@@ -89,7 +90,7 @@ static struct gl_program *st_new_program( GLcontext *ctx,
static void st_delete_program( GLcontext *ctx,
struct gl_program *prog )
-{
+{
_mesa_delete_program( ctx, prog );
}
@@ -115,7 +116,7 @@ static void st_program_string_notify( GLcontext *ctx,
st->dirty.st |= ST_NEW_FRAGMENT_PROGRAM;
- p->id = st->program_id++;
+ p->id = st->program_id++;
#if 0
p->param_state = p->Base.Base.Parameters->StateFlags;
p->translated = 0;
@@ -128,6 +129,14 @@ static void st_program_string_notify( GLcontext *ctx,
_mesa_append_fog_code(ctx, &p->Base);
p->Base.FogOption = GL_NONE;
}
+
+ /* XXX: Not hooked-up yet. */
+ {
+ struct tgsi_token tokens[1024];
+
+ tgsi_mesa_compile_fp_program( prog, tokens, 1024 );
+ tgsi_dump( tokens, TGSI_DUMP_VERBOSE );
+ }
}
}
else if (target == GL_VERTEX_PROGRAM_ARB) {
@@ -148,7 +157,6 @@ void st_init_cb_program( struct st_context *st )
*/
st->ctx->FragmentProgram._MaintainTexEnvProgram = GL_TRUE;
st->ctx->FragmentProgram._UseTexEnvProgram = GL_TRUE;
-
assert(functions->ProgramStringNotify == _tnl_program_string);
functions->BindProgram = st_bind_program;
diff --git a/src/mesa/state_tracker/st_texobj.c b/src/mesa/state_tracker/st_texobj.c
index 455e89b6bd..eb5bdb2d08 100644
--- a/src/mesa/state_tracker/st_texobj.c
+++ b/src/mesa/state_tracker/st_texobj.c
@@ -52,7 +52,8 @@ create_texture_object(struct gl_texture_object *texObj)
if (!pto)
return NULL;
- assert(texObj->Complete);
+ /* XXX: Member not defined. Comment-out to get it compile. */
+ /*assert(texObj->Complete);*/
switch (texObj->Target) {
case GL_TEXTURE_1D: