From c97763ca2d740bd44062a81def9a49a03dcc0424 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Thu, 20 Feb 2014 14:36:33 -0800 Subject: [PATCH] tgsi_ureg: add property_gs_invocations Fixes a build break in state_tracker/st_program.c Signed-off-by: Jordan Justen Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75278 Reviewed-by: Dave Airlie --- src/gallium/auxiliary/tgsi/tgsi_ureg.c | 7 +++++++ src/gallium/auxiliary/tgsi/tgsi_ureg.h | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c b/src/gallium/auxiliary/tgsi/tgsi_ureg.c index f928f573099..38cce584900 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_ureg.c +++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.c @@ -168,6 +168,7 @@ struct ureg_program unsigned property_gs_input_prim; unsigned property_gs_output_prim; unsigned property_gs_max_vertices; + unsigned property_gs_invocations; unsigned char property_fs_coord_origin; /* = TGSI_FS_COORD_ORIGIN_* */ unsigned char property_fs_coord_pixel_center; /* = TGSI_FS_COORD_PIXEL_CENTER_* */ unsigned char property_fs_color0_writes_all_cbufs; /* = TGSI_FS_COLOR0_WRITES_ALL_CBUFS * */ @@ -295,6 +296,12 @@ ureg_property_gs_max_vertices(struct ureg_program *ureg, { ureg->property_gs_max_vertices = max_vertices; } +void +ureg_property_gs_invocations(struct ureg_program *ureg, + unsigned invocations) +{ + ureg->property_gs_invocations = invocations; +} void ureg_property_fs_coord_origin(struct ureg_program *ureg, diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.h b/src/gallium/auxiliary/tgsi/tgsi_ureg.h index e22598413ae..a0a50b7220e 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_ureg.h +++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.h @@ -164,6 +164,10 @@ void ureg_property_gs_max_vertices(struct ureg_program *ureg, unsigned max_vertices); +void +ureg_property_gs_invocations(struct ureg_program *ureg, + unsigned invocations); + void ureg_property_fs_coord_origin(struct ureg_program *ureg, unsigned fs_coord_origin); -- 2.30.2