[Mesa-dev] [PATCH 26/34] mesa/st: Allow geometry shaders without gl_Position export.

Paul Berry stereotype441 at gmail.com
Sun Jul 28 23:03:52 PDT 2013


From: Fabian Bieler <fabianbieler at fastmail.fm>

>From the ARB_geometry_shader4 spec (section Geometry Shader outputs):
"The built-in special variable gl_Position is intended to hold the
homogeneous vertex position. Writing gl_Position is optional."
---
 src/mesa/state_tracker/st_program.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
index 925ea80..5efd614 100644
--- a/src/mesa/state_tracker/st_program.c
+++ b/src/mesa/state_tracker/st_program.c
@@ -1031,8 +1031,6 @@ st_translate_geometry_program(struct st_context *st,
       }
    }
 
-   assert(gs_output_semantic_name[0] == TGSI_SEMANTIC_POSITION);
-
    /* find max output slot referenced to compute gs_num_outputs */
    for (attr = 0; attr < VARYING_SLOT_MAX; attr++) {
       if (outputMapping[attr] != ~0 && outputMapping[attr] > maxSlot)
-- 
1.8.3.4



More information about the mesa-dev mailing list