summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaura Ekstrand <laura@jlekstrand.net>2018-03-06 16:34:26 -0800
committerLaura Ekstrand <laura@jlekstrand.net>2018-03-12 13:18:43 -0700
commit8ceeb93ccb0bd58971c593d560a28b051692e635 (patch)
treead44ffd06a6e95323679971cd773a63a928ab876
parentb81d7e403656f01675564593faa16b90868281f6 (diff)
i965: Remove unnecessary compatible formats check in DrawPixels.
Now that the src formats bug is fixed (see previous commit), we can remove the format check and let blorp handle format conversions.
-rw-r--r--src/mesa/drivers/dri/i965/intel_pixel_draw.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_pixel_draw.c b/src/mesa/drivers/dri/i965/intel_pixel_draw.c
index 16e781057d..29d6314bd0 100644
--- a/src/mesa/drivers/dri/i965/intel_pixel_draw.c
+++ b/src/mesa/drivers/dri/i965/intel_pixel_draw.c
@@ -39,7 +39,6 @@
#include "brw_blorp.h"
#include "brw_context.h"
#include "intel_screen.h"
-#include "intel_blit.h"
#include "intel_buffers.h"
#include "intel_fbo.h"
#include "intel_mipmap_tree.h"
@@ -84,11 +83,6 @@ do_blit_drawpixels(struct gl_context * ctx,
src_format = _mesa_get_srgb_format_linear(src_format);
dst_format = _mesa_get_srgb_format_linear(dst_format);
- if (!intel_miptree_blit_compatible_formats(src_format, dst_format)) {
- DBG("%s: bad format for blit\n", __func__);
- return false;
- }
-
if (unpack->SwapBytes || unpack->LsbFirst ||
unpack->SkipPixels || unpack->SkipRows) {
DBG("%s: bad packing params\n", __func__);