[Piglit] [PATCH] textureSize: initialize expected_color

Vadim Girlin vadimgirlin at gmail.com
Sun Jan 15 07:21:38 PST 2012


---

Fixes false failure with textureSize tests on r600g for me

 tests/texturing/shaders/textureSize.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/texturing/shaders/textureSize.c b/tests/texturing/shaders/textureSize.c
index 9c5e789..f6ccfe5 100644
--- a/tests/texturing/shaders/textureSize.c
+++ b/tests/texturing/shaders/textureSize.c
@@ -89,7 +89,7 @@ piglit_display()
 	/* Draw consecutive squares for each mipmap level */
 	for (l = 0; l < miplevels; l++) {
 		const int x = 10 + l * 20;
-		float expected_color[4];
+		float expected_color[4] = {};
 		expected_color[0] = 0.01 * level_size[l][0];
 		if (sampler.target == GL_TEXTURE_1D_ARRAY) {
 			expected_color[1] = 0.01 * level_size[l][2];
-- 
1.7.7.5



More information about the Piglit mailing list