summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorFabian Bieler <[email protected]>2013-05-30 00:54:55 +0200
committerDave Airlie <[email protected]>2013-10-17 08:35:42 +0100
commit20cad7fd6f6cbd8fc330c7bc54e8e1c62ae5f431 (patch)
treecb0f46c56c7db0021a91b466ca75afb9229c8c8a /src/mesa/state_tracker
parent9bfa475684fb20afacce01fa02b1a39bc3f23bdc (diff)
mesa/st: Allow geometry shaders without gl_Position export.
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." Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_program.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
index 925ea80403f..5efd6141d0c 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)