summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_pixel_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_pixel_read.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_pixel_read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_pixel_read.c b/src/mesa/drivers/dri/i965/brw_pixel_read.c
index 1c874eca2f5..ad0ee97db87 100644
--- a/src/mesa/drivers/dri/i965/brw_pixel_read.c
+++ b/src/mesa/drivers/dri/i965/brw_pixel_read.c
@@ -143,7 +143,7 @@ brw_readpixels_tiled_memcpy(struct gl_context *ctx,
* parts of the memory aren't swizzled at all. Userspace just can't handle
* that.
*/
- if (devinfo->ver < 5 && brw->has_swizzling)
+ if (devinfo->ver < 5 && devinfo->has_bit6_swizzle)
return false;
/* Since we are going to read raw data to the miptree, we need to resolve
@@ -204,7 +204,7 @@ brw_readpixels_tiled_memcpy(struct gl_context *ctx,
pixels,
map + irb->mt->offset,
dst_pitch, irb->mt->surf.row_pitch_B,
- brw->has_swizzling,
+ devinfo->has_bit6_swizzle,
irb->mt->surf.tiling,
copy_type
);