diff options
author | Tom Stellard <[email protected]> | 2012-08-29 09:58:28 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-08-29 15:52:10 -0400 |
commit | cf4ac69928eb17685958e6b3b01b97544560d90e (patch) | |
tree | 53e8f08191ca6b371fa46665b1582d9515aaf390 /src/gallium/drivers/radeonsi/radeonsi_shader.c | |
parent | 73a2c4b9db638cad83e412097ed3433649aab47b (diff) |
radeon/llvm: Declare the interpolation intrinsics as ReadOnly
This signals to the Dead Code Elimination pass that it is safe to
remove these instructions when they are dead.
Diffstat (limited to 'src/gallium/drivers/radeonsi/radeonsi_shader.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/radeonsi_shader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b/src/gallium/drivers/radeonsi/radeonsi_shader.c index 98866c4ee1f..d07b050799d 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_shader.c +++ b/src/gallium/drivers/radeonsi/radeonsi_shader.c @@ -329,8 +329,8 @@ static void declare_input_fs( args[1] = attr_number; args[2] = params; si_shader_ctx->radeon_bld.inputs[soa_index] = - lp_build_intrinsic(gallivm->builder, intr_name, - input_type, args, 3); + build_intrinsic(base->gallivm->builder, intr_name, + input_type, args, 3, LLVMReadOnlyAttribute); } } |