Module: Mesa
Branch: master
Commit: 1e47510df72ccc43fde33e5026bcf71f201d90ae
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e47510df72ccc43fde33e5026bcf71f201d90ae

Author: Stéphane Marchesin <marc...@chromium.org>
Date:   Sat Nov 22 00:10:50 2014 -0800

i915g: Don't limit blitter to POT textures

Now that we have NPOT support for u_blitter, there is no reason to
limit this any longer.

Signed-off-by: Stéphane Marchesin <marc...@chromium.org>

---

 src/gallium/drivers/i915/i915_surface.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/gallium/drivers/i915/i915_surface.c 
b/src/gallium/drivers/i915/i915_surface.c
index 7317e3a..b516172 100644
--- a/src/gallium/drivers/i915/i915_surface.c
+++ b/src/gallium/drivers/i915/i915_surface.c
@@ -90,9 +90,8 @@ i915_surface_copy_render(struct pipe_context *pipe,
    struct pipe_sampler_view src_templ, *src_view;
    struct pipe_surface dst_templ, *dst_view;
 
-   /* Fallback for buffers and npot. */
-   if ((dst->target == PIPE_BUFFER && src->target == PIPE_BUFFER) ||
-       !util_is_power_of_two(src_width0) || !util_is_power_of_two(src_height0))
+   /* Fallback for buffers. */
+   if ((dst->target == PIPE_BUFFER && src->target == PIPE_BUFFER))
       goto fallback;
 
    util_blitter_default_dst_texture(&dst_templ, dst, dst_level, dstz);

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to