[Mesa-dev] [PATCH 04/14] radeonsi: Add buffer load functions.

Michel Dänzer michel at daenzer.net
Wed May 11 03:08:23 UTC 2016


On 10.05.2016 19:52, Bas Nieuwenhuizen wrote:
> Signed-off-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
> ---
>  src/gallium/drivers/radeonsi/si_shader.c | 81 ++++++++++++++++++++++++++++++++
>  1 file changed, 81 insertions(+)
> 
> diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
> index 5897149..d3df4d6 100644
> --- a/src/gallium/drivers/radeonsi/si_shader.c
> +++ b/src/gallium/drivers/radeonsi/si_shader.c
> @@ -733,6 +733,87 @@ static void build_tbuffer_store_dwords(struct si_shader_context *ctx,
>  			    V_008F0C_BUF_NUM_FORMAT_UINT, 1, 0, 1, 1, 0);
>  }
>  
> +static LLVMValueRef build_buffer_load(struct si_shader_context *ctx,
> +				LLVMValueRef rsrc,
> +				int num_channels,
> +				LLVMValueRef vindex,
> +				LLVMValueRef voffset,
> +				LLVMValueRef soffset,
> +				unsigned inst_offset,
> +				unsigned glc,
> +				unsigned slc)

Looks like the lines for the second and later parameters aren't properly
aligned to the opening parenthesis.


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


More information about the mesa-dev mailing list