소스 검색

r300: Further reduce dependency between compiler and classic driver

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
tags/mesa_7_6_rc1
Nicolai Hähnle 16 년 전
부모
커밋
d6275ccf79

+ 2
- 2
src/mesa/drivers/dri/r300/compiler/r300_fragprog.c 파일 보기

@@ -25,11 +25,11 @@
*
*/

#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)
{

+ 2
- 2
src/mesa/drivers/dri/r300/compiler/r300_fragprog.h 파일 보기

@@ -36,8 +36,8 @@
#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);

+ 5
- 5
src/mesa/drivers/dri/r300/compiler/r300_fragprog_emit.c 파일 보기

@@ -38,12 +38,12 @@
* \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 \
@@ -334,7 +334,7 @@ GLboolean r300BuildFragmentProgramHwCode(struct r300_fragment_program_compiler *
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))

+ 1
- 1
src/mesa/drivers/dri/r300/compiler/r300_fragprog_swizzle.c 파일 보기

@@ -33,7 +33,7 @@

#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))

+ 2
- 2
src/mesa/drivers/dri/r300/compiler/r500_fragprog.c 파일 보기

@@ -25,9 +25,9 @@
*
*/

#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)
{

+ 2
- 2
src/mesa/drivers/dri/r300/compiler/r500_fragprog.h 파일 보기

@@ -36,8 +36,8 @@
#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);


+ 4
- 4
src/mesa/drivers/dri/r300/compiler/r500_fragprog_emit.c 파일 보기

@@ -43,11 +43,11 @@
*
*/

#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 \
@@ -310,7 +310,7 @@ GLboolean r500BuildFragmentProgramHwCode(struct r300_fragment_program_compiler *
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) {

+ 3
- 4
src/mesa/drivers/dri/r300/compiler/radeon_program_pair.c 파일 보기

@@ -35,8 +35,6 @@

#include "radeon_program_pair.h"

#include "radeon_common.h"

#include "memory_pool.h"
#include "shader/prog_print.h"

@@ -877,7 +875,8 @@ static void emit_alu(struct pair_state *s)


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;

@@ -886,7 +885,7 @@ GLboolean radeonPairProgram(struct gl_program *program,
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)

+ 2
- 1
src/mesa/drivers/dri/r300/compiler/radeon_program_pair.h 파일 보기

@@ -140,7 +140,8 @@ struct radeon_pair_handler {
};

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);


Loading…
취소
저장