i915g: Don't limit blitter to POT textures
authorStéphane Marchesin <marcheu@chromium.org>
Sat, 22 Nov 2014 08:10:50 +0000 (00:10 -0800)
committerStéphane Marchesin <marcheu@chromium.org>
Sat, 22 Nov 2014 08:13:40 +0000 (00:13 -0800)
Now that we have NPOT support for u_blitter, there is no reason to
limit this any longer.

Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
src/gallium/drivers/i915/i915_surface.c

index 7317e3a27e374076cf1e2cc1f1f17507ad6353b0..b5161722701e0806dcfd088edeea057a8d08bb49 100644 (file)
@@ -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);