[Mesa-dev] [PATCH 3/4] st/mesa: pass the clip distance array size to drivers
Ilia Mirkin
imirkin at alum.mit.edu
Sun Oct 18 10:25:43 PDT 2015
Patches 1-3 are Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu> . Not
familiar with the tgsi scan stuff.
Do you have plans on finishing cull distance support btw? Dave Airlie
and Tobias Klaussman have both made attempts at it at one point or
another.
-ilia
On Sun, Oct 18, 2015 at 1:14 PM, Marek Olšák <maraeo at gmail.com> wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> ---
> src/mesa/state_tracker/st_program.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
> index 87571a8..75ccaf2 100644
> --- a/src/mesa/state_tracker/st_program.c
> +++ b/src/mesa/state_tracker/st_program.c
> @@ -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.
> */
> --
> 2.1.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list