summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/graw-xlib/graw_xlib.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2010-05-14 12:10:09 +0100
committerKeith Whitwell <[email protected]>2010-05-14 12:19:57 +0100
commitc26751447011a713924b9163a1e0b44fd39c6b1c (patch)
treee8db4c28d9f8da0a1ab20ced02710dcdbb0ef6cf /src/gallium/targets/graw-xlib/graw_xlib.c
parent7375d7a5c9d5c32fd6bdde0cc8cab8fe41415964 (diff)
graw: split util code into new file
Diffstat (limited to 'src/gallium/targets/graw-xlib/graw_xlib.c')
-rw-r--r--src/gallium/targets/graw-xlib/graw_xlib.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/gallium/targets/graw-xlib/graw_xlib.c b/src/gallium/targets/graw-xlib/graw_xlib.c
index d0e3e4bdd6b..c9a850136a8 100644
--- a/src/gallium/targets/graw-xlib/graw_xlib.c
+++ b/src/gallium/targets/graw-xlib/graw_xlib.c
@@ -2,7 +2,6 @@
#include "pipe/p_context.h"
#include "util/u_debug.h"
#include "util/u_memory.h"
-#include "tgsi/tgsi_text.h"
#include "target-helpers/wrap_screen.h"
#include "state_tracker/xlib_sw_winsys.h"
@@ -198,33 +197,3 @@ graw_main_loop( void )
}
}
-
-
-/* Helper functions. These are the same for all graw implementations.
- */
-void *graw_parse_vertex_shader(struct pipe_context *pipe,
- const char *text)
-{
- struct tgsi_token tokens[1024];
- struct pipe_shader_state state;
-
- if (!tgsi_text_translate(text, tokens, Elements(tokens)))
- return NULL;
-
- state.tokens = tokens;
- return pipe->create_vs_state(pipe, &state);
-}
-
-void *graw_parse_fragment_shader(struct pipe_context *pipe,
- const char *text)
-{
- struct tgsi_token tokens[1024];
- struct pipe_shader_state state;
-
- if (!tgsi_text_translate(text, tokens, Elements(tokens)))
- return NULL;
-
- state.tokens = tokens;
- return pipe->create_fs_state(pipe, &state);
-}
-