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:

committed by
Marge Bot

parent
a0dc303b45
commit
953a4ca6fe
@@ -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;
|
||||
|
Reference in New Issue
Block a user