mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
st/mesa: pass the clip distance array size to drivers
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
e70c66197e
commit
7c75f23cb9
1 changed files with 8 additions and 0 deletions
|
|
@ -395,6 +395,10 @@ st_translate_vertex_program(struct st_context *st,
|
|||
if (ureg == NULL)
|
||||
return false;
|
||||
|
||||
if (stvp->Base.Base.ClipDistanceArraySize)
|
||||
ureg_property(ureg, TGSI_PROPERTY_NUM_CLIPDIST_ENABLED,
|
||||
stvp->Base.Base.ClipDistanceArraySize);
|
||||
|
||||
if (ST_DEBUG & DEBUG_MESA) {
|
||||
_mesa_print_program(&stvp->Base.Base);
|
||||
_mesa_print_program_parameters(st->ctx, &stvp->Base.Base);
|
||||
|
|
@ -1049,6 +1053,10 @@ st_translate_program_common(struct st_context *st,
|
|||
memset(outputMapping, 0, sizeof(outputMapping));
|
||||
memset(out_state, 0, sizeof(*out_state));
|
||||
|
||||
if (prog->ClipDistanceArraySize)
|
||||
ureg_property(ureg, TGSI_PROPERTY_NUM_CLIPDIST_ENABLED,
|
||||
prog->ClipDistanceArraySize);
|
||||
|
||||
/*
|
||||
* Convert Mesa program inputs to TGSI input register semantics.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue