*
*/
-#include "compiler/r300_fragprog.h"
+#include "r300_fragprog.h"
#include "shader/prog_parameter.h"
-#include "r300_reg.h"
+#include "../r300_reg.h"
static void reset_srcreg(struct prog_src_register* reg)
{
#include "shader/program.h"
#include "shader/prog_instruction.h"
-#include "compiler/radeon_compiler.h"
-#include "compiler/radeon_program.h"
+#include "radeon_compiler.h"
+#include "radeon_program.h"
extern GLboolean r300BuildFragmentProgramHwCode(struct r300_fragment_program_compiler *compiler);
* \todo FogOption
*/
-#include "compiler/r300_fragprog.h"
+#include "r300_fragprog.h"
-#include "r300_reg.h"
+#include "../r300_reg.h"
-#include "compiler/radeon_program_pair.h"
-#include "compiler/r300_fragprog_swizzle.h"
+#include "radeon_program_pair.h"
+#include "r300_fragprog_swizzle.h"
#define PROG_CODE \
code->node[0].alu_end = -1;
code->node[0].tex_end = -1;
- if (!radeonPairProgram(compiler->program, &pair_handler, compiler))
+ if (!radeonPairProgram(compiler->program, &pair_handler, compiler, compiler->debug))
return GL_FALSE;
if (!finish_node(compiler))
#include "r300_fragprog_swizzle.h"
-#include "r300_reg.h"
+#include "../r300_reg.h"
#include "radeon_nqssadce.h"
#define MAKE_SWZ3(x, y, z) (MAKE_SWIZZLE4(SWIZZLE_##x, SWIZZLE_##y, SWIZZLE_##z, SWIZZLE_ZERO))
*
*/
-#include "compiler/r500_fragprog.h"
+#include "r500_fragprog.h"
-#include "r300_reg.h"
+#include "../r300_reg.h"
static void reset_srcreg(struct prog_src_register* reg)
{
#include "shader/prog_parameter.h"
#include "shader/prog_instruction.h"
-#include "compiler/radeon_compiler.h"
-#include "compiler/radeon_nqssadce.h"
+#include "radeon_compiler.h"
+#include "radeon_nqssadce.h"
extern GLboolean r500BuildFragmentProgramHwCode(struct r300_fragment_program_compiler *compiler);
*
*/
-#include "compiler/r500_fragprog.h"
+#include "r500_fragprog.h"
-#include "r300_reg.h"
+#include "../r300_reg.h"
-#include "compiler/radeon_program_pair.h"
+#include "radeon_program_pair.h"
#define PROG_CODE \
code->inst_offset = 0;
code->inst_end = -1;
- if (!radeonPairProgram(compiler->program, &pair_handler, compiler))
+ if (!radeonPairProgram(compiler->program, &pair_handler, compiler, compiler->debug))
return GL_FALSE;
if ((code->inst[code->inst_end].inst0 & R500_INST_TYPE_MASK) != R500_INST_TYPE_OUT) {
#include "radeon_program_pair.h"
-#include "radeon_common.h"
-
#include "memory_pool.h"
#include "shader/prog_print.h"
GLboolean radeonPairProgram(struct gl_program *program,
- const struct radeon_pair_handler* handler, void *userdata)
+ const struct radeon_pair_handler* handler, void *userdata,
+ GLboolean debug)
{
struct pair_state s;
s.Program = program;
s.Handler = handler;
s.UserData = userdata;
- s.Debug = (RADEON_DEBUG & DEBUG_PIXEL) ? GL_TRUE : GL_FALSE;
+ s.Debug = debug;
s.Verbose = GL_FALSE && s.Debug;
if (s.Debug)
};
GLboolean radeonPairProgram(struct gl_program *program,
- const struct radeon_pair_handler*, void *userdata);
+ const struct radeon_pair_handler*, void *userdata,
+ GLboolean debug);
void radeonPrintPairInstruction(struct radeon_pair_instruction *inst);