summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/nouveau/nouveau_shader.c
diff options
context:
space:
mode:
authorBen Skeggs <darktama@iinet.net.au>2006-09-24 13:16:23 +0000
committerBen Skeggs <darktama@iinet.net.au>2006-09-24 13:16:23 +0000
commita05db7f505caef75296170bcb6884ba287b1ab25 (patch)
treec035b7e3179569e2b069bf11d812800f02b3bc0e /src/mesa/drivers/dri/nouveau/nouveau_shader.c
parent7d907ef69c3cbd6cd0c49f454bc933bc9c343d31 (diff)
Kill all the current shader code.
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nouveau_shader.c')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_shader.c91
1 files changed, 0 insertions, 91 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_shader.c b/src/mesa/drivers/dri/nouveau/nouveau_shader.c
deleted file mode 100644
index ef8f02e910..0000000000
--- a/src/mesa/drivers/dri/nouveau/nouveau_shader.c
+++ /dev/null
@@ -1,91 +0,0 @@
-#include "glheader.h"
-#include "macros.h"
-#include "enums.h"
-
-#include "program.h"
-#include "nouveau_context.h"
-#include "nouveau_shader.h"
-
-static struct program *
-nv40NewProgram(GLcontext *ctx, GLenum target, GLuint id)
-{
-}
-
-static void
-nv40BindProgram(GLcontext *ctx, GLenum target, struct program *prog)
-{
-}
-
-static void
-nv40DeleteProgram(GLcontext *ctx, struct program *prog)
-{
-}
-
-static void
-nv40ProgramStringNotify(GLcontext *ctx, GLenum target,
- struct program *prog)
-{
-}
-
-static GLboolean
-nv40IsProgramNative(GLcontext *ctx, GLenum target, struct program *prog)
-{
-}
-
-void
-nouveauInitShaderFuncs(GLcontext *ctx)
-{
- struct nouveau_context *nmesa = NOUVEAU_CONTEXT(ctx);
-
- if (nmesa->screen->card_type == NV_40) {
- ctx->Driver.NewProgram = nv40NewProgram;
- ctx->Driver.BindProgram = nv40BindProgram;
- ctx->Driver.DeleteProgram = nv40DeleteProgram;
- ctx->Driver.ProgramStringNotify = nv40ProgramStringNotify;
- ctx->Driver.IsProgramNative = nv40IsProgramNative;
- }
-}
-
-#define LONGBITS (sizeof(long) * 8)
-void
-nvsBitSet(long *rec, int bit)
-{
- int ri = bit / LONGBITS;
- int rb = bit % LONGBITS;
-
- rec[ri] |= (1 << rb);
-}
-
-void
-nvsBitClear(long *rec, int bit)
-{
- int ri = bit / LONGBITS;
- int rb = bit % LONGBITS;
-
- rec[ri] &= ~(1 << rb);
-}
-
-void
-nvsRecInit(long **rec, int max)
-{
- int c = (max / LONGBITS) + ((max % LONGBITS) ? 1 : 0);
- *rec = calloc(c, sizeof(long));
-}
-
-int
-nvsAllocIndex(long *rec, int max)
-{
- int c = (max / LONGBITS) + ((max % LONGBITS) ? 1 : 0);
- int i, idx = 0;
-
- for (i=0;i<c;i++) {
- idx = ffsl(~rec[i]);
- if (idx) {
- nvsBitSet(rec, (idx - 1));
- break;
- }
- }
-
- return (idx - 1);
-}
-