mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
i965: Remove redundant check in blitter-based glBlitFramebuffer().
The intel_miptree_blit() code checks the format for us now, plus it handles xrgb vs argb for us. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
697f401a31
commit
b5e5f34dd2
1 changed files with 0 additions and 10 deletions
|
|
@ -739,16 +739,6 @@ intel_blit_framebuffer_with_blitter(struct gl_context *ctx,
|
|||
return mask;
|
||||
}
|
||||
|
||||
mesa_format src_format = _mesa_get_srgb_format_linear(src_rb->Format);
|
||||
mesa_format dst_format = _mesa_get_srgb_format_linear(dst_rb->Format);
|
||||
if (src_format != dst_format) {
|
||||
perf_debug("glBlitFramebuffer(): unsupported blit from %s to %s. "
|
||||
"Falling back to software rendering.\n",
|
||||
_mesa_get_format_name(src_format),
|
||||
_mesa_get_format_name(dst_format));
|
||||
return mask;
|
||||
}
|
||||
|
||||
if (!intel_miptree_blit(brw,
|
||||
src_irb->mt,
|
||||
src_irb->mt_level, src_irb->mt_layer,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue