[Mesa-dev] [PATCH 1/4] i965/fs: Set output_components for lowered clip distance outputs

Kristian Høgsberg krh at bitplanet.net
Tue Sep 15 10:40:35 PDT 2015


On Mon, Sep 14, 2015 at 4:35 PM, Jason Ekstrand <jason at jlekstrand.net> wrote:
> Cc: Kristian Høgsberg <krh at bitplanet.net>

Reviewed-by: Kristian Høgsberg <krh at bitplanet.net>

> ---
>  src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
> index 5cb794b..cea16e0 100644
> --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
> @@ -840,7 +840,9 @@ void fs_visitor::compute_clip_distance(gl_clip_plane *clip_planes)
>     const fs_builder abld = bld.annotate("user clip distances");
>
>     this->outputs[VARYING_SLOT_CLIP_DIST0] = vgrf(glsl_type::vec4_type);
> +   this->output_components[VARYING_SLOT_CLIP_DIST0] = 4;
>     this->outputs[VARYING_SLOT_CLIP_DIST1] = vgrf(glsl_type::vec4_type);
> +   this->output_components[VARYING_SLOT_CLIP_DIST1] = 4;
>
>     for (int i = 0; i < key->nr_userclip_plane_consts; i++) {
>        fs_reg u = userplane[i];
> --
> 2.5.0.400.gff86faf
>


More information about the mesa-dev mailing list