[Bug 90839] [10.5.5/10.6 regression, bisected] PBO glDrawPixels no longer using blit fastpath
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Jun 9 18:05:23 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=90839
--- Comment #15 from Ian Romanick <idr at freedesktop.org> ---
(In reply to Alexander Monakov from comment #14)
> Sigh. Please apply this:
>
> From dae0d4b5716b9a5d9227539bb6312f1f389bfcd3 Mon Sep 17 00:00:00 2001
> From: Alexander Monakov <amonakov at ispras.ru>
> Date: Tue, 9 Jun 2015 20:58:22 +0300
> Subject: [PATCH] i965: do_blit_drawpixels: decode array formats
>
> ---
> src/mesa/drivers/dri/i965/intel_pixel_draw.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/intel_pixel_draw.c
> b/src/mesa/drivers/dri/i965/intel_pixel_draw.c
> index d68cbb6..189a592 100644
> --- a/src/mesa/drivers/dri/i965/intel_pixel_draw.c
> +++ b/src/mesa/drivers/dri/i965/intel_pixel_draw.c
> @@ -78,6 +78,8 @@ do_blit_drawpixels(struct gl_context * ctx,
> struct intel_renderbuffer *irb = intel_renderbuffer(rb);
>
> mesa_format src_format = _mesa_format_from_format_and_type(format, type);
> + if (_mesa_format_is_mesa_array_format(src_format))
> + src_format = _mesa_format_from_array_format(src_format);
Assuming this fixes the problem, I'd rather see it as:
const mesa_format src_format = _mesa_format_is_mesa_array_format(src_format)
? _mesa_format_from_array_format(src_format)
: _mesa_format_from_format_and_type(format, type);
> mesa_format dst_format = irb->mt->format;
>
> /* We can safely discard sRGB encode/decode for the DrawPixels interface
> */
--
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20150610/741ca6d4/attachment.html>
More information about the intel-3d-bugs
mailing list