st/mesa: add support for clip vertex.
We need to pass the pre-projection matrix clip planes into the driver, instead of the post for the case we have a vertex shader that writes clip vertex. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -255,6 +255,10 @@ st_prepare_vertex_program(struct gl_context *ctx,
|
||||
case VERT_RESULT_EDGE:
|
||||
assert(0);
|
||||
break;
|
||||
case VERT_RESULT_CLIP_VERTEX:
|
||||
stvp->output_semantic_name[slot] = TGSI_SEMANTIC_CLIPVERTEX;
|
||||
stvp->output_semantic_index[slot] = 0;
|
||||
break;
|
||||
|
||||
case VERT_RESULT_TEX0:
|
||||
case VERT_RESULT_TEX1:
|
||||
|
Reference in New Issue
Block a user