summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_fs.h
diff options
context:
space:
mode:
authorNicolai Hähnle <nhaehnle@gmail.com>2009-07-30 23:45:34 +0200
committerNicolai Hähnle <nhaehnle@gmail.com>2009-07-30 23:55:12 +0200
commitd0c398a8e2985b855f923aec3470cef8734a622a (patch)
treec35bc03f01da577f0cb139e6d433287e0f00ffe6 /src/gallium/drivers/r300/r300_fs.h
parentfbc88a7334c9567b623572b60267c747a9baa0fb (diff)
r300g: Use radeon compiler for fragment programs
This is entirely untested on R500, and needs more testing on R300.
Diffstat (limited to 'src/gallium/drivers/r300/r300_fs.h')
-rw-r--r--src/gallium/drivers/r300/r300_fs.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_fs.h b/src/gallium/drivers/r300/r300_fs.h
index 18deb7a05e..9fab789402 100644
--- a/src/gallium/drivers/r300/r300_fs.h
+++ b/src/gallium/drivers/r300/r300_fs.h
@@ -30,6 +30,21 @@
#include "r3xx_fs.h"
#include "r5xx_fs.h"
+#include "radeon_code.h"
+
+struct r300_fragment_shader {
+ /* Parent class */
+ struct pipe_shader_state state;
+ struct tgsi_shader_info info;
+
+ /* Has this shader been translated yet? */
+ boolean translated;
+
+ /* Compiled code */
+ struct rX00_fragment_program_code code;
+};
+
+
void r300_translate_fragment_shader(struct r300_context* r300,
struct r300_fragment_shader* fs);