summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorVincent Lejeune <[email protected]>2012-09-23 15:53:57 +0200
committerVincent Lejeune <[email protected]>2012-09-28 01:46:38 +0200
commit92b3a99ce5f54f2c692c8db5a0c471aac0ff7c82 (patch)
treea6222d98016dfcb224896be109b17e8164aca6d5 /src/gallium/drivers/r600
parenta1a3792b180e453d26bfd09853eee88460dfc466 (diff)
r600g: add some members to radeon_llvm_context
Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r--src/gallium/drivers/r600/r600_shader.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index 20bf79d4116..bf4877ae81d 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -1332,6 +1332,11 @@ static int r600_shader_from_tgsi(struct r600_screen *rscreen,
unsigned dump = 0;
memset(&radeon_llvm_ctx, 0, sizeof(radeon_llvm_ctx));
radeon_llvm_ctx.reserved_reg_count = ctx.file_offset[TGSI_FILE_INPUT];
+ radeon_llvm_ctx.type = ctx.type;
+ radeon_llvm_ctx.two_side = shader->two_side;
+ radeon_llvm_ctx.face_input = ctx.face_gpr;
+ radeon_llvm_ctx.r600_inputs = ctx.shader->input;
+ radeon_llvm_ctx.chip_class = ctx.bc->chip_class;
mod = r600_tgsi_llvm(&radeon_llvm_ctx, tokens);
if (debug_get_bool_option("R600_DUMP_SHADERS", FALSE)) {
dump = 1;