summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2014-02-20 14:36:33 -0800
committerJordan Justen <[email protected]>2014-02-20 16:41:01 -0800
commitc97763ca2d740bd44062a81def9a49a03dcc0424 (patch)
treef9be45b19dc83d1bb31c940f4b8698f51f71b3a7
parent1336ccb7dd63b64ef5d8bb0a7f57d6291b0f3a97 (diff)
tgsi_ureg: add property_gs_invocations
Fixes a build break in state_tracker/st_program.c Signed-off-by: Jordan Justen <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75278 Reviewed-by: Dave Airlie <[email protected]>
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_ureg.c7
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_ureg.h4
2 files changed, 11 insertions, 0 deletions
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
@@ -165,6 +165,10 @@ 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);