[Mesa-dev] [PATCH] tgsi_ureg: add property_gs_invocations

Jordan Justen jordan.l.justen at intel.com
Thu Feb 20 14:45:45 PST 2014


Fixes a build break in state_tracker/st_program.c

Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75278
Cc: Vinson Lee <vlee at freedesktop.org>
---
 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 f928f57..38cce58 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 e225984..a0a50b7 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);
 
-- 
1.9.rc1



More information about the mesa-dev mailing list