[Mesa-dev] [PATCH 01/14] meta: Remove duplicate power of two samples check

Anuj Phogat anuj.phogat at gmail.com
Mon Feb 23 14:36:38 PST 2015


Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
---
 src/mesa/drivers/common/meta_blit.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/mesa/drivers/common/meta_blit.c b/src/mesa/drivers/common/meta_blit.c
index 3406be1..bf893be 100644
--- a/src/mesa/drivers/common/meta_blit.c
+++ b/src/mesa/drivers/common/meta_blit.c
@@ -425,14 +425,12 @@ setup_glsl_msaa_blit_shader(struct gl_context *ctx,
 
          arb_sample_shading_extension_string = "";
 
-         /* We're assuming power of two samples for this resolution procedure.
-          *
-          * To avoid losing any floating point precision if the samples all
+         /* To avoid losing any floating point precision if the samples all
           * happen to have the same value, we merge pairs of values at a time
           * (so the floating point exponent just gets increased), rather than
           * doing a naive sum and dividing.
           */
-         assert((samples & (samples - 1)) == 0);
+
          /* Fetch each individual sample. */
          sample_resolve = rzalloc_size(mem_ctx, 1);
          for (i = 0; i < samples; i++) {
-- 
1.9.3



More information about the mesa-dev mailing list