[Mesa-dev] [PATCH] mesa: Update vertex processing mode on _mesa_UseProgram.

Brian Paul brianp at vmware.com
Fri Feb 23 20:04:54 UTC 2018


On 02/23/2018 01:01 PM, Mathias.Froehlich at gmx.net wrote:
> From: Mathias Fröhlich <mathias.froehlich at web.de>
> 
> Hi Clayton,
> 
> The following change fixes the reported problem on my site.
> Please test/review!!
> 
> best
> 
> Mathias
> 
> 
> The change is a bug fix for 92d76a169:
>    mesa: Provide an alternative to get_vp_mode()
> that actually got exposed through 4562a7b0:
>    vbo: Make use of _DrawVAO from the dlist code.
> 
> Fixes: KHR-GLES31.core.shader_image_load_store.advanced-sso-simple
> Bugzilla: https://urldefense.proofpoint.com/v2/url?u=https-3A__bugs.freedesktop.org_show-5Fbug.cgi-3Fid-3D105229&d=DwIDaQ&c=uilaK90D4TOVoH58JNXRgQ&r=Ie7_encNUsqxbSRbqbNgofw0ITcfE8JKfaUjIQhncGA&m=LBvaMymXijZu_rp52IqZ2veWUoxN9q6Gqh2JNWfIPc4&s=61pPMG-_G1myc2dJVu_9Ar9ghESnHBQE61Z9O4TQrAo&e=
> Signed-off-by: Mathias Fröhlich <Mathias.Froehlich at web.de>
> ---
>   src/mesa/main/shaderapi.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
> index d8a3031a38..b7bd7167e1 100644
> --- a/src/mesa/main/shaderapi.c
> +++ b/src/mesa/main/shaderapi.c
> @@ -2069,6 +2069,8 @@ use_program(GLuint program, bool no_error)
>               _mesa_BindProgramPipeline(ctx->Pipeline.Current->Name);
>         }
>      }
> +
> +   _mesa_update_vertex_processing_mode(ctx);
>   }
>   
>   
> 

LGTM.

Reviewed-by: Brian Paul <brianp at vmware.com>



More information about the mesa-dev mailing list