r300/compiler: fix warnings

This commit is contained in:
Marek Olšák
2010-09-13 07:51:47 +02:00
parent ab7cc44580
commit 185434fbe8
2 changed files with 3 additions and 2 deletions
@@ -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;
}
@@ -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)