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>
This commit is contained in:
Jason Ekstrand
2021-11-02 15:49:27 -05:00
committed by Marge Bot
parent a0dc303b45
commit 953a4ca6fe
20 changed files with 103 additions and 170 deletions

View File

@@ -1643,7 +1643,7 @@ crocus_transfer_map(struct pipe_context *ctx,
memset(map, 0, sizeof(*map));
map->dbg = &ice->dbg;
map->has_swizzling = ((struct crocus_screen *)ctx->screen)->has_swizzling;
map->has_swizzling = screen->devinfo.has_bit6_swizzle;
pipe_resource_reference(&xfer->resource, resource);
xfer->level = level;
xfer->usage = usage;