mesa: default FixedSampleLocations to true when using a dummy image
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 11 Feb 2016 20:30:35 +0000 (15:30 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 14 Feb 2016 04:41:28 +0000 (23:41 -0500)
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@alum.mit.edu>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/main/texparam.c

index 614c1eef504b461a18c620338677a66a7e6c2e27..260b3c3288772d1a03f618d51e0e5f1f6d745406 100644 (file)
@@ -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;
    }