tgsi: plumb some declaration parameters

We forgot to plumb some parameters when we updated TGSI.

Reviewed-by: Dave Airlie <airlied@redhat.com>
macos/master
Gurchetan Singh 6 years ago committed by Dave Airlie
parent 89eae094e5
commit 753db79f99
  1. 8
      src/gallium/auxiliary/tgsi/tgsi_build.c

@ -110,6 +110,8 @@ tgsi_default_declaration( void )
declaration.Invariant = 0;
declaration.Local = 0;
declaration.Array = 0;
declaration.Atomic = 0;
declaration.MemType = TGSI_MEMORY_TYPE_GLOBAL;
declaration.Padding = 0;
return declaration;
@ -125,6 +127,8 @@ tgsi_build_declaration(
unsigned invariant,
unsigned local,
unsigned array,
unsigned atomic,
unsigned memtype,
struct tgsi_header *header )
{
struct tgsi_declaration declaration;
@ -141,6 +145,8 @@ tgsi_build_declaration(
declaration.Invariant = invariant;
declaration.Local = local;
declaration.Array = array;
declaration.Atomic = atomic;
declaration.MemType = memtype;
header_bodysize_grow( header );
return declaration;
@ -409,6 +415,8 @@ tgsi_build_full_declaration(
full_decl->Declaration.Invariant,
full_decl->Declaration.Local,
full_decl->Declaration.Array,
full_decl->Declaration.Atomic,
full_decl->Declaration.MemType,
header );
if (maxsize <= size)

Loading…
Cancel
Save