summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_pixel_read.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason@jlekstrand.net>2021-11-02 15:49:27 -0500
committerMarge Bot <emma+marge@anholt.net>2021-11-04 18:51:04 +0000
commit953a4ca6fec2a80e02bfcc4afcbd40aaab41c1c9 (patch)
tree2ca9be893e5a4da318b6b250be3d8ef31001bf86 /src/mesa/drivers/dri/i965/brw_pixel_read.c
parenta0dc303b4521bd44d93f983919898d7cfd80cba8 (diff)
intel: Add has_bit6_swizzle to devinfo
There's no good reason to have this rather complex check in three drivers. Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13636>
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
);