[Mesa-dev] [PATCH mesa v2 1/3] tgsi: Fix decl.Atomic and .Shared not propagating when parsing tgsi text
Samuel Pitoiset
samuel.pitoiset at gmail.com
Wed Mar 16 09:40:13 UTC 2016
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
On 03/16/2016 09:55 AM, Hans de Goede wrote:
> When support for decl.Atomic and .Shared was added, tgsi_build_declaration
> was not updated to propagate these properly.
>
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
> Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
> Changes in v2:
> -Add Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
> src/gallium/auxiliary/tgsi/tgsi_build.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/src/gallium/auxiliary/tgsi/tgsi_build.c b/src/gallium/auxiliary/tgsi/tgsi_build.c
> index e5355f5..1cb95b9 100644
> --- a/src/gallium/auxiliary/tgsi/tgsi_build.c
> +++ b/src/gallium/auxiliary/tgsi/tgsi_build.c
> @@ -127,6 +127,8 @@ tgsi_build_declaration(
> unsigned invariant,
> unsigned local,
> unsigned array,
> + unsigned atomic,
> + unsigned shared,
> struct tgsi_header *header )
> {
> struct tgsi_declaration declaration;
> @@ -143,6 +145,8 @@ tgsi_build_declaration(
> declaration.Invariant = invariant;
> declaration.Local = local;
> declaration.Array = array;
> + declaration.Atomic = atomic;
> + declaration.Shared = shared;
> header_bodysize_grow( header );
>
> return declaration;
> @@ -401,6 +405,8 @@ tgsi_build_full_declaration(
> full_decl->Declaration.Invariant,
> full_decl->Declaration.Local,
> full_decl->Declaration.Array,
> + full_decl->Declaration.Atomic,
> + full_decl->Declaration.Shared,
> header );
>
> if (maxsize <= size)
>
More information about the mesa-dev
mailing list