[Piglit] [PATCH 3/5] ext_framebuffer_multisample_blit_scaled: Fix minor whitespace issues
Ian Romanick
idr at freedesktop.org
Mon Sep 21 08:57:50 PDT 2015
From: Ian Romanick <ian.d.romanick at intel.com>
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
.../spec/ext_framebuffer_multisample_blit_scaled/blit-scaled.cpp | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/tests/spec/ext_framebuffer_multisample_blit_scaled/blit-scaled.cpp b/tests/spec/ext_framebuffer_multisample_blit_scaled/blit-scaled.cpp
index 60fdd4d..234d1b6 100644
--- a/tests/spec/ext_framebuffer_multisample_blit_scaled/blit-scaled.cpp
+++ b/tests/spec/ext_framebuffer_multisample_blit_scaled/blit-scaled.cpp
@@ -179,7 +179,7 @@ compile_shader(void)
break;
case 8:
sample_map = " const int sample_map[8] = int[8](5 , 2, 4, 6, 0, 3, 7, 1);\n";
- sample_number = "sample_map[int(2 * fract(coord.x) + 8 * fract(coord.y))]";
+ sample_number = "sample_map[int(2 * fract(coord.x) + 8 * fract(coord.y))]";
break;
default:
printf("Unsupported sample count %d\n", samples);
@@ -321,9 +321,10 @@ bool test_ms_blit_scaled(const Fbo& ms_fbo)
glClear(GL_COLOR_BUFFER_BIT);
test_pattern->draw(TestPattern::no_projection);
- if(ms_fbo.config.num_tex_attachments == 0) {
+ if (ms_fbo.config.num_tex_attachments == 0) {
/* Blit the framebuffer with multisample texture attachment
- * into the framebuffer with multisample renderbuffer attachment.
+ * into the framebuffer with multisample renderbuffer
+ * attachment.
*/
glBindFramebuffer(GL_READ_FRAMEBUFFER, multisampled_tex.handle);
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, multisampled_fbo.handle);
@@ -337,7 +338,7 @@ bool test_ms_blit_scaled(const Fbo& ms_fbo)
GL_COLOR_BUFFER_BIT, GL_NEAREST);
}
- for(scale = 0.1; scale < 2.5f; scale += 0.1) {
+ for (scale = 0.1; scale < 2.5f; scale += 0.1) {
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, piglit_winsys_fbo);
glClear(GL_COLOR_BUFFER_BIT);
--
2.1.0
More information about the Piglit
mailing list