summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-05-26 04:18:27 +0200
committerMarek Olšák <maraeo@gmail.com>2010-05-26 04:47:26 +0200
commit5c067a63040cc66f0320f30482529a4ff1bd3811 (patch)
tree0dc371d1dc23ad42a8f5c361acfabd388afbad41 /src/mesa/drivers/dri/r300/compiler/radeon_compiler.h
parentf2582da3bb72b06d7a751537898f752e110857c7 (diff)
r300/compiler: move hardware caps to the radeon_compiler base struct
Needed for vertex shaders too.
Diffstat (limited to 'src/mesa/drivers/dri/r300/compiler/radeon_compiler.h')
-rw-r--r--src/mesa/drivers/dri/r300/compiler/radeon_compiler.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h b/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h
index 09794a52ad..f15905d79d 100644
--- a/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h
+++ b/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h
@@ -38,6 +38,10 @@ struct radeon_compiler {
unsigned Error:1;
char * ErrorMsg;
+ /* Hardware specification. */
+ unsigned is_r500;
+ unsigned max_temp_regs;
+
/**
* Variables used internally, not be touched by callers
* of the compiler
@@ -84,12 +88,9 @@ struct r300_fragment_program_compiler {
/* Optional transformations and features. */
struct r300_fragment_program_external_state state;
unsigned enable_shadow_ambient;
- /* Hardware specification. */
- unsigned is_r500;
- unsigned max_temp_regs;
- /* Register corresponding to the depthbuffer. */
+ /* Register corresponding to the depthbuffer. */
unsigned OutputDepth;
- /* Registers corresponding to the four colorbuffers. */
+ /* Registers corresponding to the four colorbuffers. */
unsigned OutputColor[4];
void * UserData;