summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaura Ekstrand <laura@jlekstrand.net>2018-03-06 16:33:39 -0800
committerLaura Ekstrand <laura@jlekstrand.net>2018-03-12 13:18:43 -0700
commitb81d7e403656f01675564593faa16b90868281f6 (patch)
treee713b7beaf8e88ceaa9b5106cc94a9630fbb0130
parent40e105a0847265c0283a4908a3022116c2b2709e (diff)
i965: Fix bug in src format for DrawPixels.
For some reason, the hardware blitter version of DrawPixels was creating a miptree for the src image with the format for the dst image. This was confusing the blorp format conversion. Creating the miptree with the src format fixes this issue.
-rw-r--r--src/mesa/drivers/dri/i965/intel_pixel_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_pixel_draw.c b/src/mesa/drivers/dri/i965/intel_pixel_draw.c
index ded8d5c5f7..16e781057d 100644
--- a/src/mesa/drivers/dri/i965/intel_pixel_draw.c
+++ b/src/mesa/drivers/dri/i965/intel_pixel_draw.c
@@ -115,7 +115,7 @@ do_blit_drawpixels(struct gl_context * ctx,
struct intel_mipmap_tree *pbo_mt =
intel_miptree_create_for_bo(brw,
src_buffer,
- irb->mt->format,
+ src_format,
src_offset,
width, height, 1,
src_stride,