[Mesa-dev] [PATCH] mesa: default FixedSampleLocations to true when using a dummy image

Chris Forbes chrisf at ijw.co.nz
Sun Feb 14 04:32:32 UTC 2016


Reviewed-by: Chris Forbes <chrisf at ijw.co.nz>

On Fri, Feb 12, 2016 at 9:31 AM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:

> GL_ARB_texture_multisample and GLES 3.1 expect the initial value to be
> GL_TRUE. This fixes
>
>
> dEQP-GLES31.functional.state_query.texture_level.texture_2d_multisample_array.fixed_sample_locations_integer
>
> and a few related tests.
>
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
>  src/mesa/main/texparam.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c
> index ed83830..c5f493f 100644
> --- a/src/mesa/main/texparam.c
> +++ b/src/mesa/main/texparam.c
> @@ -1310,6 +1310,7 @@ get_tex_level_parameter_image(struct gl_context *ctx,
>        dummy_image.TexFormat = MESA_FORMAT_NONE;
>        dummy_image.InternalFormat = GL_RGBA;
>        dummy_image._BaseFormat = GL_NONE;
> +      dummy_image.FixedSampleLocations = GL_TRUE;
>
>        img = &dummy_image;
>     }
> --
> 2.4.10
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160214/3119f880/attachment.html>


More information about the mesa-dev mailing list