From 71c21b1157c4f9a96453bdfcb9f4dda091360afd Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 13 Sep 2023 07:37:56 -0400 Subject: [PATCH] add a test to verify that null attachments don't clamp fb size MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit targets mesa/mesa#9119 Reviewed-by: Marek Olšák Part-of: --- tests/spec/gl-3.3/fb-null-attachment.shader_test | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tests/spec/gl-3.3/fb-null-attachment.shader_test diff --git a/tests/spec/gl-3.3/fb-null-attachment.shader_test b/tests/spec/gl-3.3/fb-null-attachment.shader_test new file mode 100644 index 000000000..c0edae516 --- /dev/null +++ b/tests/spec/gl-3.3/fb-null-attachment.shader_test @@ -0,0 +1,33 @@ +# Verify that a null framebuffer attachment doesn't affect framebuffer size +# +# This verifies that drivers aren't clamping framebuffers to a smaller size in the +# presence of null framebuffer attachments + +[require] +GL >= 3.3 +GLSL >= 3.30 +SIZE 1920 1080 + +[vertex shader passthrough] + +[fragment shader] +#version 330 + +out vec4 outcolor; + +void main() +{ + outcolor = vec4(0.0, 1.0, 0.0, 1.0); +} + +[test] +texture rgbw 0 (1920, 1080) GL_RGBA8 +texture rgbw 1 (1920, 1080) GL_RGBA8 + +fb tex 2d 0 -1 1 + +clear color 0.2 0.2 0.2 0.2 +clear +draw rect -1 -1 2 2 + +probe all rgba 0.0 1.0 0.0 1.0 -- 2.11.4.GIT