summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-09-13 07:51:47 +0200
committerMarek Olšák <[email protected]>2010-09-13 07:52:13 +0200
commit185434fbe8e5e1ce650304bd077766b4e77b5f91 (patch)
treec850c48f3e950846458514186ac72e15080f179f
parentab7cc445801b99a4482ea50429ceea1d0601a221 (diff)
r300/compiler: fix warnings
-rw-r--r--src/mesa/drivers/dri/r300/compiler/radeon_pair_translate.c4
-rw-r--r--src/mesa/drivers/dri/r300/compiler/radeon_remove_constants.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_pair_translate.c b/src/mesa/drivers/dri/r300/compiler/radeon_pair_translate.c
index 2ba25d26014..ff825844663 100644
--- a/src/mesa/drivers/dri/r300/compiler/radeon_pair_translate.c
+++ b/src/mesa/drivers/dri/r300/compiler/radeon_pair_translate.c
@@ -225,7 +225,7 @@ static void set_pair_instruction(struct r300_fragment_program_compiler *c,
source = rc_pair_alloc_source(pair, srcrgb, srcalpha,
inst->SrcReg[i].File, inst->SrcReg[i].Index);
if (source < 0) {
- rc_error(c, "Failed to translate "
+ rc_error(&c->Base, "Failed to translate "
"rgb instruction.\n");
return;
}
@@ -245,7 +245,7 @@ static void set_pair_instruction(struct r300_fragment_program_compiler *c,
source = rc_pair_alloc_source(pair, srcrgb, srcalpha,
inst->SrcReg[i].File, inst->SrcReg[i].Index);
if (source < 0) {
- rc_error(c, "Failed to translate "
+ rc_error(&c->Base, "Failed to translate "
"alpha instruction.\n");
return;
}
diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_remove_constants.c b/src/mesa/drivers/dri/r300/compiler/radeon_remove_constants.c
index facea382f4e..d111319d3d9 100644
--- a/src/mesa/drivers/dri/r300/compiler/radeon_remove_constants.c
+++ b/src/mesa/drivers/dri/r300/compiler/radeon_remove_constants.c
@@ -26,6 +26,7 @@
*/
#include "radeon_remove_constants.h"
+#include "radeon_dataflow.h"
static void remap_regs(void * userdata, struct rc_instruction * inst,
rc_register_file * pfile, unsigned int * pindex)